Skip to content

RISCV: improve readablity of RISCV disassembler #62

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

compnerd
Copy link
Owner

Replace the bit-extraction operations with a helper template type bits which
takes two template parameters to indicate the bits to extract. This improves
the readability and maintainability of the RISCV disassembler. The idea itself
was something that was suggested by @dmlockhart in #47. This noticably improves
the ability to cross-reference the RISCV ISA specification.

Replace the bit-extraction operations with a helper template type `bits` which
takes two template parameters to indicate the bits to extract.  This improves
the readability and maintainability of the RISCV disassembler.  The idea itself
was something that was suggested by @dmlockhart in #47.  This noticably improves
the ability to cross-reference the RISCV ISA specification.
@compnerd
Copy link
Owner Author

@dmlockhart - I don't think that its valuable to try to write something to concatenate the bits. The compiler doesn't fare very well with that: https://godbolt.org/z/csjsj9xjv.

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.

1 participant