Used the Fault constructor to create Interrupt faults. Using the pointer directly...
authorGabe Black <gblack@eecs.umich.edu>
Wed, 1 Mar 2006 05:14:09 +0000 (00:14 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 1 Mar 2006 05:14:09 +0000 (00:14 -0500)
cpu/simple/cpu.cc:
    Used the Fault constructor to create an Interrupt fault.

--HG--
extra : convert_revision : ec2ef7e3cd04ee9a44628877dc6e770fb907104b

cpu/simple/cpu.cc

index d826c589ec1bc79908df3233c661c99cb4db980c..e5c2e18cfab875c856d22af479d19f4a89a284d8 100644 (file)
@@ -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);