ppc/{ppc440_bamboo, sam460ex}: use memdev for RAM
commitb28f01880eda878f66cbba54be98bfd96582e857
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:40 +0000 (19 11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:50:00 +0000 (19 16:50 +0000)
tree4570dab59fc598c6c72e9cb889e0ffb8f492aecd
parenta0258e4afa10a8e9dba4901b7a8202dac24c72e2
ppc/{ppc440_bamboo, sam460ex}: 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>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20200219160953.13771-67-imammedo@redhat.com>
hw/ppc/ppc440_bamboo.c
hw/ppc/ppc4xx_devs.c
hw/ppc/sam460ex.c
include/hw/ppc/ppc4xx.h