arm/highbank: use memdev for RAM
commit89c43bdf20adead188d5a87ee30003aead90d9a5
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:08:48 +0000 (19 11:08 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:49:54 +0000 (19 16:49 +0000)
tree3e2e69f92912bb5c389d5efb42bf9bcd61740299
parent4daf95d6079132eafcfba7465402fa4a1d3cd2a7
arm/highbank: 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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-15-imammedo@redhat.com>
hw/arm/highbank.c