changeset 5dbee14a7363 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=5dbee14a7363
description:
        imported patch recoverPCfromTrap

diffstat:

 src/cpu/inorder/cpu.cc                      |  1 +
 src/cpu/inorder/resources/fetch_seq_unit.cc |  1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r e0da7b3c3254 -r 5dbee14a7363 src/cpu/inorder/cpu.cc
--- a/src/cpu/inorder/cpu.cc    Sun Jun 19 21:43:36 2011 -0400
+++ b/src/cpu/inorder/cpu.cc    Sun Jun 19 21:43:37 2011 -0400
@@ -1312,6 +1312,7 @@
     lastCommittedPC[tid] = comm_pc;
     TheISA::advancePC(comm_pc, inst->staticInst);
     pcState(comm_pc, tid);
+    DPRINTF(InOrderGraduation, "Precise State PC = %s\n", pcState(tid));
 
     //@todo: may be unnecessary with new-ISA-specific branch handling code
     if (inst->isControl()) {
diff -r e0da7b3c3254 -r 5dbee14a7363 src/cpu/inorder/resources/fetch_seq_unit.cc
--- a/src/cpu/inorder/resources/fetch_seq_unit.cc       Sun Jun 19 21:43:36 
2011 -0400
+++ b/src/cpu/inorder/resources/fetch_seq_unit.cc       Sun Jun 19 21:43:37 
2011 -0400
@@ -198,6 +198,7 @@
                             bdelay_inst->pc, nextPC);
 
                     if (bdelay_inst->pc.instAddr() == nextPC.instAddr()) {
+                        bdelay_inst->pc = nextPC;
                         advancePC(nextPC, inst->staticInst);
                         DPRINTF(Resource, "Advanced PC to %s\n", nextPC);
                     }
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to