mips/mips_fulong2e: use memdev for RAM
commit0de3d9fba60f3c3518a3302b99cb472cac225d7d
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:26 +0000 (19 11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:49:59 +0000 (19 16:49 +0000)
tree31063271c25dc69f1444ad2a805cf5b4c18e81ed
parentdc7b6ba5b20c5a2d09edc290091c77e51aa4962f
mips/mips_fulong2e: 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: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200219160953.13771-53-imammedo@redhat.com>
hw/mips/mips_fulong2e.c