Skip to content

Commit

Permalink
libgloss: Fix riscv semihost trap instructions should be all 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
fanghuaqi committed Feb 2, 2024
1 parent e901190 commit 9f1e0f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libgloss/riscv/semihost_syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ __semihost_syscall (long id, long *data_block)
".balign 16 \n"
".option push \n"
".option norvc \n"
".option arch,-c \n"
".option arch,-zcmt,-zcmp,-zcd,-zcf,-zcb,-zca \n"
"slli zero, zero, 0x1f \n"
"ebreak \n"
"srai zero, zero, 0x7 \n"
Expand Down

0 comments on commit 9f1e0f7

Please sign in to comment.