summaryrefslogtreecommitdiff
path: root/src/cpu/o3/commit.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-02-10 08:37:30 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2012-02-10 08:37:30 -0600
commitcd765c23a2030d45223952315b4e862999714890 (patch)
tree0bddf25b5ff70e31dd2fea912d65abe14e5dbfc1 /src/cpu/o3/commit.hh
parent8f7e03d4cf4810fa3e09b134c2cf5b6df78a39b0 (diff)
downloadgem5-cd765c23a2030d45223952315b4e862999714890.tar.xz
O3 CPU: Strengthen condition for handling interrupts
The condition for handling interrupts is to check whether or not the cpu's instruction list is empty. As observed, this can lead to cases in which even though the instruction list is empty, interrupts are handled when they should not be. The condition is being strengthened so that interrupts get handled only when the last committed microop did not had IsDelayedCommit set.
Diffstat (limited to 'src/cpu/o3/commit.hh')
-rw-r--r--src/cpu/o3/commit.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/o3/commit.hh b/src/cpu/o3/commit.hh
index f35928b08..094518655 100644
--- a/src/cpu/o3/commit.hh
+++ b/src/cpu/o3/commit.hh
@@ -441,6 +441,9 @@ class DefaultCommit
/** Rename map interface. */
RenameMap *renameMap[Impl::MaxThreads];
+ /** True if last committed microop can be followed by an interrupt */
+ bool canHandleInterrupts;
+
/** Updates commit stats based on this instruction. */
void updateComInstStats(DynInstPtr &inst);