changeset b51a2a09ac7d in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b51a2a09ac7d
description:
        cpu: Fixed a bug on where to fetch the next instruction from

        Figure out if the next instruction to fetch comes from the micro-op ROM
        or not. Otherwise, wrong instructions may be fetched.

diffstat:

 src/cpu/o3/fetch_impl.hh |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 30c700ee0d47 -r b51a2a09ac7d src/cpu/o3/fetch_impl.hh
--- a/src/cpu/o3/fetch_impl.hh  Mon Jul 20 09:15:18 2015 -0500
+++ b/src/cpu/o3/fetch_impl.hh  Mon Jul 20 09:15:18 2015 -0500
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2010-2014 ARM Limited
+ * Copyright (c) 2012-2013 AMD
  * All rights reserved.
  *
  * The license below extends only to copyright in the software and shall
@@ -1371,6 +1372,10 @@
         } while ((curMacroop || decoder[tid]->instReady()) &&
                  numInst < fetchWidth &&
                  fetchQueue[tid].size() < fetchQueueSize);
+
+        // Re-evaluate whether the next instruction to fetch is in micro-op ROM
+        // or not.
+        inRom = isRomMicroPC(thisPC.microPC());
     }
 
     if (predictedBranch) {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to