drc: ujump DS $ra overwrite fix?
authornotaz <notasas@gmail.com>
Thu, 17 Mar 2011 21:47:26 +0000 (23:47 +0200)
committernotaz <notasas@gmail.com>
Thu, 17 Mar 2011 21:50:39 +0000 (23:50 +0200)
libpcsxcore/new_dynarec/new_dynarec.c

index 975cce7..1fe2c0c 100644 (file)
@@ -8886,6 +8886,8 @@ int new_recompile_block(int addr)
           clear_const(&current,rt1[i]);
           alloc_cc(&current,i);
           dirty_reg(&current,CCREG);
+          ooo[i]=1;
+          delayslot_alloc(&current,i+1);
           if (rt1[i]==31) {
             alloc_reg(&current,i,31);
             dirty_reg(&current,31);
@@ -8896,8 +8898,6 @@ int new_recompile_block(int addr)
             #endif
             //current.is32|=1LL<<rt1[i];
           }
-          ooo[i]=1;
-          delayslot_alloc(&current,i+1);
           //current.isconst=0; // DEBUG
           ds=1;
           //printf("i=%d, isconst=%x\n",i,current.isconst);