]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/e500plat.c
ppc/e500: use memdev for RAM
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:33 +0000 (11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:50:00 +0000 (16:50 +0000)
commit9731664559a370d7b525400d739e926e3849ffe4
tree059376ca1c6af192f8cc115b9d33a41a77a78dbf
parent3538e846cb8dad0912d1d9faf305d599879d3ad9
ppc/e500: 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.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-60-imammedo@redhat.com>
hw/ppc/e500.c
hw/ppc/e500plat.c
hw/ppc/mpc8544ds.c