O3: Add flag to control whether faulting instructions are traced.
When enabled, faulting instructions appear in the trace twice (once when they fault and again when they're re-executed). This flag is set by the Exec compound flag for backwards compatibility.
This commit is contained in:
@@ -1076,9 +1076,11 @@ DefaultCommit<Impl>::commitHead(DynInstPtr &head_inst, unsigned inst_num)
|
||||
commitStatus[tid] = TrapPending;
|
||||
|
||||
if (head_inst->traceData) {
|
||||
head_inst->traceData->setFetchSeq(head_inst->seqNum);
|
||||
head_inst->traceData->setCPSeq(thread[tid]->numInst);
|
||||
head_inst->traceData->dump();
|
||||
if (DTRACE(ExecFaulting)) {
|
||||
head_inst->traceData->setFetchSeq(head_inst->seqNum);
|
||||
head_inst->traceData->setCPSeq(thread[tid]->numInst);
|
||||
head_inst->traceData->dump();
|
||||
}
|
||||
delete head_inst->traceData;
|
||||
head_inst->traceData = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user