Skip to content

Commit

Permalink
[difftest] fix wrong retire when instruction checked rd
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Jul 16, 2024
1 parent 2379dfa commit e5afc06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions difftest/offline/src/json_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ impl JsonEventRunner for SpikeRunner {
let issue_idx = report.issue_idx;
let cycle = report.cycle;

if count == 0 {
return Ok(());
}

let mut should_retire: Option<u8> = None;

if let Some(se) = self.commit_queue.iter_mut().rev().find(|se| se.issue_idx == issue_idx) {
Expand Down

0 comments on commit e5afc06

Please sign in to comment.