Skip to content

Commit

Permalink
feat: forward application exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Sep 22, 2023
1 parent cb6f039 commit 0eba548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cartesi-machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ else
cycles = machine:read_mcycle()
-- deal with halt
if machine:read_iflags_H() then
exit_code = machine:read_htif_tohost_data() >> 1
exit_code = machine:read_htif_tohost_data() >> 1 -- lsb is always 1
if exit_code ~= 0 then
stderr("\nHalted with payload: %u\n", exit_code)
else
Expand Down

0 comments on commit 0eba548

Please sign in to comment.