diff --git a/nemu/src/isa/riscv32/difftest/dut.c b/nemu/src/isa/riscv32/difftest/dut.c index c5ebf13..d6dd6f5 100644 --- a/nemu/src/isa/riscv32/difftest/dut.c +++ b/nemu/src/isa/riscv32/difftest/dut.c @@ -18,6 +18,9 @@ #include "../local-include/reg.h" bool isa_difftest_checkregs(CPU_state *ref_r, vaddr_t pc) { + for(int i = 0; i < MUXDEF(CONFIG_RVE, 16, 32); i++) { + difftest_check_reg(reg_name(i), pc, ref_r->gpr[i], gpr(i)); + } return false; }