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 /dhrystone | |
parent | 490a7345191f9841fa953d18b27c8485171406ce (diff) | |
download | picorv32-f4bb91b060211884fc0b85479fb6becf20daeb1f.tar.gz picorv32-f4bb91b060211884fc0b85479fb6becf20daeb1f.zip |
RISC-V ISA 2.1 now calls "sbreak" officially "ebreak"
Diffstat (limited to 'dhrystone')
-rw-r--r-- | dhrystone/start.S | 4 | ||||
-rw-r--r-- | dhrystone/stdlib.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dhrystone/start.S b/dhrystone/start.S index 092ba96..9fb2359 100644 --- a/dhrystone/start.S +++ b/dhrystone/start.S @@ -46,6 +46,6 @@ start: sw a4,0(a0) sw a5,0(a0) - /* break */ - sbreak + /* trap */ + ebreak diff --git a/dhrystone/stdlib.c b/dhrystone/stdlib.c index 1b04026..b4d2a2f 100644 --- a/dhrystone/stdlib.c +++ b/dhrystone/stdlib.c @@ -36,7 +36,7 @@ char *malloc(int size) // printf("[malloc(%d) -> %d (%d..%d)]", size, (int)p, heap_memory_used, heap_memory_used + size); heap_memory_used += size; if (heap_memory_used > 1024) - asm("sbreak"); + asm("ebreak"); return p; } |