From: Paolo Bonzini Date: Tue, 14 May 2013 09:47:56 +0000 (+0200) Subject: exec: make qemu_get_ram_ptr private X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~368^2~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ee983cb3cc8f856b408a272269f434cc9a82ceff;p=qemu-upstream-4.5-testing.git exec: make qemu_get_ram_ptr private It is a private interface between exec.c and memory.c. Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index cafc3c21b..af851aa63 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -49,8 +49,6 @@ typedef void CPUWriteMemoryFunc(void *opaque, hwaddr addr, uint32_t value); typedef uint32_t CPUReadMemoryFunc(void *opaque, hwaddr 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); /* This should not be used by devices. */ int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr); diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index 1b156fd58..8d15f9041 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -46,6 +46,7 @@ void address_space_destroy_dispatch(AddressSpace *as); ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host, MemoryRegion *mr); ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr); +void *qemu_get_ram_ptr(ram_addr_t addr); void qemu_ram_free(ram_addr_t addr); void qemu_ram_free_from_ptr(ram_addr_t addr);