summaryrefslogtreecommitdiff
path: root/src/lj_frame.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-08-27 18:32:24 +0200
committerMike Pall <mike>2010-08-27 18:32:24 +0200
commit9cb5046c3fe8da1437ec8f3bb682930b3692ba0c (patch)
treeaa128bee595c9c815039f69cbba42e24b6241183 /src/lj_frame.h
parentb3bd9b55e0e1e7dd8037554a6d5d0f0f261cc60d (diff)
downloadluajit-9cb5046c3fe8da1437ec8f3bb682930b3692ba0c.tar.gz
luajit-9cb5046c3fe8da1437ec8f3bb682930b3692ba0c.tar.bz2
luajit-9cb5046c3fe8da1437ec8f3bb682930b3692ba0c.zip
PPC: Add stack frame layout for PPCSPE target.
PPCSPE target compiles now, but will trap for any NYI parts. Cross-compilation instructions: make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- TARGET=ppcspe
Diffstat (limited to 'src/lj_frame.h')
-rw-r--r--src/lj_frame.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lj_frame.h b/src/lj_frame.h
index 549784c6..da33420b 100644
--- a/src/lj_frame.h
+++ b/src/lj_frame.h
@@ -87,6 +87,15 @@ enum {
87#define CFRAME_SIZE (10*8) 87#define CFRAME_SIZE (10*8)
88#define CFRAME_SIZE_JIT (CFRAME_SIZE + 16) 88#define CFRAME_SIZE_JIT (CFRAME_SIZE + 16)
89#endif 89#endif
90#elif LJ_TARGET_PPCSPE
91#define CFRAME_OFS_ERRF 28
92#define CFRAME_OFS_NRES 24
93#define CFRAME_OFS_PREV 20
94#define CFRAME_OFS_L 16
95#define CFRAME_OFS_PC 12
96#define CFRAME_OFS_MULTRES 8
97#define CFRAME_SIZE 176
98#define CFRAME_SIZE_JIT CFRAME_SIZE
90#else 99#else
91#error "Missing CFRAME_* definitions for this architecture" 100#error "Missing CFRAME_* definitions for this architecture"
92#endif 101#endif