| 240 | } |
| 241 | |
| 242 | void iopTestIntc() |
| 243 | { |
| 244 | if( psxHu32(HW_ICTRL) == 0 ) return; |
| 245 | if( (psxHu32(HW_ISTAT) & psxHu32(HW_IMASK)) == 0 ) return; |
| 246 | |
| 247 | if( !eeEventTestIsActive ) |
| 248 | { |
| 249 | // An iop exception has occurred while the EE is running code. |
| 250 | // Inform the EE to branch so the IOP can handle it promptly: |
| 251 | |
| 252 | cpuSetNextEventDelta( 16 ); |
| 253 | iopEventAction = true; |
| 254 | //Console.Error( "** IOP Needs an EE EventText, kthx ** %d", iopCycleEE ); |
| 255 | |
| 256 | // Note: No need to set the iop's branch delta here, since the EE |
| 257 | // will run an IOP branch test regardless. |
| 258 | } |
| 259 | else if ( !iopEventTestIsActive ) |
| 260 | psxSetNextBranchDelta( 2 ); |
| 261 | } |
| 262 | |
| 263 | inline bool psxIsBranchOrJump(u32 addr) |
| 264 | { |
no test coverage detected