-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[RISC-V] coreclr-pal and coreclr-debug directories #82380
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5f442ca
[RISC-V] coreclr-pal and coreclr-debug directories
clamp03 328f09d
Fix
clamp03 759830d
[PAL] Update
clamp03 b85140c
[PAL] Update
clamp03 b17ec14
[PAL] Updated based on reviews
clamp03 2b6b761
[PAL] Update REGISTER_RISCV64_X0
clamp03 f7775f3
[PAL] Fix a mistake
clamp03 fe29407
[PAL] Fix by reviews
clamp03 8d6ead4
[PAL] Restore EPILOG_STACK_FREE
clamp03 3bfa782
Merge remote-tracking branch 'origin/main' into riscv_pal_debug
clamp03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| //***************************************************************************** | ||
| // File: CordbRegisterSet.cpp | ||
| // | ||
|
|
||
| // | ||
| //***************************************************************************** | ||
| #include "primitives.h" | ||
|
|
||
|
|
||
| HRESULT CordbRegisterSet::GetRegistersAvailable(ULONG64* pAvailable) | ||
| { | ||
| FAIL_IF_NEUTERED(this); | ||
| VALIDATE_POINTER_TO_OBJECT(pAvailable, ULONG64 *); | ||
|
|
||
| *pAvailable = SETBITULONG64(REGISTER_RISCV64_PC) | ||
| | SETBITULONG64(REGISTER_RISCV64_RA) | ||
| | SETBITULONG64(REGISTER_RISCV64_SP) | ||
| | SETBITULONG64(REGISTER_RISCV64_GP) | ||
| | SETBITULONG64(REGISTER_RISCV64_TP) | ||
| | SETBITULONG64(REGISTER_RISCV64_T0) | ||
| | SETBITULONG64(REGISTER_RISCV64_T1) | ||
| | SETBITULONG64(REGISTER_RISCV64_T2) | ||
| | SETBITULONG64(REGISTER_RISCV64_FP) | ||
| | SETBITULONG64(REGISTER_RISCV64_S1) | ||
| | SETBITULONG64(REGISTER_RISCV64_A0) | ||
| | SETBITULONG64(REGISTER_RISCV64_A1) | ||
| | SETBITULONG64(REGISTER_RISCV64_A2) | ||
| | SETBITULONG64(REGISTER_RISCV64_A3) | ||
| | SETBITULONG64(REGISTER_RISCV64_A4) | ||
| | SETBITULONG64(REGISTER_RISCV64_A5) | ||
| | SETBITULONG64(REGISTER_RISCV64_A6) | ||
| | SETBITULONG64(REGISTER_RISCV64_A7) | ||
| | SETBITULONG64(REGISTER_RISCV64_S2) | ||
| | SETBITULONG64(REGISTER_RISCV64_S3) | ||
| | SETBITULONG64(REGISTER_RISCV64_S4) | ||
| | SETBITULONG64(REGISTER_RISCV64_S5) | ||
| | SETBITULONG64(REGISTER_RISCV64_S6) | ||
| | SETBITULONG64(REGISTER_RISCV64_S7) | ||
| | SETBITULONG64(REGISTER_RISCV64_S8) | ||
| | SETBITULONG64(REGISTER_RISCV64_S9) | ||
| | SETBITULONG64(REGISTER_RISCV64_S10) | ||
| | SETBITULONG64(REGISTER_RISCV64_S11) | ||
| | SETBITULONG64(REGISTER_RISCV64_T3) | ||
| | SETBITULONG64(REGISTER_RISCV64_T4) | ||
| | SETBITULONG64(REGISTER_RISCV64_T5) | ||
| | SETBITULONG64(REGISTER_RISCV64_T6) | ||
| | SETBITULONG64(REGISTER_RISCV64_F0) | ||
| | SETBITULONG64(REGISTER_RISCV64_F1) | ||
| | SETBITULONG64(REGISTER_RISCV64_F2) | ||
| | SETBITULONG64(REGISTER_RISCV64_F3) | ||
| | SETBITULONG64(REGISTER_RISCV64_F4) | ||
| | SETBITULONG64(REGISTER_RISCV64_F5) | ||
| | SETBITULONG64(REGISTER_RISCV64_F6) | ||
| | SETBITULONG64(REGISTER_RISCV64_F7) | ||
| | SETBITULONG64(REGISTER_RISCV64_F8) | ||
| | SETBITULONG64(REGISTER_RISCV64_F9) | ||
| | SETBITULONG64(REGISTER_RISCV64_F10) | ||
| | SETBITULONG64(REGISTER_RISCV64_F11) | ||
| | SETBITULONG64(REGISTER_RISCV64_F12) | ||
| | SETBITULONG64(REGISTER_RISCV64_F13) | ||
| | SETBITULONG64(REGISTER_RISCV64_F14) | ||
| | SETBITULONG64(REGISTER_RISCV64_F15) | ||
| | SETBITULONG64(REGISTER_RISCV64_F16) | ||
| | SETBITULONG64(REGISTER_RISCV64_F17) | ||
| | SETBITULONG64(REGISTER_RISCV64_F18) | ||
| | SETBITULONG64(REGISTER_RISCV64_F19) | ||
| | SETBITULONG64(REGISTER_RISCV64_F20) | ||
| | SETBITULONG64(REGISTER_RISCV64_F21) | ||
| | SETBITULONG64(REGISTER_RISCV64_F22) | ||
| | SETBITULONG64(REGISTER_RISCV64_F23) | ||
| | SETBITULONG64(REGISTER_RISCV64_F24) | ||
| | SETBITULONG64(REGISTER_RISCV64_F25) | ||
| | SETBITULONG64(REGISTER_RISCV64_F26) | ||
| | SETBITULONG64(REGISTER_RISCV64_F27) | ||
| | SETBITULONG64(REGISTER_RISCV64_F28) | ||
| | SETBITULONG64(REGISTER_RISCV64_F29) | ||
| | SETBITULONG64(REGISTER_RISCV64_F30) | ||
| | SETBITULONG64(REGISTER_RISCV64_F31); | ||
|
|
||
| return S_OK; | ||
| } | ||
|
|
||
| HRESULT CordbRegisterSet::GetRegisters(ULONG64 mask, ULONG32 regCount, | ||
| CORDB_REGISTER regBuffer[]) | ||
| { | ||
| _ASSERTE(!"RISCV64:NYI"); | ||
| return S_OK; | ||
| } | ||
|
|
||
|
|
||
| HRESULT CordbRegisterSet::GetRegistersAvailable(ULONG32 regCount, | ||
| BYTE pAvailable[]) | ||
| { | ||
| _ASSERTE(!"RISCV64:NYI"); | ||
| return S_OK; | ||
| } | ||
|
|
||
|
|
||
| HRESULT CordbRegisterSet::GetRegisters(ULONG32 maskCount, BYTE mask[], | ||
| ULONG32 regCount, CORDB_REGISTER regBuffer[]) | ||
| { | ||
| _ASSERTE(!"RISCV64:NYI"); | ||
| return S_OK; | ||
| } | ||
|
|
||
|
|
||
| // This is just a convenience function to convert a regdisplay into a Context. | ||
| // Since a context has more info than a regdisplay, the conversion isn't perfect | ||
| // and the context can't be fully accurate. | ||
| void CordbRegisterSet::InternalCopyRDToContext(DT_CONTEXT *pInputContext) | ||
| { | ||
| _ASSERTE(!"RISCV64:NYI"); | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| #include <unixasmmacros.inc> | ||
|
|
||
| // Arguments | ||
| // input: (in A0) the value to be converted to a double | ||
| // output: the double corresponding to the _NEON128 input value | ||
| LEAF_ENTRY FPFillR8, .TEXT | ||
| ld a0, 0(a0) | ||
clamp03 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| jalr x0, ra, 0 | ||
clamp03 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| LEAF_END FPFillR8, .TEXT | ||
5 changes: 2 additions & 3 deletions
5
...c/arch/riscv64/activationhandlerwrapper.S → src/coreclr/debug/di/riscv64/primitives.cpp
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| #include "unixasmmacros.inc" | ||
| #include "asmconstants.h" | ||
| // | ||
|
|
||
| #error "TODO-RISCV64: missing implementation" | ||
| #include "../../shared/riscv64/primitives.cpp" |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.