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

Mismatch in Dependency Between henvcfg and menvcfg in NEMU and XiangShan #681

Open
youzi27 opened this issue Nov 25, 2024 · 0 comments
Open

Comments

@youzi27
Copy link

youzi27 commented Nov 25, 2024

Describe the bug
Hi there,

I noticed a mismatch in the behavior of the dependency between henvcfg and menvcfg in NEMU and XiangShan (XS).

Specifically:

  • In NEMU: Bits 4 to 7 of henvcfg are aligned with menvcfg. Modifying menvcfg implicitly updates henvcfg.
  • In XS: Bits 4 to 7 of henvcfg are independent of menvcfg. Modifying menvcfg does not affect henvcfg.

To Reproduce

Initial State: Both NEMU and XS initialize menvcfg to 0x80000000000000f0.
After Modification: When menvcfg is modified to 0x0:
In NEMU, henvcfg updates accordingly to reflect the change in menvcfg.
In XS, henvcfg remains unchanged, with bits 4 to 7 unaffected.

Error log or Screenshots

image

Necessary information on versions

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

No branches or pull requests

1 participant