projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61edd5a
)
cpu: o3: combine if with same condition
author
Nilay Vaish
<nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:07 +0000
(09:39 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:07 +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 403e582d3985f14770e87743826c47dda1f0a30d..a62c5f26063cbee1de7851539561224037bbebe3 100644
(file)
--- a/
src/cpu/o3/commit_impl.hh
+++ b/
src/cpu/o3/commit_impl.hh
@@
-906,13
+906,10
@@
DefaultCommit<Impl>::commit()
if (toIEW->commitInfo[tid].mispredictInst->isUncondCtrl()) {
toIEW->commitInfo[tid].branchTaken = true;
}
+ ++branchMispredicts;
}
toIEW->commitInfo[tid].pc = fromIEW->pc[tid];
-
- if (toIEW->commitInfo[tid].mispredictInst) {
- ++branchMispredicts;
- }
}
if (commitStatus[tid] == ROBSquashing) {