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:
parent
cc2346e8ca
commit
cea1d14a93
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue