diff --git a/riscv-semihosting/CHANGELOG.md b/riscv-semihosting/CHANGELOG.md index f48294c8..17351113 100644 --- a/riscv-semihosting/CHANGELOG.md +++ b/riscv-semihosting/CHANGELOG.md @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Made `cfg` variable selection more robust for custom targets +- Fixed debug::exit() on riscv64 QEMU simulation ## [v0.1.0] - 2023-01-18 diff --git a/riscv-semihosting/src/debug.rs b/riscv-semihosting/src/debug.rs index 1e2a7b06..9387facb 100644 --- a/riscv-semihosting/src/debug.rs +++ b/riscv-semihosting/src/debug.rs @@ -89,6 +89,6 @@ pub fn exit(status: ExitStatus) { pub fn report_exception(reason: Exception) { let code = reason as usize; unsafe { - syscall1!(REPORT_EXCEPTION, code); + syscall!(REPORT_EXCEPTION, code, 0); } }