projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5003ed5
)
cpu: o3: another assert instead of check
author
Nilay Vaish
<nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:08 +0000
(09:39 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:08 +0000
(09:39 -0500)
src/cpu/o3/commit_impl.hh
patch
|
blob
|
history
diff --git
a/src/cpu/o3/commit_impl.hh
b/src/cpu/o3/commit_impl.hh
index cd53def3cbd9c7e826530188f5fc6d27b05d8c9f..aa1948602c9e35a71903a4f6c0a545dea718d676 100644
(file)
--- 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",