summaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-03-01 14:18:20 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-07 13:18:28 +0100
commit7ebb2745acbb8d910eab07dc5f0aa01a4457703c (patch)
tree21d2d2e71f7ee7ae47f83e2eff24d0a9a8cfa4de /include/exec
parent0a75601853c00f3729fa62c49ec0d4bb1e3d9bc1 (diff)
downloadqemu-7ebb2745acbb8d910eab07dc5f0aa01a4457703c.tar.gz
qemu-7ebb2745acbb8d910eab07dc5f0aa01a4457703c.tar.bz2
qemu-7ebb2745acbb8d910eab07dc5f0aa01a4457703c.zip
memory: Implement memory_region_get_ram_addr with mr->ram_block
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <1456813104-25902-4-git-send-email-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/memory.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h
index d5284c2435..810d2c0b30 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -978,14 +978,8 @@ void memory_region_add_subregion_overlap(MemoryRegion *mr,
/**
* memory_region_get_ram_addr: Get the ram address associated with a memory
* region
- *
- * DO NOT USE THIS FUNCTION. This is a temporary workaround while the Xen
- * code is being reworked.
*/
-static inline ram_addr_t memory_region_get_ram_addr(MemoryRegion *mr)
-{
- return mr->ram_addr;
-}
+ram_addr_t memory_region_get_ram_addr(MemoryRegion *mr);
uint64_t memory_region_get_alignment(const MemoryRegion *mr);
/**