aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/new_dynarec/emu_if.h
diff options
context:
space:
mode:
authornotaz2012-04-15 19:49:49 +0300
committernotaz2012-04-18 03:24:40 +0300
commita327ad27099341fb6eed61aa0419dff418429f96 (patch)
tree43461c310c044269b3c52f9d94e0e814b0fe4a37 /libpcsxcore/new_dynarec/emu_if.h
parent3a321131b0f1d75685b7487517fc84738f4186d2 (diff)
downloadpcsx_rearmed-a327ad27099341fb6eed61aa0419dff418429f96.tar.gz
pcsx_rearmed-a327ad27099341fb6eed61aa0419dff418429f96.tar.bz2
pcsx_rearmed-a327ad27099341fb6eed61aa0419dff418429f96.zip
support emulated RAM mapped at offset
Thanks to CatalystG for some initial code and testing.
Diffstat (limited to 'libpcsxcore/new_dynarec/emu_if.h')
-rw-r--r--libpcsxcore/new_dynarec/emu_if.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpcsxcore/new_dynarec/emu_if.h b/libpcsxcore/new_dynarec/emu_if.h
index 6b6305c..72f6c27 100644
--- a/libpcsxcore/new_dynarec/emu_if.h
+++ b/libpcsxcore/new_dynarec/emu_if.h
@@ -97,3 +97,9 @@ void pcsx_mtc0_ds(u32 reg, u32 val);
/* misc */
extern void (*psxHLEt[])();
+
+#ifdef RAM_FIXED
+#define rdram ((u_int)0x80000000)
+#else
+#define rdram ((u_int)psxM)
+#endif