summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-03-07 22:23:14 -0500
committerKevin Lim <ktlim@umich.edu>2006-03-07 22:23:14 -0500
commit6a42e3653f46aa4c4cf091b2fb176f2e6667e3cc (patch)
treecd651d13735a96a057f9382934defdc5ac03042f
parent7712232e556c93204f78807194417e5b13d91cbe (diff)
downloadgem5-6a42e3653f46aa4c4cf091b2fb176f2e6667e3cc.tar.xz
Avoid accessing objects directly within the XC.
--HG-- extra : convert_revision : abda610caab885ae39b4e48df4f75cddb93b27ed
-rw-r--r--sim/faults.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/faults.cc b/sim/faults.cc
index 2b93353ce..701384989 100644
--- a/sim/faults.cc
+++ b/sim/faults.cc
@@ -38,8 +38,8 @@ void FaultBase::invoke(ExecContext * xc)
#else
void FaultBase::invoke(ExecContext * xc)
{
- DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), xc->regs.pc);
- xc->cpu->recordEvent(csprintf("Fault %s", name()));
+ DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), xc->readPC());
+ xc->getCpuPtr()->recordEvent(csprintf("Fault %s", name()));
assert(!xc->misspeculating());
}