From d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 28 May 2016 05:10:55 +0200 Subject: MIPS64, part 1: Add MIPS64 support to interpreter. Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com. Sponsored by Cisco Systems, Inc. --- doc/ext_jit.html | 2 +- doc/install.html | 13 +++++++++---- doc/luajit.html | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/ext_jit.html b/doc/ext_jit.html index 9489c6f5..86098019 100644 --- a/doc/ext_jit.html +++ b/doc/ext_jit.html @@ -153,7 +153,7 @@ Contains the target OS name:

jit.arch

Contains the target architecture name: -"x86", "x64", "arm", "ppc", or "mips". +"x86", "x64", "arm", "arm64", "ppc", "mips" or "mips64".

jit.opt.* — JIT compiler optimization control

diff --git a/doc/install.html b/doc/install.html index 9963010d..38c9a6bb 100644 --- a/doc/install.html +++ b/doc/install.html @@ -148,7 +148,7 @@ operating systems, CPUs and compilers: XEDK (Xbox 360) -MIPS +MIPS32
MIPS64
GCC 4.3+ GCC 4.3+   @@ -386,7 +386,7 @@ important to compile with the proper CPU or architecture settings:
  • The best way to get consistent results is to specify the correct settings when building the toolchain yourself.
  • For a pre-built, generic toolchain add -mcpu=... or -march=... and other necessary flags to TARGET_CFLAGS.
  • For ARM it's important to have the correct -mfloat-abi=... setting, too. Otherwise LuaJIT may not run at the full performance of your target CPU.
  • -
  • For MIPS it's important to select a supported ABI (o32 on MIPS32) and consistently compile your project either with hard-float or soft-float compiler settings. Do not use -mips16.
  • +
  • For MIPS it's important to select a supported ABI (o32 on MIPS32, n64 on MIPS64) and consistently compile your project either with hard-float or soft-float compiler settings. Do not use -mips16.
  • Here are some examples for targets with a different CPU than the host: @@ -409,10 +409,15 @@ make CROSS=aarch64-linux- # PPC make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- -# MIPS big-endian +# MIPS32 big-endian make HOST_CC="gcc -m32" CROSS=mips-linux- -# MIPS little-endian +# MIPS32 little-endian make HOST_CC="gcc -m32" CROSS=mipsel-linux- + +# MIPS64 big-endian +make CROSS=mips-linux- TARGET_CFLAGS="-mips64r2 -mabi=64" +# MIPS64 little-endian +make CROSS=mipsel-linux- TARGET_CFLAGS="-mips64r2 -mabi=64"

    You can cross-compile for Android using the Android NDK. diff --git a/doc/luajit.html b/doc/luajit.html index c7a92b86..44a7b8a1 100644 --- a/doc/luajit.html +++ b/doc/luajit.html @@ -169,10 +169,10 @@ LuaJIT is Copyright © 2005-2016 Mike Pall, released under the PS3PS4PS VitaXbox 360Xbox One - +
    GCCCLANG
    LLVM
    MSVC
    GCCClang
    LLVM
    MSVC
    - +
    x86x64ARMARM64PPCMIPS
    x86
    x64
    ARM
    ARM64
    PPCMIPS32
    MIPS64
    -- cgit v1.2.3-55-g6feb
    Lua 5.1
    API+ABI
    + JIT+ BitOp+ FFIDrop-in
    DLL/.so