riscv / sail-riscv

Sail RISC-V model
https://lists.riscv.org/g/tech-golden-model
Other
467 stars 169 forks source link

Remove OCaml emulator #509

Closed Timmmm closed 2 months ago

Timmmm commented 4 months ago

Can we remove the OCaml emulator? I think this would have significant benefits:

trdthg commented 4 months ago

Add a little more. Discussions from the past: #138

martinberger commented 4 months ago

Another problem with the Ocaml emu is

arichardson commented 4 months ago

I've also found having to add the ocaml callbacks for every new features a bit annoying in the past (especially since I can't write ocaml and just copy-paste). So +1 from me since I've never used the ocaml emulator.

jordancarlin commented 3 months ago

Is this something that we're planning to proceed with? I can look into it if so.

Timmmm commented 3 months ago

Yeah in the weekly meeting we basically agreed to do it and I said I would make a PR, but I've only ~30% completed it.

One thing we didn't discuss which is a unique OCaml backend feature is the thing where it can generate random instructions based on the encdec mapping, which I believe is used by TestRig. It doesn't depend on the emulator or OCaml callbacks but we might want to still keep the "generate OCaml code" Makefile targets which it presumably uses (I haven't checked yet).