aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-10-11 15:31:19 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2010-10-20 16:15:04 -0500
commite890261f671a0573efbc024972d8769423fc82fc (patch)
tree4aa3d674b99b7726cc7b90e38f282662c8e7bda1 /cpu-common.h
parente7701825e17d74913b0f1585d523cedaf1d6632a (diff)
downloadqemu-e890261f671a0573efbc024972d8769423fc82fc.zip
qemu-e890261f671a0573efbc024972d8769423fc82fc.tar.gz
qemu-e890261f671a0573efbc024972d8769423fc82fc.tar.bz2
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>
Diffstat (limited to 'cpu-common.h')
-rw-r--r--cpu-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu-common.h b/cpu-common.h
index 0426bc8..a543b5d 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -47,7 +47,8 @@ void qemu_ram_free(ram_addr_t addr);
/* 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. */
-ram_addr_t qemu_ram_addr_from_host(void *ptr);
+int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr);
+ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr);
int cpu_register_io_memory(CPUReadMemoryFunc * const *mem_read,
CPUWriteMemoryFunc * const *mem_write,