diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs index 4dead88ce4c92f..a59a9a5868e89f 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs @@ -13,5 +13,6 @@ public enum Architecture S390x, LoongArch64, Armv6, + Ppc64le, } } diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/RuntimeInformation.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/RuntimeInformation.cs index 2d24563212bb56..d0b1eee65bbbcb 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/RuntimeInformation.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/RuntimeInformation.cs @@ -68,6 +68,8 @@ public static Architecture ProcessArchitecture => Architecture.S390x; #elif TARGET_LOONGARCH64 => Architecture.LoongArch64; +#elif TARGET_POWERPC64 + => Architecture.Ppc64le; #else #error Unknown Architecture #endif diff --git a/src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs b/src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs index 50fe5210c91ad5..1405411989d9ef 100644 --- a/src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs +++ b/src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs @@ -48,6 +48,10 @@ public void VerifyArchitecture() Assert.Equal(Architecture.Armv6, processArch); break; + case Architecture.Ppc64le: + Assert.Equal(Architecture.Ppc64le, processArch); + break; + default: Assert.False(true, "Unexpected Architecture."); break; diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index 29dba4b49d954d..680a79f0102a2d 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -12861,6 +12861,7 @@ public enum Architecture S390x = 5, LoongArch64 = 6, Armv6 = 7, + Ppc64le = 8, } public enum CharSet {