diff options
author | Squarepusher | 2013-03-24 17:34:12 -0700 |
---|---|---|
committer | Squarepusher | 2013-03-24 17:34:12 -0700 |
commit | de4229995f85cddc72420b1b094e022b63f3951b (patch) | |
tree | 08e4e6802fd590459a3b97eb4404f74af3384a19 /libpcsxcore | |
parent | ab82eb7dd3824b66d5cd143141e861403e373308 (diff) | |
parent | 0b5d059012a087cd108fe65edaa92e512101fc1a (diff) | |
download | pcsx_rearmed-de4229995f85cddc72420b1b094e022b63f3951b.tar.gz pcsx_rearmed-de4229995f85cddc72420b1b094e022b63f3951b.tar.bz2 pcsx_rearmed-de4229995f85cddc72420b1b094e022b63f3951b.zip |
Merge pull request #1 from CatalystG/libretro
Add support for PlayBook/BB10 with libretro
Diffstat (limited to 'libpcsxcore')
-rw-r--r-- | libpcsxcore/new_dynarec/new_dynarec.c | 5 | ||||
-rw-r--r-- | libpcsxcore/psxmem.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 21c9669..a3b766a 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -41,6 +41,11 @@ #include "assem_arm.h" #endif +#ifdef __BLACKBERRY_QNX__ +#undef __clear_cache +#define __clear_cache(start,end) msync(start, (size_t)((void*)end - (void*)start), MS_SYNC | MS_CACHE_ONLY | MS_INVALIDATE_ICACHE); +#endif + #define MAXBLOCK 4096 #define MAX_OUTPUT_BLOCK_SIZE 262144 diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index f12a981..62bbe26 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(0x77000000, 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; |