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

Spec doesn't say to clear the second lowest bit of trap handler addresses #427

Open
Timmmm opened this issue Oct 14, 2024 · 0 comments
Open
Assignees
Labels
v1.0 resolve for 1.0

Comments

@Timmmm
Copy link

Timmmm commented Oct 14, 2024

When setting PC to a vectored address on trap or xRET, the spec says:

If the fetch is successful, the hart clears the low bit of the handler address and sets the PC to this handler address.

This is presumably a mistake - it should clear the lowest bit if 16-bit instructions are supported, otherwise clear the lowest two bits.

@jb-brelot-nxp jb-brelot-nxp added the v1.0 resolve for 1.0 label Oct 14, 2024
@jb-brelot-nxp jb-brelot-nxp self-assigned this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.0 resolve for 1.0
Projects
None yet
Development

No branches or pull requests

2 participants