diff --git a/rpcs3/util/simd.hpp b/rpcs3/util/simd.hpp index 0a22a5569b..0b9eddc30c 100644 --- a/rpcs3/util/simd.hpp +++ b/rpcs3/util/simd.hpp @@ -590,10 +590,12 @@ inline void gv_unset_zeroing_denormals() #endif } +inline bool g_use_avx = utils::has_avx(); + inline void gv_zeroupper() { #if defined(ARCH_X64) - if (!utils::has_avx()) + if (!g_use_avx) return; #if defined(_M_X64) _mm256_zeroupper();