changeset cbed6a2cbc35 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=cbed6a2cbc35
description:
        cpu: o3: another assert instead of check

diffstat:

 src/cpu/o3/commit_impl.hh |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (16 lines):

diff -r 705aca3c1240 -r cbed6a2cbc35 src/cpu/o3/commit_impl.hh
--- a/src/cpu/o3/commit_impl.hh Mon Mar 09 09:39:08 2015 -0500
+++ b/src/cpu/o3/commit_impl.hh Mon Mar 09 09:39:08 2015 -0500
@@ -1338,10 +1338,8 @@
 {
     // 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",
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to