CPU: Fix O3 and possible InOrder segfaults in FS.
This commit is contained in:
@@ -1062,7 +1062,7 @@ DefaultCommit<Impl>::commitHead(DynInstPtr &head_inst, unsigned inst_num)
|
||||
// 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);
|
||||
cpu->trap(inst_fault, tid, head_inst->staticInst);
|
||||
|
||||
// Exit state update mode to avoid accidental updating.
|
||||
thread[tid]->inSyscall = false;
|
||||
|
||||
Reference in New Issue
Block a user