libriscv icon indicating copy to clipboard operation
libriscv copied to clipboard

libtcc does not forward exception due to lack of unwinding tables

Open fwsGonzo opened this issue 1 year ago • 0 comments

There are some possible steps:

  1. Handle exceptions immediately, get return value from opaque calls that can throw
  2. Change the API calls that throw exceptions to instead indicate that an exception was thrown.
  3. Instead of calling api.exception(cpu), simply return a non-zero value, indicating an exception.

In all cases, we will need to return a value or the current state from libtcc to libriscv. We may want to forward the current exception too. It's definitely possible.

fwsGonzo avatar Nov 24 '23 23:11 fwsGonzo