From d6c06571169603a37321af07b4d012f05806ad26 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 1 Mar 2006 00:14:09 -0500 Subject: [PATCH] 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 --- cpu/simple/cpu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/simple/cpu.cc b/cpu/simple/cpu.cc index d826c589e..e5c2e18cf 100644 --- a/cpu/simple/cpu.cc +++ b/cpu/simple/cpu.cc @@ -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); -- 2.30.2