mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Export qemu_ram_addr_from_host
To be used by next patches. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
e7701825e1
commit
e890261f67
3 changed files with 20 additions and 11 deletions
|
@ -334,7 +334,7 @@ static inline tb_page_addr_t get_page_addr_code(CPUState *env1, target_ulong add
|
|||
}
|
||||
p = (void *)(unsigned long)addr
|
||||
+ env1->tlb_table[mmu_idx][page_index].addend;
|
||||
return qemu_ram_addr_from_host(p);
|
||||
return qemu_ram_addr_from_host_nofail(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue