// needed to update the state as soon as possible. This
// prevents external agents from changing any specific state
// that the trap need.
- cpu->trap(inst_fault, tid, head_inst->staticInst);
+ cpu->trap(inst_fault, tid,
+ head_inst->notAnInst() ?
+ StaticInst::nullStaticInstPtr :
+ head_inst->staticInst);
// Exit state update mode to avoid accidental updating.
thread[tid]->noSquashFromTC = false;