changeset a50657a4f0c1 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a50657a4f0c1
description:
        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:

 src/cpu/minor/execute.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e4328e028961 -r a50657a4f0c1 src/cpu/minor/execute.cc
--- a/src/cpu/minor/execute.cc  Tue May 26 03:21:35 2015 -0400
+++ b/src/cpu/minor/execute.cc  Tue May 26 03:21:37 2015 -0400
@@ -770,7 +770,7 @@
 
             if (discarded) {
                 num_insts_discarded++;
-            } else {
+            } else if (!inst->isBubble()) {
                 num_insts_issued++;
 
                 if (num_insts_issued == issueLimit)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to