CPU: Correct wording about cop2 and IRQs

arm-build
Stenzek 14 hours ago
parent 37fa0d135c
commit 6a86c80445
No known key found for this signature in database

@ -1989,8 +1989,8 @@ restart_instruction:
void CPU::DispatchInterrupt()
{
// If the instruction we're about to execute is a GTE instruction, delay dispatching the interrupt until the next
// instruction. For some reason, if we don't do this, we end up with incorrectly sorted polygons and flickering..
// The GTE is a co-processor, therefore it executes the instruction even if we're servicing an exception.
// The exception handlers should recognize this and increment the PC if the EPC was a cop2 instruction.
SafeReadInstruction(g_state.pc, &g_state.next_instruction.bits);
if (g_state.next_instruction.op == InstructionOp::cop2 && !g_state.next_instruction.cop.IsCommonInstruction())
{

Loading…
Cancel
Save