aboutsummaryrefslogtreecommitdiff
path: root/c_emulator
diff options
context:
space:
mode:
authorPrashanth Mundkur <prashanth.mundkur@gmail.com>2019-01-16 18:50:31 -0800
committerPrashanth Mundkur <prashanth.mundkur@gmail.com>2019-01-16 19:04:30 -0800
commit793643d5879f311f8979cc5046f07020cbb375fd (patch)
treefbf83b4b5169016dfa2b361b115ec9114d3734c0 /c_emulator
parent684f431d52c610cc24d12ae3e7b7def9fa0d5317 (diff)
downloadsail-riscv-793643d5879f311f8979cc5046f07020cbb375fd.zip
sail-riscv-793643d5879f311f8979cc5046f07020cbb375fd.tar.gz
sail-riscv-793643d5879f311f8979cc5046f07020cbb375fd.tar.bz2
More reorg.
. move prover files into a single support directory . generated_models -> generated_definitions . reset vector -> c_emulator
Diffstat (limited to 'c_emulator')
-rw-r--r--c_emulator/reset_vec.S12
-rwxr-xr-xc_emulator/reset_vec.binbin0 -> 28 bytes
2 files changed, 12 insertions, 0 deletions
diff --git a/c_emulator/reset_vec.S b/c_emulator/reset_vec.S
new file mode 100644
index 0000000..526bbc7
--- /dev/null
+++ b/c_emulator/reset_vec.S
@@ -0,0 +1,12 @@
+.global _start
+
+.text
+
+_start:
+ auipc t0, 0x0
+ addi a1, t0, 32
+ csrr a0, mhartid
+ ld t0, 24(t0)
+ jr t0
+.short 0x0000
+.word 0x00000000, 0x80000000
diff --git a/c_emulator/reset_vec.bin b/c_emulator/reset_vec.bin
new file mode 100755
index 0000000..d2d3563
--- /dev/null
+++ b/c_emulator/reset_vec.bin
Binary files differ