aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-09 22:21:07 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-09 22:21:07 +0000
commitdc828ca1b59b0c390a6994c78e9658174f821f74 (patch)
tree6c2ecf0899c5d699d6056495ad55d89e8cf7d248 /exec.c
parent7ffa47675c3b0c7ee1deddb1d78bbf5f968f0cb0 (diff)
Cleanup SPARC/TCX framebuffer allocation.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7059 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index b41edef48a..9671199a19 100644
--- a/exec.c
+++ b/exec.c
@@ -2427,6 +2427,14 @@ void qemu_ram_free(ram_addr_t addr)
{
}
+/* Return a host pointer to ram allocated with qemu_ram_alloc.
+ This may only be used if you actually allocated the ram, and
+ aready know how but the ram block is. */
+void *qemu_get_ram_ptr(ram_addr_t addr)
+{
+ return phys_ram_base + addr;
+}
+
static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)
{
#ifdef DEBUG_UNASSIGNED