diff options
| author | Mike Pall <mike> | 2012-06-12 03:50:22 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2012-06-12 03:50:22 +0200 |
| commit | 0528bb7d028b0b9c8a1e988e40d31385cab4f2e8 (patch) | |
| tree | 31b5bc6d6a9d2f3a9be3af12c779fc144cc257c1 /src | |
| parent | e08914988c30b12b6900a5bcedda129c7d8e4c71 (diff) | |
| download | luajit-0528bb7d028b0b9c8a1e988e40d31385cab4f2e8.tar.gz luajit-0528bb7d028b0b9c8a1e988e40d31385cab4f2e8.tar.bz2 luajit-0528bb7d028b0b9c8a1e988e40d31385cab4f2e8.zip | |
x64: Fix DynASM defines.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 4 | ||||
| -rw-r--r-- | src/vm_x86.dasc | 5 |
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= | |||
| 362 | DASM_AFLAGS= | 362 | DASM_AFLAGS= |
| 363 | DASM_ARCH= $(TARGET_LJARCH) | 363 | DASM_ARCH= $(TARGET_LJARCH) |
| 364 | 364 | ||
| 365 | ifneq (,$(findstring LJ_ARCH_BITS 64,$(TARGET_TESTARCH))) | ||
| 366 | DASM_AFLAGS+= -D P64 | ||
| 367 | endif | ||
| 365 | ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH))) | 368 | ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH))) |
| 366 | DASM_AFLAGS+= -D JIT | 369 | DASM_AFLAGS+= -D JIT |
| 367 | endif | 370 | endif |
| @@ -387,7 +390,6 @@ ifeq (x86,$(TARGET_LJARCH)) | |||
| 387 | endif | 390 | endif |
| 388 | else | 391 | else |
| 389 | ifeq (x64,$(TARGET_LJARCH)) | 392 | ifeq (x64,$(TARGET_LJARCH)) |
| 390 | DASM_AFLAGS+= -D X64 | ||
| 391 | DASM_ARCH= x86 | 393 | DASM_ARCH= x86 |
| 392 | else | 394 | else |
| 393 | ifeq (arm,$(TARGET_LJARCH)) | 395 | ifeq (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 |
