Probe {riscv,loongarch,arm}64 virtual memory address - #133380
Open
am11 wants to merge 8 commits into
Open
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @anicka-net, @dotnet/gc |
Member
Author
|
cc @t-mustafin, @dotnet/samsung |
janvorli
reviewed
Sep 7, 2026
t-mustafin
approved these changes
Sep 8, 2026
Member
|
It seems we need similar treatment for arm64 too (e.g. for Android). See #85556 (comment) that mentions that Android ships with 39-bit VA size. |
tomeksowi
approved these changes
Sep 8, 2026
Member
Author
|
cc @LuckyXu-HF, @shushanhf, included LA64. |
shushanhf
reviewed
Sep 9, 2026
| static const int candidates[] = { 56, 47 }; | ||
| const int minVaBits = 38; | ||
| #else // TARGET_LOONGARCH64 | ||
| static const int candidates[] = { 47, 39 }; |
Contributor
There was a problem hiding this comment.
In LA64, the range of memory address space accessible by application is: 0-2VALEN-1-1. Generally VALEN is in the range of [40,48]. Application can determine the specific value of VALEN by executing the CPUCFG instruction to read the VALEN field of the 0x1 configuration word.
clamp03
approved these changes
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modern riscv64 systems are using sv48 and GC remains limited to sv39. PR probes it at run-time.