diff options
Diffstat (limited to 'sim/faults.cc')
-rw-r--r-- | sim/faults.cc | 4 |
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()); } |