From: Kevin Lim Date: Wed, 8 Mar 2006 03:23:14 +0000 (-0500) Subject: Avoid accessing objects directly within the XC. X-Git-Tag: m5_2.0_beta1~87^2~31 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a42e3653f46aa4c4cf091b2fb176f2e6667e3cc;p=gem5.git Avoid accessing objects directly within the XC. --HG-- extra : convert_revision : abda610caab885ae39b4e48df4f75cddb93b27ed --- 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()); }