notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d3b34
)
sio: only do IRQ if it's bit has been cleared
author
notaz
<notasas@gmail.com>
Tue, 26 Jul 2011 16:45:03 +0000
(19:45 +0300)
committer
notaz
<notasas@gmail.com>
Tue, 26 Jul 2011 16:45:03 +0000
(19:45 +0300)
tested on the real thing.
libpcsxcore/sio.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/sio.c
b/libpcsxcore/sio.c
index
4a0a73c
..
81fe0ea
100644
(file)
--- a/
libpcsxcore/sio.c
+++ b/
libpcsxcore/sio.c
@@
-386,8
+386,10
@@
void sioInterrupt() {
PAD_LOG("Sio Interrupt (CP0.Status = %x)\n", psxRegs.CP0.n.Status);
#endif
// SysPrintf("Sio Interrupt\n");
- StatReg |= IRQ;
- psxHu32ref(0x1070) |= SWAPu32(0x80);
+ if (!(StatReg & IRQ)) {
+ StatReg |= IRQ;
+ psxHu32ref(0x1070) |= SWAPu32(0x80);
+ }
}
void LoadMcd(int mcd, char *str) {