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

Minor architecture cleanup #703

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Conversation

radimkrcmar
Copy link
Contributor

First three patches of #683.

Other cur_ helpers use small case; make architecture follow the
convention.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
`architecture` is XLEN (not `xlen`, which is MXLEN) and XLEN is always
defined.  Returning None would mean that Sail made an error somewhere
and there is no reason to poison unrelated code with it.

Remove the option type from architecture and throw an interal error
instead.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
arch_to_bits can be replaced by architecture if we turn architecture
into a mapping.  Reduce duplication.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
model/riscv_insts_base.sail Show resolved Hide resolved
Copy link
Collaborator

@Timmmm Timmmm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Timmmm Timmmm added the will be merged Scheduled to be merged in a few days if nobody objects label Jan 29, 2025
Copy link

Test Results

396 tests  ±0   396 ✅ ±0   0s ⏱️ ±0s
  4 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 671002c. ± Comparison against base commit 3d28cef.

@Timmmm Timmmm merged commit 48b3b00 into riscv:master Jan 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
will be merged Scheduled to be merged in a few days if nobody objects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants