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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user