aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-03-01 14:18:21 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-07 13:26:29 +0100
commit8e41fb63c5bf29ecabe0cee1239bf6230f19978a (patch)
treea0f105310b59466dbd726eca96837550b92f2ecf /exec.c
parent7ebb2745acbb8d910eab07dc5f0aa01a4457703c (diff)
downloadqemu-8e41fb63c5bf29ecabe0cee1239bf6230f19978a.zip
qemu-8e41fb63c5bf29ecabe0cee1239bf6230f19978a.tar.gz
qemu-8e41fb63c5bf29ecabe0cee1239bf6230f19978a.tar.bz2
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>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 83e3f7d..6ed4203 100644
--- a/exec.c
+++ b/exec.c
@@ -2699,7 +2699,8 @@ MemTxResult address_space_read_continue(AddressSpace *as, hwaddr addr,
}
} else {
/* RAM case */
- ptr = qemu_get_ram_ptr(mr->ram_block, mr->ram_addr + addr1);
+ ptr = qemu_get_ram_ptr(mr->ram_block,
+ memory_region_get_ram_addr(mr) + addr1);
memcpy(buf, ptr, l);
}