summaryrefslogtreecommitdiff
path: root/src/cpu/simple/timing.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2008-02-14 16:14:35 -0500
committerAli Saidi <saidi@eecs.umich.edu>2008-02-14 16:14:35 -0500
commit9faec83ac59a4c0912a7ce8e5612aaabf715a5be (patch)
treec2a4fa84db0f14d1843f5f4add0d2f9d73f71bdc /src/cpu/simple/timing.cc
parentfc38e9c630e62c97aa633c32933d43d027211989 (diff)
downloadgem5-9faec83ac59a4c0912a7ce8e5612aaabf715a5be.tar.xz
CPU: move the PC Events code to a place where the code won't be executed multiple times if an instruction faults.
--HG-- extra : convert_revision : 19c8e46a4eea206517be7ed4131ab9df0fe00e68
Diffstat (limited to 'src/cpu/simple/timing.cc')
-rw-r--r--src/cpu/simple/timing.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc
index 9fe3d2fff..a76824ff3 100644
--- a/src/cpu/simple/timing.cc
+++ b/src/cpu/simple/timing.cc
@@ -522,6 +522,8 @@ TimingSimpleCPU::fetch()
if (!curStaticInst || !curStaticInst->isDelayedCommit())
checkForInterrupts();
+ checkPcEventQueue();
+
Request *ifetch_req = new Request();
ifetch_req->setThreadContext(cpuId, /* thread ID */ 0);
Fault fault = setupFetchRequest(ifetch_req);