diff options
author | Fam Zheng <famz@redhat.com> | 2016-03-01 14:18:20 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:49:12 -0600 |
commit | e9afa9e7cae68c2ba1124ffcd22e5b85c7eab70e (patch) | |
tree | 64031a963e0811d4776b037590c9bac73ba71365 /include | |
parent | 20d97e6d47c8476542af96513d22d507d0527ff8 (diff) | |
download | hqemu-e9afa9e7cae68c2ba1124ffcd22e5b85c7eab70e.zip hqemu-e9afa9e7cae68c2ba1124ffcd22e5b85c7eab70e.tar.gz |
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')
-rw-r--r-- | include/exec/memory.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h index 3a30c05..5296e5f 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); /** |