projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4afc62
)
added cpu_get_physical_page_desc()
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 24 Sep 2006 18:41:10 +0000
(18:41 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 24 Sep 2006 18:41:10 +0000
(18:41 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2168
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index 88acff0917caa1d86a19b5e5f2c04d88656de91f..20870ad0243b5d512b801b1ffa2d9dce21abe84e 100644
(file)
--- a/
exec.c
+++ b/
exec.c
@@
-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;