summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-03-09 09:39:08 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-03-09 09:39:08 -0500
commite5fbc67e16063cbfec90210d700fa79a8f3b1550 (patch)
treec42b6cba1f3546426f5e0886fdaead08c5f84fe3 /src/cpu/o3
parent5003ed5f7ae08ca8a0233a9862d17372a450d1cb (diff)
downloadgem5-e5fbc67e16063cbfec90210d700fa79a8f3b1550.tar.xz
cpu: o3: another assert instead of check
Diffstat (limited to 'src/cpu/o3')
-rw-r--r--src/cpu/o3/commit_impl.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh
index cd53def3c..aa1948602 100644
--- a/src/cpu/o3/commit_impl.hh
+++ b/src/cpu/o3/commit_impl.hh
@@ -1338,10 +1338,8 @@ DefaultCommit<Impl>::markCompletedInsts()
{
// Grab completed insts out of the IEW instruction queue, and mark
// instructions completed within the ROB.
- for (int inst_num = 0;
- inst_num < fromIEW->size && fromIEW->insts[inst_num];
- ++inst_num)
- {
+ for (int inst_num = 0; inst_num < fromIEW->size; ++inst_num) {
+ assert(fromIEW->insts[inst_num]);
if (!fromIEW->insts[inst_num]->isSquashed()) {
DPRINTF(Commit, "[tid:%i]: Marking PC %s, [sn:%lli] ready "
"within ROB.\n",