Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtcc does not forward exception due to lack of unwinding tables #104

Open
fwsGonzo opened this issue Nov 24, 2023 · 0 comments
Open

libtcc does not forward exception due to lack of unwinding tables #104

fwsGonzo opened this issue Nov 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@fwsGonzo
Copy link
Owner

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 fwsGonzo added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant