Skip to content

Commit

Permalink
Raise exception only if rob has entries
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lyalg0rithm committed Nov 13, 2023
1 parent b669d8f commit a738bbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/ROB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ namespace olympia
{
if(getClock()->currentCycle() - last_retirement_ >= retire_timeout_interval_)
{
if(reorder_buffer_.empty())
return;
sparta::SpartaException e;
e << "Been a while since we've retired an instruction. Is the pipe stalled indefinitely?";
e << " currentCycle: " << getClock()->currentCycle();
Expand Down

0 comments on commit a738bbb

Please sign in to comment.