Added c_ebreak support to riscv-isa-sim-sbreak.diff

This commit is contained in:
Clifford Wolf 2016-04-08 21:41:32 +02:00
parent b40f5864c1
commit cb0f9df0d0
1 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,17 @@
diff --git a/riscv/insns/c_ebreak.h b/riscv/insns/c_ebreak.h
index a17200f..af3a7ad 100644
--- a/riscv/insns/c_ebreak.h
+++ b/riscv/insns/c_ebreak.h
@@ -1,2 +1,9 @@
require_extension('C');
+
+for (int i = 0; i < 16*1024; i += 4) {
+ unsigned int dat = MMU.load_int32(i);
+ printf("%08x\n", dat);
+}
+exit(0);
+
throw trap_breakpoint();
diff --git a/riscv/insns/sbreak.h b/riscv/insns/sbreak.h
index c22776c..31397dd 100644
--- a/riscv/insns/sbreak.h