diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-09-24 18:41:10 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-09-24 18:41:10 +0000 |
commit | ba86345802fcede0b0f50393c97c128aa7a3f40c (patch) | |
tree | 81aadec577a3056d2718f3e65897bf2ac80145d1 /exec.c | |
parent | d4afc623ae3ca529ff16cc2cf5de9293310de3e6 (diff) |
added cpu_get_physical_page_desc()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2168 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1801,6 +1801,17 @@ void cpu_register_physical_memory(target_phys_addr_t start_addr, } } +/* XXX: temporary until new memory mapping API */ +uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr) +{ + PhysPageDesc *p; + + p = phys_page_find(addr >> TARGET_PAGE_BITS); + if (!p) + return IO_MEM_UNASSIGNED; + return p->phys_offset; +} + static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr) { return 0; |