drc/gte: add some stall handling
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / emu_if.c
index 2df259b..0d6e58d 100644 (file)
@@ -184,7 +184,8 @@ void new_dyna_freeze(void *f, int mode)
                if (bytes != size)
                        return;
 
-               new_dynarec_load_blocks(addrs, size);
+               if (psxCpu != &psxInt)
+                       new_dynarec_load_blocks(addrs, size);
        }
 
        //printf("drc: %d block info entries %s\n", size/8, mode ? "saved" : "loaded");
@@ -217,15 +218,6 @@ const char *gte_regnames[64] = {
        NULL  , NULL   , NULL   , NULL  , NULL , "GPF"  , "GPL"  , "NCCT", // 38
 };
 
-/* from gte.txt.. not sure if this is any good. */
-const char gte_cycletab[64] = {
-       /*   1   2   3   4   5   6   7   8   9   a   b   c   d   e   f */
-        0, 15,  0,  0,  0,  0,  8,  0,  0,  0,  0,  0,  6,  0,  0,  0,
-        8,  8,  8, 19, 13,  0, 44,  0,  0,  0,  0, 17, 11,  0, 14,  0,
-       30,  0,  0,  0,  0,  0,  0,  0,  5,  8, 17,  0,  0,  5,  6,  0,
-       23,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  5,  5, 39,
-};
-
 #define GCBIT(x) \
        (1ll << (32+x))
 #define GDBIT(x) \
@@ -438,6 +430,8 @@ int pending_exception, stop;
 unsigned int next_interupt;
 int new_dynarec_did_compile;
 int cycle_multiplier;
+int cycle_multiplier_override;
+int new_dynarec_hacks_pergame;
 int new_dynarec_hacks;
 void *psxH_ptr;
 void *zeromem_ptr;