alpha/dp264: use memdev for RAM
commitb844d822cf628b175a732bbfd25d9348200a1ec6
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:08:42 +0000 (19 11:08 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:49:54 +0000 (19 16:49 +0000)
treea6343b212fc94435063fdee02b8fc17cae76cc9d
parentfe64d06afc1c5d895f220c268cfe4d5f1e65d44e
alpha/dp264: 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>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-9-imammedo@redhat.com>
hw/alpha/alpha_sys.h
hw/alpha/dp264.c
hw/alpha/typhoon.c