mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
memory: Drop MemoryRegion.ram_addr
All references to mr->ram_addr are replaced by memory_region_get_ram_addr(mr) (except for a few assertions that are replaced with mr->ram_block). Reviewed-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <1456813104-25902-5-git-send-email-famz@redhat.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@ -352,7 +352,7 @@ def memory_region_get_ram_ptr(memory_region):
|
||||
return (memory_region_get_ram_ptr(memory_region["alias"].dereference())
|
||||
+ memory_region["alias_offset"])
|
||||
|
||||
return qemu_get_ram_ptr(memory_region["ram_addr"] & TARGET_PAGE_MASK)
|
||||
return qemu_get_ram_ptr(memory_region["ram_block"]["offset"])
|
||||
|
||||
|
||||
def get_guest_phys_blocks():
|
||||
|
Reference in New Issue
Block a user