From 4c979f9325f0c82f3284ce0fb0cc118d77268cb5 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Sun, 19 Jun 2011 21:43:38 -0400 Subject: [PATCH] inorder: optionally track faulting instructions --- src/cpu/inorder/resources/graduation_unit.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cpu/inorder/resources/graduation_unit.cc b/src/cpu/inorder/resources/graduation_unit.cc index 641d7b5ad..d34e1b512 100644 --- a/src/cpu/inorder/resources/graduation_unit.cc +++ b/src/cpu/inorder/resources/graduation_unit.cc @@ -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; -- 2.30.2