Skip to content

Commit

Permalink
Merge pull request #398 from ChinYikMing/wasm-demo
Browse files Browse the repository at this point in the history
Fix ELF typo in html and output process completion indicator
  • Loading branch information
jserv authored Apr 5, 2024
2 parents 44be737 + 37af155 commit ddda5d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

var elfFiles = [
"doom.elf",
"smoles.elf",
"smolnes.elf",
"quake.elf",
"coremark.elf",
"dhrystone.elf",
Expand Down
1 change: 1 addition & 0 deletions src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,7 @@ void rv_step(void *arg)

#ifdef __EMSCRIPTEN__
if (rv_has_halted(rv)) {
printf("inferior exit code %d\n", attr->exit_code);
emscripten_cancel_main_loop();
rv_delete(rv); /* clean up and reuse memory */
}
Expand Down

0 comments on commit ddda5d5

Please sign in to comment.