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 | |
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')
-rw-r--r-- | scripts/csmith/syscalls.c | 4 | ||||
-rw-r--r-- | scripts/cxxdemo/syscalls.c | 4 | ||||
-rw-r--r-- | scripts/icestorm/firmware.S | 2 | ||||
-rw-r--r-- | scripts/icestorm/firmware.c | 2 | ||||
-rw-r--r-- | scripts/torture/riscv_test.h | 4 | ||||
-rw-r--r-- | scripts/vivado/firmware.S | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/scripts/csmith/syscalls.c b/scripts/csmith/syscalls.c index f12b07e..cdf872f 100644 --- a/scripts/csmith/syscalls.c +++ b/scripts/csmith/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(); } 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(); } diff --git a/scripts/icestorm/firmware.S b/scripts/icestorm/firmware.S index e6c6e42..d19783d 100644 --- a/scripts/icestorm/firmware.S +++ b/scripts/icestorm/firmware.S @@ -9,4 +9,4 @@ addi sp, sp, %lo(512) jal ra, main /* break */ -sbreak +ebreak diff --git a/scripts/icestorm/firmware.c b/scripts/icestorm/firmware.c index fcb5152..a5e5236 100644 --- a/scripts/icestorm/firmware.c +++ b/scripts/icestorm/firmware.c @@ -42,7 +42,7 @@ void gray(uint8_t c) uint8_t gray_decoded = gray_decode(gray_simple); if (gray_simple != gray_bitwise || gray_decoded != c) - while (1) asm volatile ("sbreak"); + while (1) asm volatile ("ebreak"); output(gray_simple); } diff --git a/scripts/torture/riscv_test.h b/scripts/torture/riscv_test.h index de1c069..36c5b54 100644 --- a/scripts/torture/riscv_test.h +++ b/scripts/torture/riscv_test.h @@ -7,7 +7,7 @@ #define RVTEST_DATA_BEGIN #define RVTEST_DATA_END -#define RVTEST_FAIL sbreak -#define RVTEST_PASS sbreak +#define RVTEST_FAIL ebreak +#define RVTEST_PASS ebreak #endif diff --git a/scripts/vivado/firmware.S b/scripts/vivado/firmware.S index ae554fb..c55a3ba 100644 --- a/scripts/vivado/firmware.S +++ b/scripts/vivado/firmware.S @@ -9,4 +9,4 @@ addi sp, sp, %lo(16*1024) jal ra, main /* break */ -sbreak +ebreak |