1679c1679,1684
< bool can_commit_insts = !ex_info.inFlightInsts->empty();
---
>
> bool is_thread_active =
> cpu.getContext(tid)->status() == ThreadContext::Active;
> bool can_commit_insts = !ex_info.inFlightInsts->empty() &&
> is_thread_active;
>
1745c1750,1751
< if (getInput(tid)) {
---
> if (cpu.getContext(tid)->status() == ThreadContext::Active &&
> getInput(tid)) {