From f4bb91b060211884fc0b85479fb6becf20daeb1f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 6 Jun 2016 10:46:52 +0200 Subject: RISC-V ISA 2.1 now calls "sbreak" officially "ebreak" --- dhrystone/start.S | 4 ++-- dhrystone/stdlib.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'dhrystone') 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; } -- cgit