Skip to content

Commit

Permalink
[pdifftest] fix to_rtl_queue behaviour mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Jun 3, 2024
1 parent ffd8e8c commit e129838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions difftest/t1-simulator/src/difftest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ impl Difftest {
return Err(anyhow::anyhow!("graceful exit"));
}

self.spike.to_rtl_queue.pop_front();
self.spike.to_rtl_queue.pop_back();
} else {
break;
}
}

// TODO: remove these, now just for aligning online difftest
if let Some(se) = self.spike.to_rtl_queue.get(0) {
if let Some(se) = self.spike.to_rtl_queue.front() {
// it is ensured there are some other instruction not committed, thus
// se_to_issue should not be issued
if se.is_vfence_insn || se.is_exit_insn {
Expand Down

0 comments on commit e129838

Please sign in to comment.