642a643
> commitStatus[0] != TrapPending &&
644a646,654
>
> // Get any interrupt that happened
> Fault intr = cpu->getInterrupts();
>
> // Exit this if block if there's no fault.
> if (intr == NoFault) {
> goto commit_insts;
> }
>
653,654c663,666
< // Not sure which thread should be the one to interrupt. For now
< // always do thread 0.
---
> // Squash or record that I need to squash this cycle if
> // an interrupt needed to be handled.
> DPRINTF(Commit, "Interrupt detected.\n");
>
658,659c670,671
< // CPU will handle implementation of the interrupt.
< cpu->processInterrupts();
---
> // CPU will handle interrupt.
> cpu->processInterrupts(intr);
661,664d672
< // Now squash or record that I need to squash this cycle.
< commitStatus[0] = TrapPending;
<
< // Exit state update mode to avoid accidental updating.
666a675,676
> commitStatus[0] = TrapPending;
>
671,672d680
<
< DPRINTF(Commit, "Interrupt detected.\n");
682c690
<
---
> commit_insts: