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

Stop including pseudo instructions in output for Go #303

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

4a6f656c
Copy link
Contributor

Go really only needs the instruction encodings for actual instructions. Additional pseudo-encodings have since been added to the riscv-opcodes generation, which also include instructions that are aliased to themselves (e.g. AJALPSEUDO/AJALRPSEUDO). Instead of dealing with these complications, stop including pseudo instructions in the output for Go and we'll synthesise the pseudo instructions that we need.

Add -pseudo which can be used to enable the generation of pseudo-instructions, restoring the previous behaviour.

Fixes #286

Go really only needs the instruction encodings for actual instructions.
Additional pseudo-encodings have since been added to the riscv-opcodes
generation, which also include instructions that are aliased to
themselves (e.g. AJALPSEUDO/AJALRPSEUDO). Instead of dealing with these
complications, stop including pseudo instructions in the output for Go
and we'll synthesise pseudo instructions that we need.

Add -pseudo which can be used to enable the generation of
pseudo-instructions, restoring the previous behaviour.
@aswaterman aswaterman merged commit 0204706 into riscv:master Oct 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected jalpseudo/jalrpseudo instructions
2 participants