diff --git a/libgloss/riscv/semihost_syscall.h b/libgloss/riscv/semihost_syscall.h index 50e731b40..6c054a73a 100644 --- a/libgloss/riscv/semihost_syscall.h +++ b/libgloss/riscv/semihost_syscall.h @@ -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"