aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/cpuid
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-23 17:44:03 -0500
committerJack Lloyd <[email protected]>2018-02-23 17:44:03 -0500
commit9dce5f88e01beea39b34ae3f5f5231022c2e2076 (patch)
treeff54aa536c3c4bfcdd078c2180305b7448749536 /src/lib/utils/cpuid
parentc0386f3ddfa5db09f98686912e23aa884afc15c2 (diff)
Do runtime endian check when CPUID is initialized
Otherwise cross-endian builds (ie building big-endian for little-endian) can have massive test breakage but with no hints.
Diffstat (limited to 'src/lib/utils/cpuid')
-rw-r--r--src/lib/utils/cpuid/cpuid.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/utils/cpuid/cpuid.cpp b/src/lib/utils/cpuid/cpuid.cpp
index 1638ab6c5..9dc56d59c 100644
--- a/src/lib/utils/cpuid/cpuid.cpp
+++ b/src/lib/utils/cpuid/cpuid.cpp
@@ -93,6 +93,7 @@ void CPUID::initialize()
#endif
+ g_endian_status = runtime_check_endian();
g_processor_features |= CPUID::CPUID_INITIALIZED_BIT;
}