PPC: Add build rules for PPC interpreter (non-functional, yet).

This commit is contained in:
Mike Pall
2011-07-03 15:15:11 +02:00
parent 161f1a5eb0
commit 0239a56d37
6 changed files with 87 additions and 75 deletions

View File

@@ -147,6 +147,20 @@
#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC
#define LJ_ARCH_NAME "ppc"
#define LJ_ARCH_BITS 32
#define LJ_ARCH_ENDIAN LUAJIT_BE
#define LJ_ARCH_HASFPU 1
#define LJ_TARGET_PPC 1
#define LJ_TARGET_EHRETREG 3
#define LJ_TARGET_JUMPRANGE 25 /* +-2^25 = +-32MB */
#define LJ_TARGET_MASKSHIFT 0
#define LJ_TARGET_MASKROT 1
#define LJ_TARGET_UNIFYROT 1 /* Want only IR_BROL. */
#define LJ_ARCH_DUALNUM 1
#define LJ_ARCH_NOFFI 1 /* NYI: comparisons, calls. */
#define LJ_ARCH_NOJIT 1
#error "No support for plain PowerPC CPUs (yet)"
#elif LUAJIT_TARGET == LUAJIT_ARCH_PPCSPE