-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[RISC-V] Initial commit for libraries directory #90203
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs
Outdated
Show resolved
Hide resolved
|
src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/Machine.cs
Outdated
Show resolved
Hide resolved
7156e4d
to
ada06cc
Compare
@am11 Should I drop Riscv{32,128} all over the patch or except Machine.cs and System.Reflection.Metadata.cs? This two files also have some targets are not supported yet, e.g. LoongArch32. |
I think the metadata change is fine if it makes things consistent, but we can ask this question during (or after) the API review whenever it will take place. |
@am11 do we need to open separate PR to approve new API? |
@@ -90,7 +90,7 @@ internal sealed class ManagedTextSection | |||
/// If set, the module contains instructions that assume a 64 bit instruction set. For example it may depend on an address being 64 bits. | |||
/// This may be true even if the module contains only IL instructions because of PlatformInvoke and COM interop. | |||
/// </summary> | |||
internal bool Requires64bits => Machine == Machine.Amd64 || Machine == Machine.IA64 || Machine == Machine.Arm64; | |||
internal bool Requires64bits => Machine == Machine.Amd64 || Machine == Machine.IA64 || Machine == Machine.Arm64 || Machine == Machine.Riscv64; |
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 only needed if Windows got ported to Riscv64.
There are many 64-bit architectures missing in this check and it is not causing any issues.
I would keep this simple and omit the Riscv check from here.
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!
4b9e266
to
ad6e24a
Compare
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsRISC-V API proposed in #73437.
|
#73437 needs to go through API review before this can be merged. |
These new APIs have been approved. The only update was to change the casing of the |
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/RuntimeInformation.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Reflection.Metadata/ref/System.Reflection.Metadata.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/Machine.cs
Outdated
Show resolved
Hide resolved
...aries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/PEHeaderBuilder.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Reflection.Metadata/tests/PortableExecutable/PEHeadersTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs
Show resolved
Hide resolved
...aries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/PEHeaderBuilder.cs
Outdated
Show resolved
Hide resolved
8c1a93a
to
78b9df5
Compare
src/libraries/System.Reflection.Metadata/tests/PortableExecutable/PEHeadersTests.cs
Outdated
Show resolved
Hide resolved
…ble/PEHeadersTests.cs Co-authored-by: Jan Kotas <jkotas@microsoft.com>
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. Thank you!
RISC-V API proposed in #73437.
Part of #84834.
cc @alpencolt @gbalykov @ashaurtaev @clamp03.