Skip to content

Commit

Permalink
rv64,ref: fix the sc_fail for uarch_sync
Browse files Browse the repository at this point in the history
This is a temp fix for sc_fail API. lr_valid and lr_addr is required
by snapshot but not used now. It is to be fixed later.
  • Loading branch information
poemonsense committed Sep 9, 2023
1 parent 0a4d0de commit 43b7350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/isa/riscv64/difftest/ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ void isa_difftest_uarchstatus_cpy(void *dut, bool direction) {

if (direction == DIFFTEST_TO_REF) {
struct SyncState* ms = (struct SyncState*)dut;
cpu.lr_valid = ms->lrscValid;
if (ms->lrscValid) { // this is actually sc_failed
cpu.lr_valid = 0;
}
} else {
struct SyncState ms;
ms.lrscValid = cpu.lr_valid;
Expand Down

0 comments on commit 43b7350

Please sign in to comment.