提交 21ac4c77 编写于 作者: Z Zihao Yu

riscv32-noop,trm: more comments for _halt()

上级 a1994998
......@@ -21,9 +21,11 @@ void _putc(char ch) {
void _halt(int code) {
__asm__ volatile("mv a0, %0; .word 0x0005006b" : :"r"(code));
// should not reach here during simulation
printf("Exit with code = %d\n", code);
// should not reach here
// should not reach here on FPGA
while (1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册