Avoid accessing objects directly within the XC.
--HG-- extra : convert_revision : abda610caab885ae39b4e48df4f75cddb93b27ed
This commit is contained in:
parent
7712232e55
commit
6a42e3653f
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue