qemu-e2k/hw/lm32
Igor Mammedov dc8953c6be lm32/milkymist: use memdev for RAM
memory_region_allocate_system_memory() API is going away, so
replace it with memdev allocated MemoryRegion. The later is
initialized by generic code, so board only needs to opt in
to memdev scheme by providing
  MachineClass::default_ram_id
and using MachineState::ram instead of manually initializing
RAM memory region.

PS:
 while at it add check for user supplied RAM size and error
 out if it mismatches board expected value.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-46-imammedo@redhat.com>
2020-02-19 16:49:58 +00:00
..
Kconfig hw/lm32/Kconfig: Milkymist One provides a USB 1.1 Controller 2019-07-15 20:58:37 +02:00
lm32_boards.c lm32/lm32_boards: use memdev for RAM 2020-02-19 16:49:58 +00:00
lm32_hwsetup.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
lm32.h Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Makefile.objs
milkymist-hw.h Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
milkymist.c lm32/milkymist: use memdev for RAM 2020-02-19 16:49:58 +00:00