Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Generate illegal instruction traps for s* CSR accesses if misa.S is not set #126

Open
michaeljclark opened this issue Apr 4, 2018 · 0 comments
Labels
qemu-for-upstream Fixed in the qemu-for-upstream branch

Comments

@michaeljclark
Copy link
Collaborator

misa.S indicates the machine supports S mode, and hence implements the s*CSRs, either returning the required values, or hard-coded to zero as specified.

However, if S-mode is not implemented, s* CSR accesses should generate illegal instruction traps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
qemu-for-upstream Fixed in the qemu-for-upstream branch
Projects
None yet
Development

No branches or pull requests

1 participant