qemu-e2k/hw/lm32
Igor Mammedov 6047c08fd7 lm32/lm32_boards: 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: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200219160953.13771-45-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 hw/core/loader: Let load_elf() populate a field with CPU-specific flags 2020-01-29 19:28:52 +01:00