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

Add RVE register bounds checks to Base ISA ('I'/'E') in translate.c #144

Open
michaeljclark opened this issue May 17, 2018 · 0 comments
Open

Comments

@michaeljclark
Copy link
Collaborator

To enforce misa.E, target/riscv/translate.c needs register bounds checks added for the Base ISA ('I'/'E') and to generate illegal instruction exceptions if 'E' is set in misa and regno >= 16.

All other extensions are already disallowed on 'E' processors. 'M', 'A', 'F', 'D' and 'C' will already generate illegal instruction exceptions if not present so we only need to add register bounds checks to the Base ISA ('I'/'E') opcodes.

After adding enforcement to translate.c we need to alter write_misa to allow setting the 'E' flag:

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

No branches or pull requests

1 participant