aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/r3000a.c
diff options
context:
space:
mode:
authornotaz2011-10-26 00:01:47 +0300
committernotaz2011-10-30 23:48:08 +0200
commit48e74ef5e10804f8809fae397be4234e8bf613a7 (patch)
tree05bf769f22cad3c940dbae0b99c5881261a2eff2 /libpcsxcore/r3000a.c
parent15d0ba027cfbe88c69b539cc0c9ac6769e577c78 (diff)
downloadpcsx_rearmed-48e74ef5e10804f8809fae397be4234e8bf613a7.tar.gz
pcsx_rearmed-48e74ef5e10804f8809fae397be4234e8bf613a7.tar.bz2
pcsx_rearmed-48e74ef5e10804f8809fae397be4234e8bf613a7.zip
psxinterpreter: a bit more accurate Cause reg handling
Diffstat (limited to 'libpcsxcore/r3000a.c')
-rw-r--r--libpcsxcore/r3000a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/r3000a.c b/libpcsxcore/r3000a.c
index cccfa60..f5996ac 100644
--- a/libpcsxcore/r3000a.c
+++ b/libpcsxcore/r3000a.c
@@ -89,7 +89,7 @@ void psxException(u32 code, u32 bd) {
}
// Set the Cause
- psxRegs.CP0.n.Cause = code;
+ psxRegs.CP0.n.Cause = (psxRegs.CP0.n.Cause & 0x300) | code;
// Set the EPC & PC
if (bd) {