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

csr_regfile: Fix S-mode traps when H extension is enabled #2599

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

niwis
Copy link
Contributor

@niwis niwis commented Nov 13, 2024

Supersedes #2587. If Hypervisor extension is enabled, the logic required to properly trap to S mode is currently excluded (Since #2346, the else block below the diff is no longer taken if CVA6Cfg.RVH && !trap_to_v). This means that supervisor traps are currently broken in the presence of H extension. Fix this by adjusting the if condition.

If Hypervisor extension is enabled, the logic required to properly trap
to S mode is currently excluded. Fix this by adjusting the if block.

Signed-off-by: Nils Wistoff <[email protected]>
Copy link
Contributor

❌ failed run, report available here.

@JeanRochCoulon
Copy link
Contributor

image

Copy link
Contributor

❌ failed run, report available here.

Copy link
Contributor

❌ failed run, report available here.

@niwis
Copy link
Contributor Author

niwis commented Nov 14, 2024

@JeanRochCoulon I have worked around the lint warning. Gate-level simulation still fails, but I can't see the reason for this

@JeanRochCoulon
Copy link
Contributor

HEllo @niwis The gate simulation is failed, but it is a false fail. Do not worry about it. I will merge ! Thanks

@JeanRochCoulon JeanRochCoulon merged commit f54b9d4 into openhwgroup:master Nov 14, 2024
4 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.

2 participants