Re: [PATCH v5 49/79] m68k/next-cube: use memdev for RAM

2020-02-17 Thread Philippe Mathieu-Daudé
On 2/17/20 6:34 PM, Igor Mammedov wrote: 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 Mach

Re: [PATCH v5 49/79] m68k/next-cube: use memdev for RAM

2020-02-17 Thread Richard Henderson
On 2/17/20 9:34 AM, Igor Mammedov wrote: > 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 u

[PATCH v5 49/79] m68k/next-cube: use memdev for RAM

2020-02-17 Thread Igor Mammedov
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 initializi