Merge pull request #3834 from bylaws/ec-amd64

Windows: Report as an AMD64 processor when targeting ARM64EC
This commit is contained in:
Ryan Houdek authored and GitHub committed 2024-07-06 17:38:13 -07:00
commit dbac23b749
1 file changed
+6
+6
View File
@@ -5,7 +5,13 @@
namespace FEX::Windows {
CPUFeatures::CPUFeatures(FEXCore::Context::Context& CTX) {
#ifdef _M_ARM_64EC
// Report as a 64-bit host for ARM64EC.
CpuInfo.ProcessorArchitecture = PROCESSOR_ARCHITECTURE_AMD64;
#else
// Report as a 32-bit host for WoW64.
CpuInfo.ProcessorArchitecture = PROCESSOR_ARCHITECTURE_INTEL;
#endif
// Baseline FEX feature-set
CpuInfo.ProcessorFeatureBits = CPU_FEATURE_VME | CPU_FEATURE_TSC | CPU_FEATURE_CMOV | CPU_FEATURE_PGE | CPU_FEATURE_PSE | CPU_FEATURE_MTRR |