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

insts_base: ignore architecture in SFENCE_VMA #722

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

Conversation

radimkrcmar
Copy link
Contributor

Another patch from the mstatus cleanup, #683 (comment).

architecture doesn't change the behavior, so there is no reason to
complicate the code with it.

The code is still suboptimal because of rhs duplication, so this should
be rewritten if (when) Sail supports multiple matches like:
  User    or (Supervisor if mstatus[TVM] == 0b1) => ...
  Machine or (Supervisor if mstatus[TVM] == 0b0) => ...

(Separately mapping those four cases into two and matching on the two is
 also an option, but I'm not sure it would be clearer.)

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Copy link

github-actions bot commented Feb 8, 2025

Test Results

392 tests  ±0   392 ✅ ±0   1m 21s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 825a625. ± Comparison against base commit 8ca0ac0.

Copy link
Collaborator

@jordancarlin jordancarlin left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants