inorder: optionally track faulting instructions

This commit is contained in:
Korey Sewell 2011-06-19 21:43:38 -04:00
parent 22ba1718c4
commit 4c979f9325

View file

@ -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;