From 193fa542ff0de019e3dded6e4d4fb60689ac741a Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Sun, 5 Sep 2010 01:27:34 +0000 Subject: Don't access GTE when CP0 disables it git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56828 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/psxinterpreter.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpcsxcore') diff --git a/libpcsxcore/psxinterpreter.c b/libpcsxcore/psxinterpreter.c index 1f4b46cd..dff7263f 100644 --- a/libpcsxcore/psxinterpreter.c +++ b/libpcsxcore/psxinterpreter.c @@ -686,10 +686,16 @@ void psxCOP0() { } void psxCOP2() { + if ((psxRegs.CP0.n.Status & 0x40000000) == 0 ) + return; + psxCP2[_Funct_](); } void psxBASIC() { + if ((psxRegs.CP0.n.Status & 0x40000000) == 0 ) + return; + psxCP2BSC[_Rs_](); } -- cgit v1.2.3