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
This commit is contained in:
Mike Pall
2010-08-27 18:32:24 +02:00
parent b3bd9b55e0
commit 9cb5046c3f
4 changed files with 69 additions and 3 deletions

View File

@@ -87,6 +87,15 @@ enum {
#define CFRAME_SIZE (10*8)
#define CFRAME_SIZE_JIT (CFRAME_SIZE + 16)
#endif
#elif LJ_TARGET_PPCSPE
#define CFRAME_OFS_ERRF 28
#define CFRAME_OFS_NRES 24
#define CFRAME_OFS_PREV 20
#define CFRAME_OFS_L 16
#define CFRAME_OFS_PC 12
#define CFRAME_OFS_MULTRES 8
#define CFRAME_SIZE 176
#define CFRAME_SIZE_JIT CFRAME_SIZE
#else
#error "Missing CFRAME_* definitions for this architecture"
#endif