ppc/pnv: use memdev for RAM
commit173a36d8d165872183bb62d1bac4aff5ef5bf495
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:36 +0000 (19 11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:50:00 +0000 (19 16:50 +0000)
tree5c05c7824e3a6672cc4cab5e8b8d524229713db1
parent8ee06e4ccb0f447caf9dc884b98986c155915e5c
ppc/pnv: 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: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-63-imammedo@redhat.com>
hw/ppc/pnv.c