Skip to content

Commit e96b92b

Browse files
authored
fix(fpga): support no-diff without specified ref-so (#849)
Previously we always use difftest_init(true, ) even with --no-diff, which requires us to specify ref-so path or NEMU_HOME. This change replace it with difftest_init(args.enable_diff, ).
1 parent c2d24d5 commit e96b92b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/csrc/fpga/fpga_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void fpga_init() {
8484
init_ram(args.image, DEFAULT_EMU_RAM_SIZE);
8585
init_flash(args.flash_bin);
8686

87-
difftest_init(true, DEFAULT_EMU_RAM_SIZE);
87+
difftest_init(args.enable_diff, DEFAULT_EMU_RAM_SIZE);
8888

8989
init_device();
9090

0 commit comments

Comments
 (0)