From: Nilay Vaish Date: Mon, 9 Mar 2015 14:39:08 +0000 (-0500) Subject: cpu: o3: another assert instead of check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5fbc67e16063cbfec90210d700fa79a8f3b1550;p=gem5.git cpu: o3: another assert instead of check --- 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::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",