first semihosting integration

This commit is contained in:
gabriel
2024-02-26 20:41:15 +01:00
parent 532f7e9bb8
commit 39ee91af7d
5 changed files with 219 additions and 1 deletions

2
env/entry.S vendored
View File

@@ -41,7 +41,7 @@ trap_entry:
csrr a0, mcause
csrr a1, mepc
mv a2, sp
call handle_trap
call trap
csrw mepc, a0
#ifndef __riscv_abi_rve
addi sp, sp, -8*REGBYTES