fwsGonzo / libriscv

The fastest RISC-V sandbox
BSD 3-Clause "New" or "Revised" License
522 stars 46 forks source link

Allow using libtcc and full binary translation at the same time #181

Closed fwsGonzo closed 3 days ago

fwsGonzo commented 3 days ago

With this PR it is now possible to:

  1. Provide full binary translation via embedded code, or...
  2. Load full binary translation from shared object, or...
  3. JIT-compile using libtcc as last resort

This unifies all 3 translation methods, paving the way for all of them to be default-enabled at some point. It also enables producing full binary translation in the background, although I'm not sure if I would use it.