aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/System.cpp
diff options
context:
space:
mode:
authordaMaex <damaex@live.de>2020-02-23 22:37:02 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-22 12:30:00 +0100
commit8181177aea9becb4e404d021f1b1e3902d21d7ec (patch)
treeb7debc20fe39cb0d9a63271fc4138f364ebe5196 /dep/g3dlite/source/System.cpp
parent38bca4eeb69ff59b76863cedce08914e555d0649 (diff)
Core: Build on ARM64 - Raspberry Pi (preferable 4) (#23885)
* build again on aarch64 * include mm_malloc header instead of defining self (cherry picked from commit cbe765df7a75f61941583ab95ecaa153e198d3de)
Diffstat (limited to 'dep/g3dlite/source/System.cpp')
-rw-r--r--dep/g3dlite/source/System.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/dep/g3dlite/source/System.cpp b/dep/g3dlite/source/System.cpp
index b841e23c497..4a75d320b8d 100644
--- a/dep/g3dlite/source/System.cpp
+++ b/dep/g3dlite/source/System.cpp
@@ -79,8 +79,9 @@
#endif
// SIMM include
+#if !defined(__aarch64__)
#include <xmmintrin.h>
-
+#endif
namespace G3D {
@@ -1697,6 +1698,16 @@ void System::cpuid(CPUIDFunction func, uint32& eax, uint32& ebx, uint32& ecx, ui
edx = regs[3];
}
+#elif defined(__aarch64__) || defined(G3D_OSX) && ! defined(G3D_OSX_INTEL)
+
+// non-x86 CPU; no CPUID
+void System::cpuid(CPUIDFunction func, uint32& eax, uint32& ebx, uint32& ecx, uint32& edx) {
+ eax = 0;
+ ebx = 0;
+ ecx = 0;
+ edx = 0;
+}
+
#else
// See http://sam.zoy.org/blog/2007-04-13-shlib-with-non-pic-code-have-inline-assembly-and-pic-mix-well