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

SContext is remaps to HContext when in VSMode #3546

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

JulianBailey
Copy link
Contributor

@JulianBailey JulianBailey commented Dec 18, 2023

  • Fix the mapping when we access scontext or hcontext to ensure we don't switch targets.
    • hcontext is assigned an address in the middle of the VS register address range and should be excluded from the S->VS mapping.
  • Add comment to clarify why we are mapping the S to VS and VS to S.

Related issue:

Type of change: bug report

Impact: functional fix

Development Phase: implementation

Release Notes
The previous code would have remapped SContext on to HContext when in VSMode. This is an error, unfortunately HContext was assigned the address that may have been given to VSContext if added in the future. The adjusted code will no longer map this incorrectly.

…d by the manuals.

* Fix the mapping when we access scontext or hcontext to ensure we don't switch targets.
* Add comment to indicate why we are mapping the S to VS and VS to S.
@JulianBailey JulianBailey changed the title SContext is remaps to HContext when VSMode == 1 SContext is remaps to HContext when in VSMode Dec 18, 2023
@ingallsj ingallsj requested a review from a0u December 18, 2023 18:11
@jerryz123 jerryz123 merged commit e4572b0 into chipsalliance:master Dec 28, 2023
25 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.

3 participants