41 lines
1.7 KiB
Diff
41 lines
1.7 KiB
Diff
--- nvidia-texture-tools/src/nvcore/poshlib/posh.h.orig 2014-07-28 14:39:34.944968317 +0100
|
|
+++ nvidia-texture-tools/src/nvcore/poshlib/posh.h 2014-07-28 14:40:24.222814437 +0100
|
|
@@ -475,6 +475,17 @@
|
|
# define POSH_CPU_STRING "ARM"
|
|
#endif
|
|
|
|
+/* ------------------------------------------------------------------
|
|
+** AArch64
|
|
+** ------------------------------------------------------------------
|
|
+*/
|
|
+#if defined __aarch64__ || defined __arm64__ || defined FORCE_DOXYGEN
|
|
+# define POSH_CPU_AARCH64 /**<if defined, target CPU is AArch64 */
|
|
+# if !defined FORCE_DOXYGEN
|
|
+# define POSH_CPU_STRING "AArch64"
|
|
+# endif
|
|
+#endif
|
|
+
|
|
#if defined mips || defined __mips__ || defined __MIPS__ || defined _MIPS
|
|
# define POSH_CPU_MIPS 1
|
|
# if defined _R5900
|
|
@@ -648,7 +659,7 @@
|
|
** the MIPS series, so we have to be careful about those.
|
|
** ----------------------------------------------------------------------------
|
|
*/
|
|
-#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__
|
|
+#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__ || defined POSH_CPU_AARCH64
|
|
# define POSH_ENDIAN_STRING "little"
|
|
# define POSH_LITTLE_ENDIAN 1
|
|
#else
|
|
--- nvidia-texture-tools/src/nvcore/nvcore.h.orig 2014-07-28 14:41:03.271484417 +0100
|
|
+++ nvidia-texture-tools/src/nvcore/nvcore.h 2014-07-28 14:41:33.280999015 +0100
|
|
@@ -72,6 +72,8 @@
|
|
# define NV_CPU_PPC 1
|
|
#elif defined POSH_CPU_STRONGARM
|
|
# define NV_CPU_STRONGARM 1
|
|
+#elif defined POSH_CPU_AARCH64
|
|
+# define NV_CPU_AARCH64 1
|
|
#else
|
|
# error "Unsupported CPU"
|
|
#endif
|