summaryrefslogtreecommitdiff
path: root/riscv/platform.ml
diff options
context:
space:
mode:
authorPrashanth Mundkur2018-06-22 15:16:33 -0700
committerPrashanth Mundkur2018-06-22 17:46:59 -0700
commitc3b10065d3918be2d63cf12612ac00b59b02640b (patch)
treefe4064375189fcc05cc6daef7de5a6f8f8f02c8a /riscv/platform.ml
parentd50d0283aa85abf3911fc57fc9b3f2f1900e067a (diff)
Add cli options to riscv simulator to dump platform device-tree info.
Diffstat (limited to 'riscv/platform.ml')
-rw-r--r--riscv/platform.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/riscv/platform.ml b/riscv/platform.ml
index 10c79faf..0aac4884 100644
--- a/riscv/platform.ml
+++ b/riscv/platform.ml
@@ -66,6 +66,13 @@ let make_rom start_pc =
let dtb = P.make_dtb P.dts in
let rom = reset_vec @ dtb in
( rom_size_ref := List.length rom;
+ (*
+ List.iteri (fun i c ->
+ Printf.eprintf "rom[0x%Lx] <- %x\n"
+ (Int64.add P.rom_base (Int64.of_int i))
+ c
+ ) rom;
+ *)
rom )
let rom_base () = bits_of_int64 P.rom_base