mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
CPUTranslator: detect FMA feature
This commit is contained in:
parent
4a5c8c392c
commit
068450d4fe
3 changed files with 35 additions and 5 deletions
|
@ -958,10 +958,12 @@ std::string jit_compiler::cpu(const std::string& _cpu)
|
|||
m_cpu == "skylake" ||
|
||||
m_cpu == "skylake-avx512" ||
|
||||
m_cpu == "cascadelake" ||
|
||||
m_cpu == "cooperlake" ||
|
||||
m_cpu == "cannonlake" ||
|
||||
m_cpu == "icelake" ||
|
||||
m_cpu == "icelake-client" ||
|
||||
m_cpu == "icelake-server")
|
||||
m_cpu == "icelake-server" ||
|
||||
m_cpu == "tigerlake")
|
||||
{
|
||||
// Downgrade if AVX is not supported by some chips
|
||||
if (!utils::has_avx())
|
||||
|
@ -972,10 +974,12 @@ std::string jit_compiler::cpu(const std::string& _cpu)
|
|||
|
||||
if (m_cpu == "skylake-avx512" ||
|
||||
m_cpu == "cascadelake" ||
|
||||
m_cpu == "cooperlake" ||
|
||||
m_cpu == "cannonlake" ||
|
||||
m_cpu == "icelake" ||
|
||||
m_cpu == "icelake-client" ||
|
||||
m_cpu == "icelake-server")
|
||||
m_cpu == "icelake-server" ||
|
||||
m_cpu == "tigerlake")
|
||||
{
|
||||
// Downgrade if AVX-512 is disabled or not supported
|
||||
if (!utils::has_512())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue