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.
This commit is contained in:
Andrew Bardsley 2015-05-26 03:21:37 -04:00
parent cc2346e8ca
commit cea1d14a93

View file

@ -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)