summaryrefslogtreecommitdiff
path: root/src/sim/faults.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/faults.cc')
-rw-r--r--src/sim/faults.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sim/faults.cc b/src/sim/faults.cc
index 78b9fb0a4..fbe8fb32a 100644
--- a/src/sim/faults.cc
+++ b/src/sim/faults.cc
@@ -40,13 +40,12 @@
#if !FULL_SYSTEM
void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst)
{
- panic("fault (%s) detected @ PC %p", name(), tc->readPC());
+ panic("fault (%s) detected @ PC %s", name(), tc->pcState());
}
#else
void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst)
{
- DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), tc->readPC());
-
+ DPRINTF(Fault, "Fault %s at PC: %s\n", name(), tc->pcState());
assert(!tc->misspeculating());
}
#endif