summaryrefslogtreecommitdiff
path: root/cpu/simple
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-03-01 00:14:09 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-03-01 00:14:09 -0500
commitd6c06571169603a37321af07b4d012f05806ad26 (patch)
tree1f00a7c79a4cd6ba12f012c1f6414960f9b47a5f /cpu/simple
parent69e91d761765b84429dc069b8fa1cd3f25925688 (diff)
downloadgem5-d6c06571169603a37321af07b4d012f05806ad26.tar.xz
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
Diffstat (limited to 'cpu/simple')
-rw-r--r--cpu/simple/cpu.cc2
1 files changed, 1 insertions, 1 deletions
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);