diff options
author | notaz | 2016-09-20 20:12:54 +0300 |
---|---|---|
committer | notaz | 2016-09-20 20:12:54 +0300 |
commit | 4f48d9b4fc357b7809e378721b8f9281c03920cc (patch) | |
tree | 900b0ce26d3fa1cb68ea95bda55ba4f32eda32a1 /libpcsxcore/new_dynarec/new_dynarec.c | |
parent | 8356146f0b98c811a0e254b3f35c7e7dc653efce (diff) | |
download | pcsx_rearmed-4f48d9b4fc357b7809e378721b8f9281c03920cc.tar.gz pcsx_rearmed-4f48d9b4fc357b7809e378721b8f9281c03920cc.tar.bz2 pcsx_rearmed-4f48d9b4fc357b7809e378721b8f9281c03920cc.zip |
Revert "(VITA) More dynarec fixes"
This reverts commit 1c2e3fc3baf93e7c17f678d0d187e9f424360bb2.
See github issue #74 for details.
Diffstat (limited to 'libpcsxcore/new_dynarec/new_dynarec.c')
-rw-r--r-- | libpcsxcore/new_dynarec/new_dynarec.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 757b781..56c8a0b 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -1236,9 +1236,6 @@ void invalidate_addr(u_int addr) void invalidate_all_pages() { u_int page,n; - #if defined(VITA) - sceKernelOpenVMDomain(); - #endif for(page=0;page<4096;page++) invalidate_page(page); for(page=0;page<1048576;page++) @@ -1247,9 +1244,6 @@ void invalidate_all_pages() restore_candidate[((page&2047)>>3)+256]|=1<<(page&7); } #ifdef __arm__ - #if defined(VITA) - sceKernelCloseVMDomain(); - #endif __clear_cache((void *)BASE_ADDR,(void *)BASE_ADDR+(1<<TARGET_SIZE_2)); #endif #ifdef USE_MINI_HT @@ -7933,18 +7927,12 @@ static void disassemble_inst(int i) {} static int new_dynarec_test(void) { - #if defined(VITA) - sceKernelOpenVMDomain(); - #endif int (*testfunc)(void) = (void *)out; int ret; emit_movimm(DRC_TEST_VAL,0); // test emit_jmpreg(14); literal_pool(0); #ifdef __arm__ -#if defined(VITA) - sceKernelCloseVMDomain(); -#endif __clear_cache((void *)testfunc, out); #endif SysPrintf("testing if we can run recompiled code..\n"); @@ -7994,7 +7982,7 @@ void new_dynarec_init() SysPrintf("Init new dynarec\n"); #if defined(VITA) - out=(u_char *)mmap(translation_cache, 1<<TARGET_SIZE_2, + BASE_ADDR=mmap(BASE_ADDR, 1<<TARGET_SIZE_2, 0, 0, -1, 0); @@ -8238,9 +8226,6 @@ int new_recompile_block(int addr) start = (u_int)addr&~3; //assert(((u_int)addr&1)==0); new_dynarec_did_compile=1; -#if defined(VITA) - sceKernelOpenVMDomain(); -#endif if (Config.HLE && start == 0x80001000) // hlecall { // XXX: is this enough? Maybe check hleSoftCall? @@ -8252,9 +8237,6 @@ int new_recompile_block(int addr) emit_jmp((int)new_dyna_leave); literal_pool(0); #ifdef __arm__ - #if defined(VITA) - sceKernelCloseVMDomain(); - #endif __clear_cache((void *)beginning,out); #endif ll_add_flags(jump_in+page,start,state_rflags,(void *)beginning); @@ -11625,9 +11607,6 @@ int new_recompile_block(int addr) copy+=slen*4; #ifdef __arm__ - #if defined(VITA) - sceKernelCloseVMDomain(); - #endif __clear_cache((void *)beginning,out); #endif |