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

MAU_TRY_WITHOUT_MMU: should this handle EXCEPT_RISCV_INST_MISALIGNED? #34

Open
andreiw opened this issue Dec 10, 2023 · 2 comments
Open

Comments

@andreiw
Copy link
Contributor

andreiw commented Dec 10, 2023

I've never seen this in the wild, but I suppose it is possible.

@andreiw
Copy link
Contributor Author

andreiw commented Dec 12, 2023

According to the ISA doc, "Instruction-address-misaligned exceptions are not possible on machines that support extensions
with 16-bit aligned instructions, such as the compressed instruction-set extension, C.". See page 21 of 20191213.

@andreiw
Copy link
Contributor Author

andreiw commented Dec 12, 2023

In short, it's easy to add EXCEPT_RISCV_INST_MISALIGNED handling, but impossible to test it, short of hacking together a custom qemu/sbi/edk2 build to target rv64g instead of rv64gc. Will skip this, esp. given the corner case (not running with an MMU, which is an unsupported scenario anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant