[Base] Limit AVX startup checks to AMD64
This commit is contained in:
@@ -6,6 +6,10 @@
|
|||||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
* 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 <gdk/gdk.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <xbyak/xbyak/xbyak_util.h>
|
#include <xbyak/xbyak/xbyak_util.h>
|
||||||
@@ -44,3 +48,4 @@ class StartupCpuFeatureCheck {
|
|||||||
// https://reviews.llvm.org/D12689#243295
|
// https://reviews.llvm.org/D12689#243295
|
||||||
__attribute__((
|
__attribute__((
|
||||||
init_priority(101))) static StartupCpuFeatureCheck gStartupAvxCheck;
|
init_priority(101))) static StartupCpuFeatureCheck gStartupAvxCheck;
|
||||||
|
#endif // XE_ARCH_AMD64
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
|
#if XE_ARCH_AMD64
|
||||||
// Includes Windows headers, so it goes after platform_win.h.
|
// Includes Windows headers, so it goes after platform_win.h.
|
||||||
#include "third_party/xbyak/xbyak/xbyak_util.h"
|
#include "third_party/xbyak/xbyak/xbyak_util.h"
|
||||||
|
|
||||||
@@ -44,3 +45,4 @@ class StartupCpuFeatureCheck {
|
|||||||
#pragma warning(suppress : 4073)
|
#pragma warning(suppress : 4073)
|
||||||
#pragma init_seg(lib)
|
#pragma init_seg(lib)
|
||||||
static StartupCpuFeatureCheck gStartupAvxCheck;
|
static StartupCpuFeatureCheck gStartupAvxCheck;
|
||||||
|
#endif // XE_ARCH_AMD64
|
||||||
|
|||||||
Reference in New Issue
Block a user