diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-06-06 10:46:52 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-06-06 10:46:52 +0200 |
commit | f4bb91b060211884fc0b85479fb6becf20daeb1f (patch) | |
tree | d971e626fe57262b7830211644f043477b33c562 /scripts/cxxdemo | |
parent | 490a7345191f9841fa953d18b27c8485171406ce (diff) | |
download | picorv32-f4bb91b060211884fc0b85479fb6becf20daeb1f.tar.gz picorv32-f4bb91b060211884fc0b85479fb6becf20daeb1f.zip |
RISC-V ISA 2.1 now calls "sbreak" officially "ebreak"
Diffstat (limited to 'scripts/cxxdemo')
-rw-r--r-- | scripts/cxxdemo/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cxxdemo/syscalls.c b/scripts/cxxdemo/syscalls.c index f12b07e..cdf872f 100644 --- a/scripts/cxxdemo/syscalls.c +++ b/scripts/cxxdemo/syscalls.c @@ -44,7 +44,7 @@ void unimplemented_syscall() const char *p = "Unimplemented system call called!\n"; while (*p) *(volatile int*)0x10000000 = *(p++); - asm volatile ("sbreak"); + asm volatile ("ebreak"); __builtin_unreachable(); } @@ -89,7 +89,7 @@ void *sbrk(ptrdiff_t incr) void _exit(int exit_status) { - asm volatile ("sbreak"); + asm volatile ("ebreak"); __builtin_unreachable(); } |