diff options
author | Mike Pall <mike> | 2017-01-17 10:46:45 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2017-01-17 10:46:45 +0100 |
commit | a2013dd39abfc036fc02d277ae3f053209d2c4fd (patch) | |
tree | af30c496b7891400c08200e3adde1417fd88de9c | |
parent | fb61f7cbe3ec983dfc9087bde04496aa4bbaa31b (diff) | |
download | luajit-a2013dd39abfc036fc02d277ae3f053209d2c4fd.tar.gz luajit-a2013dd39abfc036fc02d277ae3f053209d2c4fd.tar.bz2 luajit-a2013dd39abfc036fc02d277ae3f053209d2c4fd.zip |
Fix cross-endian jit.bcsave for MIPS target.
-rw-r--r-- | src/jit/bcsave.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/bcsave.lua b/src/jit/bcsave.lua index 5c417c06..70b92aaf 100644 --- a/src/jit/bcsave.lua +++ b/src/jit/bcsave.lua | |||
@@ -239,7 +239,7 @@ typedef struct { | |||
239 | hdr.type = f16(1) | 239 | hdr.type = f16(1) |
240 | hdr.machine = f16(({ x86=3, x64=62, arm=40, ppc=20, ppcspe=20, mips=8, mipsel=8 })[ctx.arch]) | 240 | hdr.machine = f16(({ x86=3, x64=62, arm=40, ppc=20, ppcspe=20, mips=8, mipsel=8 })[ctx.arch]) |
241 | if ctx.arch == "mips" or ctx.arch == "mipsel" then | 241 | if ctx.arch == "mips" or ctx.arch == "mipsel" then |
242 | hdr.flags = 0x50001006 | 242 | hdr.flags = f32(0x50001006) |
243 | end | 243 | end |
244 | hdr.version = f32(1) | 244 | hdr.version = f32(1) |
245 | hdr.shofs = fofs(ffi.offsetof(o, "sect")) | 245 | hdr.shofs = fofs(ffi.offsetof(o, "sect")) |