r3000a: reset cpu after setting up registers
authornotaz <notasas@gmail.com>
Tue, 22 Mar 2011 16:48:48 +0000 (18:48 +0200)
committernotaz <notasas@gmail.com>
Tue, 22 Mar 2011 16:48:48 +0000 (18:48 +0200)
drc depends on some of them

libpcsxcore/r3000a.c

index 1143b81..98aff3a 100644 (file)
@@ -48,8 +48,6 @@ int psxInit() {
 }
 
 void psxReset() {
-       psxCpu->Reset();
-
        psxMemReset();
 
        memset(&psxRegs, 0, sizeof(psxRegs));
@@ -59,6 +57,8 @@ void psxReset() {
        psxRegs.CP0.r[12] = 0x10900000; // COP0 enabled | BEV = 1 | TS = 1
        psxRegs.CP0.r[15] = 0x00000002; // PRevID = Revision ID, same as R3000A
 
+       psxCpu->Reset();
+
        psxHwReset();
        psxBiosInit();