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

[LoongArch64] Remove the register tp from callee saved registers in coreclr. #108696

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sunlijun-610
Copy link
Contributor

Previously in LoongArch, most of the code in CoreCLR treated the TP register as a callee saved register. But actually, the TP register in LoongArch is a thread pointer and should not be used as a callee saved register.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Oct 9, 2024
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@sunlijun-610
Copy link
Contributor Author

@shushanhf Could you please review this PR?
Thanks!

@@ -375,7 +375,7 @@ SIZE_T GetRegOffsInCONTEXT(ICorDebugInfo::RegNum regNum)
{
case ICorDebugInfo::REGNUM_R0: return offsetof(T_CONTEXT, R0);
case ICorDebugInfo::REGNUM_RA: return offsetof(T_CONTEXT, Ra);
case ICorDebugInfo::REGNUM_TP: return offsetof(T_CONTEXT, Tp);
//case ICorDebugInfo::REGNUM_TP: return offsetof(T_CONTEXT, Tp);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to modify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-loongarch64 area-VM-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants