Re: [PATCH REPOST v3 56/80] mips/mips_r4k: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
On Thu, Jan 23, 2020 at 1:24 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_

[PATCH REPOST v3 56/80] mips/mips_r4k: use memdev for RAM

2020-01-23 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