summaryrefslogtreecommitdiff
path: root/src/cpu/o3/commit.hh
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-01-18 16:30:05 -0600
committerAli Saidi <Ali.Saidi@ARM.com>2011-01-18 16:30:05 -0600
commit1167ef19cf0c478e73fc6e1848f005863525cc13 (patch)
tree2756424caa7a54899fdfa9fad45629e9b3784d88 /src/cpu/o3/commit.hh
parentea058b14da9f84d9b30f8ef7710d18546fc79db8 (diff)
downloadgem5-1167ef19cf0c478e73fc6e1848f005863525cc13.tar.xz
O3: Keep around the last committed instruction and use for squashing.
Without this change 0 is always used for the youngest sequence number if a squash occured and the ROB was empty (E.g. an instruction is marked serializeAfter or a fetch stall prevents other instructions from issuing). Using 0 there is a race to rename where an instruction that committed the same cycle as the squashing instruction can have it's renamed state undone by the squash using sequence number 0.
Diffstat (limited to 'src/cpu/o3/commit.hh')
-rw-r--r--src/cpu/o3/commit.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cpu/o3/commit.hh b/src/cpu/o3/commit.hh
index 7183889c6..659b0ad5f 100644
--- a/src/cpu/o3/commit.hh
+++ b/src/cpu/o3/commit.hh
@@ -1,4 +1,16 @@
/*
+ * Copyright (c) 2010 ARM Limited
+ * All rights reserved.
+ *
+ * The license below extends only to copyright in the software and shall
+ * not be construed as granting a license to any other intellectual
+ * property including but not limited to intellectual property relating
+ * to a hardware implementation of the functionality of the software
+ * licensed hereunder. You may use the software subject to the license
+ * terms below provided that you ensure that this notice is replicated
+ * unmodified and in its entirety in all distributions of the software,
+ * modified or unmodified, in source code or in binary form.
+ *
* Copyright (c) 2004-2006 The Regents of The University of Michigan
* All rights reserved.
*
@@ -409,6 +421,9 @@ class DefaultCommit
/** The sequence number of the youngest valid instruction in the ROB. */
InstSeqNum youngestSeqNum[Impl::MaxThreads];
+ /** The sequence number of the last commited instruction. */
+ InstSeqNum lastCommitedSeqNum[Impl::MaxThreads];
+
/** Records if there is a trap currently in flight. */
bool trapInFlight[Impl::MaxThreads];