CONSOLE: Handle P64, GPR64, TOC* and PPE (PS3) in PPC interpreter.

PS3 build command: make HOST_CC="gcc -m32" CROSS=ppu-lv2-
This commit is contained in:
Mike Pall
2012-06-13 02:32:24 +02:00
parent 4f9db0fbc3
commit ca6bf2d9a4
5 changed files with 456 additions and 184 deletions

View File

@@ -174,7 +174,11 @@
#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC
#define LJ_ARCH_NAME "ppc"
#if _LP64
#define LJ_ARCH_BITS 64
#else
#define LJ_ARCH_BITS 32
#endif
#define LJ_ARCH_ENDIAN LUAJIT_BE
#define LJ_ARCH_HASFPU 1
#define LJ_TARGET_PPC 1
@@ -200,6 +204,7 @@
#endif
#if __PPC64__ || __powerpc64__ || LJ_TARGET_XBOX360
#define LJ_ARCH_PPC64 1
#define LJ_ARCH_NOFFI 1
#endif
#if _ARCH_PPCSQ
#define LJ_ARCH_SQRT 1