Skip to content

Commit

Permalink
CPUID: Expose support for VPCLMULQDQ
Browse files Browse the repository at this point in the history
Wasn't exposed before since we couldn't unit test the SVE256
implementation.
  • Loading branch information
Sonicadvance1 committed Jun 21, 2024
1 parent 5ba9b92 commit 93813a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FEXCore/Source/Interface/Core/CPUID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ FEXCore::CPUID::FunctionResults CPUIDEmu::Function_07h(uint32_t Leaf) const {
// This is due to LRCPC performance on Cortex being abysmal.
// Only enable EnhancedREPMOVS if SoftwareTSO isn't required OR if MemcpySetTSO is not enabled.
const uint32_t SupportsEnhancedREPMOVS = CTX->SoftwareTSORequired() == false || MemcpySetTSOEnabled() == false;
const uint32_t SupportsVPCLMULQDQ = CTX->HostFeatures.SupportsPMULL_128Bit && SupportsAVX();

// Number of subfunctions
Res.eax = 0x0;
Expand Down Expand Up @@ -647,7 +648,7 @@ FEXCore::CPUID::FunctionResults CPUIDEmu::Function_07h(uint32_t Leaf) const {
(0 << 7) | // CET shadow stack
(0 << 8) | // GFNI
(CTX->HostFeatures.SupportsAES256 << 9) | // VAES
(0 << 10) | // VPCLMULQDQ
(SupportsVPCLMULQDQ << 10) | // VPCLMULQDQ
(0 << 11) | // AVX512_VNNI
(0 << 12) | // AVX512_BITALG
(0 << 13) | // Intel Total Memory Encryption
Expand Down

0 comments on commit 93813a3

Please sign in to comment.