Skip to content

Commit

Permalink
[difftest] fixed the issue in the VrfScoreboard where count=0 caused …
Browse files Browse the repository at this point in the history
…a conflict with writing rd

Signed-off-by: Clo91eaf <Clo91eaf@qq.com>
  • Loading branch information
Clo91eaf authored and FanShupei committed Dec 27, 2024
1 parent 1f94f07 commit a13a6e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions difftest/offline_t1emu/src/json_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ impl JsonEventRunner for SpikeRunner {
se.vrf_access_record.retired_writes,
se.describe_insn()
);
} else {
panic!("[{cycle}] VrfScoreboard: cannot find se with instruction issue_idx={issue_idx}");
} else if count != 0 {
panic!("[{cycle}] VrfScoreboard: cannot find se with instruction issue_idx={issue_idx}, count={count}");
}

if let Some(issue_idx) = should_retire {
Expand Down
4 changes: 2 additions & 2 deletions difftest/offline_t1rocketemu/src/json_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ impl JsonEventRunner for SpikeRunner {
se.vrf_access_record.retired_writes,
se.describe_insn()
);
} else {
panic!("[{cycle}] VrfScoreboard: cannot find se with instruction issue_idx={issue_idx}");
} else if count != 0 {
panic!("[{cycle}] VrfScoreboard: cannot find se with instruction issue_idx={issue_idx}, count={count}");
}

if let Some(issue_idx) = should_retire {
Expand Down

0 comments on commit a13a6e0

Please sign in to comment.