diff options
| author | Prashanth Mundkur | 2018-05-21 17:44:12 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-05-21 18:01:27 -0700 |
| commit | 3bdbabf5728be48bdceab6958cb7a285c27dbda2 (patch) | |
| tree | af55bcf693a7ba3d521df0cb706e40721a767aa4 /riscv/platform_impl.ml | |
| parent | 715edc44ce58bd2d4f3b2206623fe89f65118ad5 (diff) | |
Start platform execution at the reset-vector in the rom.
Diffstat (limited to 'riscv/platform_impl.ml')
| -rw-r--r-- | riscv/platform_impl.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/platform_impl.ml b/riscv/platform_impl.ml index 342eab35..a1a1f699 100644 --- a/riscv/platform_impl.ml +++ b/riscv/platform_impl.ml @@ -27,7 +27,7 @@ let uint64_to_bytes u = let open Int64 in let reset_vec_size = 8l;; let reset_vec_int start_pc = [ - 0x267l; (* auipc t0, 0x0 *) + 0x297l; (* auipc t0, 0x0 *) (let open Int32 in add 0x28593l (shift_left (mul reset_vec_size 4l) 20)); (* addi a1, t0, ofs(dtb) *) 0xf1402573l; (* csrr a0, mhartid *) |
