From cea1d14a937f27fa49423bd01eb900e578993a43 Mon Sep 17 00:00:00 2001 From: Andrew Bardsley Date: Tue, 26 May 2015 03:21:37 -0400 Subject: 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. --- src/cpu/minor/execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/minor/execute.cc') 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) -- cgit v1.2.3