mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
memory: temporarily add memory_region_get_ram_addr()
This is a layering violation, but needed while the code contains naked calls to qemu_get_ram_ptr() and the like. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
c65adf9bcd
commit
e34911c420
2 changed files with 16 additions and 0 deletions
6
memory.c
6
memory.c
|
@ -1435,6 +1435,12 @@ void memory_region_set_alias_offset(MemoryRegion *mr, target_phys_addr_t offset)
|
|||
memory_region_update_topology(mr);
|
||||
}
|
||||
|
||||
ram_addr_t memory_region_get_ram_addr(MemoryRegion *mr)
|
||||
{
|
||||
assert(mr->backend_registered);
|
||||
return mr->ram_addr;
|
||||
}
|
||||
|
||||
static int cmp_flatrange_addr(const void *addr_, const void *fr_)
|
||||
{
|
||||
const AddrRange *addr = addr_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue