X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fr3000a.c;fp=libpcsxcore%2Fr3000a.c;h=f92edb729fab2a180ab512de7aa6e2f28a4d083c;hp=148bc267992315fafc134f8179c38a4cadb5d7f3;hb=57a757cedcc7928894aaf957565adfa95f1caab5;hpb=528ad661dd07067cbcd6c1beebad63fc36795759 diff --git a/libpcsxcore/r3000a.c b/libpcsxcore/r3000a.c index 148bc267..f92edb72 100644 --- a/libpcsxcore/r3000a.c +++ b/libpcsxcore/r3000a.c @@ -157,6 +157,12 @@ void psxBranchTest() { mdec0Interrupt(); } } + if (psxRegs.interrupt & (1 << PSXINT_GPUOTCDMA)) { // gpu otc + if ((psxRegs.cycle - psxRegs.intCycle[PSXINT_GPUOTCDMA].sCycle) >= psxRegs.intCycle[PSXINT_GPUOTCDMA].cycle) { + psxRegs.interrupt &= ~(1 << PSXINT_GPUOTCDMA); + gpuotcInterrupt(); + } + } } if (psxHu32(0x1070) & psxHu32(0x1074)) {