inorder: optionally track faulting instructions
This commit is contained in:
parent
22ba1718c4
commit
4c979f9325
1 changed files with 9 additions and 0 deletions
|
@ -72,6 +72,15 @@ GraduationUnit::execute(int slot_num)
|
|||
inst->instName());
|
||||
inst->setSquashInfo(stage_num);
|
||||
setupSquash(inst, stage_num, tid);
|
||||
|
||||
if (inst->traceData && DTRACE(ExecFaulting)) {
|
||||
inst->traceData->setStageCycle(stage_num, curTick());
|
||||
inst->traceData->setFetchSeq(inst->seqNum);
|
||||
inst->traceData->dump();
|
||||
delete inst->traceData;
|
||||
inst->traceData = NULL;
|
||||
}
|
||||
|
||||
cpu->trapContext(inst->fault, tid, inst);
|
||||
grad_req->done(false);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue