summaryrefslogtreecommitdiff
path: root/src/lj_target_x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_target_x86.h')
-rw-r--r--src/lj_target_x86.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_target_x86.h b/src/lj_target_x86.h
index 2fb3c4b8..198245cd 100644
--- a/src/lj_target_x86.h
+++ b/src/lj_target_x86.h
@@ -40,8 +40,13 @@ enum {
40 40
41 /* These definitions must match with the *.dasc file(s): */ 41 /* These definitions must match with the *.dasc file(s): */
42 RID_BASE = RID_EDX, /* Interpreter BASE. */ 42 RID_BASE = RID_EDX, /* Interpreter BASE. */
43#if LJ_64 && !defined(_WIN64)
44 RID_PC = RID_EBX, /* Interpreter PC. */
45 RID_DISPATCH = RID_R14D, /* Interpreter DISPATCH table. */
46#else
43 RID_PC = RID_ESI, /* Interpreter PC. */ 47 RID_PC = RID_ESI, /* Interpreter PC. */
44 RID_DISPATCH = RID_EBX, /* Interpreter DISPATCH table. */ 48 RID_DISPATCH = RID_EBX, /* Interpreter DISPATCH table. */
49#endif
45 50
46 /* Register ranges [min, max) and number of registers. */ 51 /* Register ranges [min, max) and number of registers. */
47 RID_MIN_GPR = RID_EAX, 52 RID_MIN_GPR = RID_EAX,