[Base] Limit AVX startup checks to AMD64

This commit is contained in:
Herman S.
2026-03-17 09:55:58 +09:00
parent b581c2d852
commit 9fbcdae5dc
2 changed files with 7 additions and 0 deletions

View File

@@ -6,6 +6,10 @@
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include "xenia/base/platform.h"
#if XE_ARCH_AMD64
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <xbyak/xbyak/xbyak_util.h>
@@ -44,3 +48,4 @@ class StartupCpuFeatureCheck {
// https://reviews.llvm.org/D12689#243295
__attribute__((
init_priority(101))) static StartupCpuFeatureCheck gStartupAvxCheck;
#endif // XE_ARCH_AMD64

View File

@@ -11,6 +11,7 @@
#include <cstdlib>
#if XE_ARCH_AMD64
// Includes Windows headers, so it goes after platform_win.h.
#include "third_party/xbyak/xbyak/xbyak_util.h"
@@ -44,3 +45,4 @@ class StartupCpuFeatureCheck {
#pragma warning(suppress : 4073)
#pragma init_seg(lib)
static StartupCpuFeatureCheck gStartupAvxCheck;
#endif // XE_ARCH_AMD64