Skip to content

Commit c040c15

Browse files
rmn30nwf-msr
authored andcommitted
riscv_sim: Pass htif exit code through to exit so we can easily test it when running tests.
1 parent 1ff730f commit c040c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_emulator/riscv_sim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ void run_sail(void)
10531053
if (diverged) {
10541054
/* TODO */
10551055
}
1056-
finish(diverged);
1056+
finish(diverged | zhtif_exit_code);
10571057

10581058
step_exception:
10591059
fprintf(stderr, "Sail exception!");

0 commit comments

Comments
 (0)