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

generate an exception when jumping to a non-aligned (4-bit alignment) instruction #3

Open
benjamin051000 opened this issue Jun 17, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@benjamin051000
Copy link
Owner

From unpriv page 23:

An instruction-address-misaligned exception is generated on a taken branch or unconditional jump if the target address is not IALIGN-bit aligned.
This exception is reported on the branch or jump instruction, not on the target instruction. No
instruction-address-misaligned exception is generated for a conditional branch that is not taken.

IALIGN=32 in the base ISA.

@benjamin051000 benjamin051000 added the enhancement New feature or request label Jun 17, 2024
@benjamin051000 benjamin051000 added this to the 1.0 milestone Jun 17, 2024
@benjamin051000
Copy link
Owner Author

Instruction-address-misaligned exceptions are reported on the branch or jump that would
cause instruction misalignment to help debugging, and to simplify hardware design for
systems with IALIGN=32, where these are the only places where misalignment can occur.

@benjamin051000 benjamin051000 added bug Something isn't working and removed enhancement New feature or request labels Aug 18, 2024
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