-
Notifications
You must be signed in to change notification settings - Fork 701
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
Fix misaligned jump target exception handling #2508
Conversation
7a60c7f
to
123ed1d
Compare
❌ failed run, report available here. |
1 similar comment
❌ failed run, report available here. |
As per the specifications, instruction-address-misaligned exceptions should be reported for instructions that are not 16-bit aligned if the C extension is supported, and for instructions that are not 32-bit aligned if not.
123ed1d
to
c789b6d
Compare
❌ failed run, report available here. |
You shouldn't be able to trigger this exception if RVC is enabled. Since the LSB is cleared:
|
Yes, I realized this after opening the PR. |
Indeed, could be clearer about it. But I think it is exactly how you wrote it. It should trigger it, but you can't trigger it. |
As per the specifications, instruction-address-misaligned exceptions should be reported for instructions that are not 16-bit aligned if the C extension is supported, and for instructions that are not 32-bit aligned if not.