aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorCatalystG2013-03-24 18:09:00 -0400
committernotaz2013-03-25 03:44:31 +0200
commita48745850385e49bf1ca9f8c4e98d925032a8a06 (patch)
tree3199a3267657faacbc68a75974f53372f505eca4 /libpcsxcore
parent1c6ab616933e2425b3ed16b31d95ba629b77c49c (diff)
downloadpcsx_rearmed-a48745850385e49bf1ca9f8c4e98d925032a8a06.tar.gz
pcsx_rearmed-a48745850385e49bf1ca9f8c4e98d925032a8a06.tar.bz2
pcsx_rearmed-a48745850385e49bf1ca9f8c4e98d925032a8a06.zip
Add support for PlayBook/BB10 with libretro
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/new_dynarec/new_dynarec.c4
-rw-r--r--libpcsxcore/psxmem.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c
index 21c9669..5cdeb96 100644
--- a/libpcsxcore/new_dynarec/new_dynarec.c
+++ b/libpcsxcore/new_dynarec/new_dynarec.c
@@ -41,6 +41,10 @@
#include "assem_arm.h"
#endif
+#undef __clear_cache
+#define __clear_cache(start,end) msync(start, (size_t)((void*)end - (void*)start), MS_SYNC | MS_CACHE_ONLY | MS_INVALIDATE_ICACHE);
+
+
#define MAXBLOCK 4096
#define MAX_OUTPUT_BLOCK_SIZE 262144
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index f12a981..422b485 100644
--- a/libpcsxcore/psxmem.c
+++ b/libpcsxcore/psxmem.c
@@ -129,9 +129,14 @@ int psxMemInit() {
psxM = psxMap(0x80000000, 0x00210000, 1, MAP_TAG_RAM);
#ifndef RAM_FIXED
+#ifdef __BLACKBERRY_QNX__
+ if (psxM == NULL)
+ psxM = psxMap(0x70000000, 0x00210000, 0, MAP_TAG_RAM);
+#else
if (psxM == NULL)
psxM = psxMap(0x78000000, 0x00210000, 0, MAP_TAG_RAM);
#endif
+#endif
if (psxM == NULL) {
SysMessage(_("mapping main RAM failed"));
return -1;