projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc2346e
)
cpu: Fix a bug in counting issued instructions in MinorCPU
author
Andrew Bardsley
<Andrew.Bardsley@arm.com>
Tue, 26 May 2015 07:21:37 +0000
(
03:21
-0400)
committer
Andrew Bardsley
<Andrew.Bardsley@arm.com>
Tue, 26 May 2015 07:21:37 +0000
(
03:21
-0400)
The MinorCPU would count bubbles in Execute::issue as part of
the num_insts_issued and so sometimes reach the instruction
issue limit incorrectly.
Fixed by checking for a bubble in one new place.
src/cpu/minor/execute.cc
patch
|
blob
|
history
diff --git
a/src/cpu/minor/execute.cc
b/src/cpu/minor/execute.cc
index ea325e28cd6cbab8a0cf94e2d28ed6f2902b8343..001515eff931939dd4ee8338088892dbc53c27d2 100644
(file)
--- a/
src/cpu/minor/execute.cc
+++ b/
src/cpu/minor/execute.cc
@@
-770,7
+770,7
@@
Execute::issue(bool only_issue_microops)
if (discarded) {
num_insts_discarded++;
- } else {
+ } else
if (!inst->isBubble())
{
num_insts_issued++;
if (num_insts_issued == issueLimit)