Closed ved-rivos closed 4 months ago
What's the Sail side of valid_ctr_depth?
val sys_valid_ctr_depth = {c: "sys_valid_ctr_depth", ocaml: "Platform.valid_ctr_depth", _: "sys_valid_ctr_depth"} : unit -> bits(64)
Big_int is for mathematical integer types, not bit vectors. See arch_bits_of_int to convert from an int (not big) to that, as used by things like rom_size.
Thanks. That typecast worked.
platform.ml:let config_valid_ctr_depth = ref Int.zero
platform.ml:let set_valid_ctr_depth x = config_valid_ctr_depth := x
platform.ml:let valid_ctr_depth () = arch_bits_of_int !config_valid_ctr_depth
riscv_ocaml_sim.ml: Arg.Int P.set_valid_ctr_depth,
I am seeing this error:
I believe its complaining about something in this code: