diff options
author | Andrew Bardsley <Andrew.Bardsley@arm.com> | 2015-05-26 03:21:37 -0400 |
---|---|---|
committer | Andrew Bardsley <Andrew.Bardsley@arm.com> | 2015-05-26 03:21:37 -0400 |
commit | cea1d14a937f27fa49423bd01eb900e578993a43 (patch) | |
tree | 36851d5ce94c417ddbf5b50c038079628c6286a0 /src/cpu/minor | |
parent | cc2346e8ca7ad247c701ec58ffddd98fa9f03574 (diff) | |
download | gem5-cea1d14a937f27fa49423bd01eb900e578993a43.tar.xz |
cpu: Fix a bug in counting issued instructions in MinorCPU
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.
Diffstat (limited to 'src/cpu/minor')
-rw-r--r-- | src/cpu/minor/execute.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/minor/execute.cc b/src/cpu/minor/execute.cc index ea325e28c..001515eff 100644 --- 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) |