libriscv
libriscv copied to clipboard
libtcc does not forward exception due to lack of unwinding tables
There are some possible steps:
- Handle exceptions immediately, get return value from opaque calls that can throw
- Change the API calls that throw exceptions to instead indicate that an exception was thrown.
- 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.