summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/resource.cc
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-06-19 21:43:40 -0400
committerKorey Sewell <ksewell@umich.edu>2011-06-19 21:43:40 -0400
commitf1c3691356355d2ca865e48e91814c56293f6326 (patch)
tree6608284d5bcdab42d69042034d49198c647b1a2c /src/cpu/inorder/resource.cc
parent0bfdf342da40842a05351d53a384db4a8ff88bf5 (diff)
downloadgem5-f1c3691356355d2ca865e48e91814c56293f6326.tar.xz
inorder: check for interrupts each tick
use a dummy instruction to facilitate the squash after the interrupts trap
Diffstat (limited to 'src/cpu/inorder/resource.cc')
-rw-r--r--src/cpu/inorder/resource.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/inorder/resource.cc b/src/cpu/inorder/resource.cc
index 817cc5868..b7f6a8db6 100644
--- a/src/cpu/inorder/resource.cc
+++ b/src/cpu/inorder/resource.cc
@@ -302,6 +302,8 @@ void
Resource::squash(DynInstPtr inst, int stage_num, InstSeqNum squash_seq_num,
ThreadID tid)
{
+ //@todo: check squash seq num before squashing. can save time going
+ // through this function.
for (int i = 0; i < width; i++) {
ResReqPtr req_ptr = reqs[i];
DynInstPtr inst = req_ptr->getInst();