Re: [PATCH 04/21] hw/arm/omap2: Create the RAM in the board

2019-10-21 Thread Philippe Mathieu-Daudé
On 10/21/19 6:59 PM, Richard Henderson wrote: On 10/20/19 3:56 PM, Philippe Mathieu-Daudé wrote: static void n8x0_init(MachineState *machine, struct arm_boot_info *binfo, int model) { -MemoryRegion *sysmem = get_system_memory(); +MemoryRegion *sdram = g_new(Me

Re: [PATCH 04/21] hw/arm/omap2: Create the RAM in the board

2019-10-21 Thread Richard Henderson
On 10/20/19 3:56 PM, Philippe Mathieu-Daudé wrote: > static void n8x0_init(MachineState *machine, >struct arm_boot_info *binfo, int model) > { > -MemoryRegion *sysmem = get_system_memory(); > +MemoryRegion *sdram = g_new(MemoryRegion, 1); > struct n800_s *s =

[PATCH 04/21] hw/arm/omap2: Create the RAM in the board

2019-10-20 Thread Philippe Mathieu-Daudé
The SDRAM is incorrectly created in the OMAP2420 SoC. Move its creation in the board code, this will later allow the board to have the QOM ownership of the RAM. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/nseries.c | 10 +++--- hw/arm/omap2.c| 13 + include/hw/a