Used the Fault constructor to create Interrupt faults. Using the pointer directly prevents reference counting from working correctly.
cpu/simple/cpu.cc: Used the Fault constructor to create an Interrupt fault. --HG-- extra : convert_revision : ec2ef7e3cd04ee9a44628877dc6e770fb907104b
This commit is contained in:
parent
69e91d7617
commit
d6c0657116
|
@ -687,7 +687,7 @@ SimpleCPU::tick()
|
|||
if (ipl && ipl > xc->readMiscReg(IPR_IPLR)) {
|
||||
xc->setMiscReg(IPR_ISR, summary);
|
||||
xc->setMiscReg(IPR_INTID, ipl);
|
||||
(new InterruptFault)->ev5_trap(xc);
|
||||
Fault(new InterruptFault)->ev5_trap(xc);
|
||||
|
||||
DPRINTF(Flow, "Interrupt! IPLR=%d ipl=%d summary=%x\n",
|
||||
xc->readMiscReg(IPR_IPLR), ipl, summary);
|
||||
|
|
Loading…
Reference in a new issue