nvidia-texture-tools/nvidia-texture-tools-mips.p...

39 lines
1.2 KiB
Diff

diff -urp nvidia-texture-tools/src/nvcore/nvcore.h n/src/nvcore/nvcore.h
--- nvidia-texture-tools/src/nvcore/nvcore.h 2016-08-11 16:03:03.828716573 +0200
+++ n/src/nvcore/nvcore.h 2016-08-11 16:04:57.149510851 +0200
@@ -74,6 +74,10 @@
# define NV_CPU_STRONGARM 1
#elif defined POSH_CPU_AARCH64
# define NV_CPU_AARCH64 1
+#elif defined POSH_CPU_MIPS
+# define NV_CPU_MIPS 1
+#elif defined POSH_CPU_MIPS64
+# define NV_CPU_MIPS64 1
#else
# error "Unsupported CPU"
#endif
diff -urp nvidia-texture-tools/src/nvcore/poshlib/posh.h n/src/nvcore/poshlib/posh.h
--- nvidia-texture-tools/src/nvcore/poshlib/posh.h 2016-08-11 16:03:03.828716573 +0200
+++ n/src/nvcore/poshlib/posh.h 2016-08-11 16:09:51.757575793 +0200
@@ -487,11 +487,16 @@ Metrowerks:
#endif
#if defined mips || defined __mips__ || defined __MIPS__ || defined _MIPS
-# define POSH_CPU_MIPS 1
-# if defined _R5900
-# define POSH_CPU_STRING "MIPS R5900 (PS2)"
+# if defined __mips64
+# define POSH_CPU_MIPS64 1
+# define POSH_CPU_STRING "MIPS64"
# else
-# define POSH_CPU_STRING "MIPS"
+# define POSH_CPU_MIPS 1
+# if defined _R5900
+# define POSH_CPU_STRING "MIPS R5900 (PS2)"
+# else
+# define POSH_CPU_STRING "MIPS"
+# endif
# endif
#endif