-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[LoongArch64] Modify dwarfReg in native llvm-libunwind to be consistent with the LoongArch manual. #106308
Conversation
@shushanhf @MichalStrehovsky Could you review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/Dwarf/DwarfExpressionBuilder.cs
Show resolved
Hide resolved
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
UNW_LOONGARCH_F29 = 61, | ||
UNW_LOONGARCH_F30 = 62, | ||
UNW_LOONGARCH_F31 = 63, | ||
UNW_LOONGARCH_F0 = 64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is vendored project from https://github.com/llvm/llvm-project/blob/main/libunwind/include/libunwind.h#L1269 . Is this a bug in the upstream project? If yes, could you please make sure that this fix is upstreamed to https://github.com/llvm/llvm-project as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much~!
You are right.
The jit/unwindloongarch64.cpp
is too old.
we have to follow the latest la-abi speci https://github.com/loongson/la-abi-specs/blob/release/ladwarf.adoc
And we have to modify this file https://github.com/dotnet/runtime/blob/main/src/coreclr/jit/unwindarm64.cpp#L21
Also thanks @filipnavara
We will close this PR and push a new PR to modify the unwindarm64.cpp.
The new PR for modifying jit/unwindloongarch64.cpp has been submitted to #106382 |
Change the
UNW_LOONGARCH
ofF0-F31
from 32-63 to 64-95.