]> Git Repo - qemu.git/commit
arm/musicpal: use memdev for RAM
authorIgor Mammedov <[email protected]>
Wed, 19 Feb 2020 16:08:58 +0000 (11:08 -0500)
committerPatchew Importer <[email protected]>
Wed, 19 Feb 2020 16:49:56 +0000 (16:49 +0000)
commit3ed61312bdb8bcf4da092328de15a1d6927323cf
tree55e2c9a3a1e31964093a2ba201dbcb69af729465
parent68637c3a3687facba19c930e3c98eaea9fd5b723
arm/musicpal: 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.

PS:
 while at it add check for user supplied RAM size and error
 out if it mismatches board expected value.

Signed-off-by: Igor Mammedov <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20200219160953[email protected]>
hw/arm/musicpal.c
This page took 0.025726 seconds and 4 git commands to generate.