aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index d87575ed..54725dcf 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -52,7 +52,8 @@
52#define LJ_TARGET_X86 1 52#define LJ_TARGET_X86 1
53#define LJ_TARGET_X86ORX64 1 53#define LJ_TARGET_X86ORX64 1
54#define LJ_PAGESIZE 4096 54#define LJ_PAGESIZE 4096
55#define LJ_TARGET_MASKEDSHIFT 1 55#define LJ_TARGET_MASKSHIFT 1
56#define LJ_TARGET_MASKROT 1
56 57
57#elif LUAJIT_TARGET == LUAJIT_ARCH_X64 58#elif LUAJIT_TARGET == LUAJIT_ARCH_X64
58 59
@@ -62,7 +63,8 @@
62#define LJ_TARGET_X64 1 63#define LJ_TARGET_X64 1
63#define LJ_TARGET_X86ORX64 1 64#define LJ_TARGET_X86ORX64 1
64#define LJ_PAGESIZE 4096 65#define LJ_PAGESIZE 4096
65#define LJ_TARGET_MASKEDSHIFT 1 66#define LJ_TARGET_MASKSHIFT 1
67#define LJ_TARGET_MASKROT 1
66 68
67#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC 69#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC
68 70
@@ -76,7 +78,8 @@
76#define LJ_TARGET_PPC 1 78#define LJ_TARGET_PPC 1
77#define LJ_TARGET_PPCSPE 1 79#define LJ_TARGET_PPCSPE 1
78#define LJ_PAGESIZE 4096 80#define LJ_PAGESIZE 4096
79#define LJ_TARGET_MASKEDSHIFT 1 81#define LJ_TARGET_MASKSHIFT 0
82#define LJ_TARGET_MASKROT 1
80#define LJ_ARCH_NOJIT 1 83#define LJ_ARCH_NOJIT 1
81 84
82#else 85#else
@@ -92,6 +95,9 @@
92#if defined(_LITTLE_ENDIAN) 95#if defined(_LITTLE_ENDIAN)
93#error "No support for little-endian PowerPC" 96#error "No support for little-endian PowerPC"
94#endif 97#endif
98#if defined(_LP64)
99#error "No support for PowerPC 64 bit mode"
100#endif
95#endif 101#endif
96#endif 102#endif
97 103
@@ -113,16 +119,9 @@
113#if LJ_ARCH_BITS == 32 119#if LJ_ARCH_BITS == 32
114#define LJ_32 1 120#define LJ_32 1
115#define LJ_64 0 121#define LJ_64 0
116#elif LJ_ARCH_BITS == 64 122#else
117#define LJ_32 0 123#define LJ_32 0
118#define LJ_64 1 124#define LJ_64 1
119#else
120#error "Bad LJ_ARCH_BITS setting"
121#endif
122
123/* Whether target CPU masks the shift count by the operand length or not. */
124#ifndef LJ_TARGET_MASKEDSHIFT
125#define LJ_TARGET_MASKEDSHIFT 0
126#endif 125#endif
127 126
128#endif 127#endif