aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2012-06-12 03:50:22 +0200
committerMike Pall <mike>2012-06-12 03:50:22 +0200
commit0528bb7d028b0b9c8a1e988e40d31385cab4f2e8 (patch)
tree31b5bc6d6a9d2f3a9be3af12c779fc144cc257c1 /src
parente08914988c30b12b6900a5bcedda129c7d8e4c71 (diff)
downloadluajit-0528bb7d028b0b9c8a1e988e40d31385cab4f2e8.tar.gz
luajit-0528bb7d028b0b9c8a1e988e40d31385cab4f2e8.tar.bz2
luajit-0528bb7d028b0b9c8a1e988e40d31385cab4f2e8.zip
x64: Fix DynASM defines.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/vm_x86.dasc5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 991a02f0..58dcdc01 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -362,6 +362,9 @@ DASM_XFLAGS=
362DASM_AFLAGS= 362DASM_AFLAGS=
363DASM_ARCH= $(TARGET_LJARCH) 363DASM_ARCH= $(TARGET_LJARCH)
364 364
365ifneq (,$(findstring LJ_ARCH_BITS 64,$(TARGET_TESTARCH)))
366 DASM_AFLAGS+= -D P64
367endif
365ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH))) 368ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH)))
366 DASM_AFLAGS+= -D JIT 369 DASM_AFLAGS+= -D JIT
367endif 370endif
@@ -387,7 +390,6 @@ ifeq (x86,$(TARGET_LJARCH))
387 endif 390 endif
388else 391else
389ifeq (x64,$(TARGET_LJARCH)) 392ifeq (x64,$(TARGET_LJARCH))
390 DASM_AFLAGS+= -D X64
391 DASM_ARCH= x86 393 DASM_ARCH= x86
392else 394else
393ifeq (arm,$(TARGET_LJARCH)) 395ifeq (arm,$(TARGET_LJARCH))
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc
index 3520510a..44199606 100644
--- a/src/vm_x86.dasc
+++ b/src/vm_x86.dasc
@@ -2,7 +2,7 @@
2|// Bytecode interpreter, fast functions and helper functions. 2|// Bytecode interpreter, fast functions and helper functions.
3|// Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h 3|// Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
4| 4|
5|.if X64 5|.if P64
6|.arch x64 6|.arch x64
7|.else 7|.else
8|.arch x86 8|.arch x86
@@ -16,7 +16,8 @@
16| 16|
17|//----------------------------------------------------------------------- 17|//-----------------------------------------------------------------------
18| 18|
19|.if X64 19|.if P64
20|.define X64, 1
20|.define SSE, 1 21|.define SSE, 1
21|.if WIN 22|.if WIN
22|.define X64WIN, 1 23|.define X64WIN, 1