Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/9702

Change subject: arch: alpha: Fix an 8 year old bug from the transition to pc objects.
......................................................................

arch: alpha: Fix an 8 year old bug from the transition to pc objects.

When we transitioned from having PCs and nextPCs stored as individual items
in the ThreadContext and went to having PC objects with abstracted
components (micro PCs, delay slots, variable instruction lengths, etc.), a
small mistake was made when translating the alpha StackTrace code.

Change-Id: Ib5dd65c53a26920e66899f421902607efd139e71
---
M src/arch/alpha/stacktrace.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/arch/alpha/stacktrace.cc b/src/arch/alpha/stacktrace.cc
index 1dc5956..3c302d2 100644
--- a/src/arch/alpha/stacktrace.cc
+++ b/src/arch/alpha/stacktrace.cc
@@ -143,7 +143,7 @@
     bool usermode =
         (tc->readMiscRegNoEffect(IPR_DTB_CM) & 0x18) != 0;

-    Addr pc = tc->pcState().pc();
+    Addr pc = tc->pcState().npc();
     bool kernel = sys->kernelStart <= pc && pc <= sys->kernelEnd;

     if (usermode) {

--
To view, visit https://gem5-review.googlesource.com/9702
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ib5dd65c53a26920e66899f421902607efd139e71
Gerrit-Change-Number: 9702
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to