]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
Remove cpu_get_physical_page_desc()
authorAvi Kivity <avi@redhat.com>
Mon, 19 Dec 2011 14:01:08 +0000 (16:01 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 3 Jan 2012 17:19:28 +0000 (19:19 +0200)
No longer used.

Signed-off-by: Avi Kivity <avi@redhat.com>
cpu-common.h
exec.c

index eee2fafe863bd42d2aa884b16dedb6e412b15beb..3fe44d25d1196e9bc0c3a48353f8bbe01b81e865 100644 (file)
@@ -38,7 +38,6 @@ typedef unsigned long ram_addr_t;
 typedef void CPUWriteMemoryFunc(void *opaque, target_phys_addr_t addr, uint32_t value);
 typedef uint32_t CPUReadMemoryFunc(void *opaque, target_phys_addr_t addr);
 
-ram_addr_t cpu_get_physical_page_desc(target_phys_addr_t addr);
 void qemu_ram_remap(ram_addr_t addr, ram_addr_t length);
 /* This should only be used for ram local to a device.  */
 void *qemu_get_ram_ptr(ram_addr_t addr);
diff --git a/exec.c b/exec.c
index e1f7462eebe9ca00d28922204b5771a5c0fe0f14..b02199b271de70350cf135a2ed05cce5ce113f2c 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -2595,17 +2595,6 @@ void cpu_register_physical_memory_log(target_phys_addr_t start_addr,
     }
 }
 
-/* XXX: temporary until new memory mapping API */
-ram_addr_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;
-}
-
 void qemu_register_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size)
 {
     if (kvm_enabled())