Skip to content

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Jan 19, 2024

Description

Add riscv64 architecture to our enums.

Related issue

Fix #4837

  • I have ensured that there is a previously discussed and approved issue.

// case System.Runtime.InteropServices.Architecture.S390x:
(Architecture)5 => PlatformArchitecture.S390x,
(Architecture)8 => PlatformArchitecture.Ppc64le,
(Architecture)9 => PlatformArchitecture.RiscV64,
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't recall but maybe worth it check what we do during the selection of the host for this architecture.

Copy link
Member Author

Choose a reason for hiding this comment

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

We do some fallbacks, I cannot really test it since I don't have hardware, but if it is working on s390x or ppc64le it should work for this architecture as well. The rest of the platform special cases x86, x64 and arm64 (e.g. in blame), but not the other ones. So the change here is pretty much the same as what we did for S390x and Ppc64le.

@nohwnd nohwnd enabled auto-merge (squash) January 19, 2024 14:12
@nohwnd nohwnd merged commit 53df73d into microsoft:main Jan 19, 2024
@ww898
Copy link

ww898 commented Jan 31, 2024

Hi @nohwnd, probably you forget to update PublicAPI.Shipped.txt files.

@nohwnd
Copy link
Member Author

nohwnd commented Feb 1, 2024

@ww898 I see 2 updates to them in this PR. And the build passed (there is roslyn analyzer making sure the files are reflecting what is actually published). Why do you think I forgot to update them? Do you see a mistake, that I don't see?

@ww898
Copy link

ww898 commented Feb 3, 2024

@nohwnd Sorry, it was my fault.

This was referenced Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support RISC-V64 architecture

3 participants