Search
lxdream.org :: lxdream/src/sh4/x86op.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/x86op.h
changeset 675:b97020f9af1c
prev669:ab344e42bca9
next736:a02d1475ccfd
author nkeynes
date Mon May 26 11:01:42 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change hange 64-bit configuration to use sizeof(void *) rather than the system id
returned by config.guess - config.guess gets it wrong in some situations.
file annotate diff log raw
1.1 --- a/src/sh4/x86op.h Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/sh4/x86op.h Mon May 26 11:01:42 2008 +0000
1.3 @@ -45,7 +45,7 @@
1.4 #define OP(x) *xlat_output++ = (x)
1.5 #define OP32(x) *((uint32_t *)xlat_output) = (x); xlat_output+=4
1.6 #define OP64(x) *((uint64_t *)xlat_output) = (x); xlat_output+=8
1.7 -#if SH4_TRANSLATOR == TARGET_X86_64
1.8 +#if SIZEOF_VOID_P == 8
1.9 #define OPPTR(x) OP64((uint64_t)(x))
1.10 #define AND_imm8s_rptr(imm, r1) REXW(); AND_imm8s_r32( imm, r1 )
1.11 #define MOV_moffptr_EAX(offptr) REXW(); MOV_moff32_EAX( offptr )
1.12 @@ -56,7 +56,7 @@
1.13 #define PUSH_realigned_r32(r1) REXW(); SUB_imm8s_r32(8, R_ESP); OP(0x50 + r1)
1.14 #define PUSH_imm32(imm) OP(0x68); OP32(imm);
1.15 #define PUSH_imm64(imm) REXW(); OP(0x68); OP64(imm);
1.16 -#else
1.17 +#else /* 32-bit system */
1.18 #define OPPTR(x) OP32((uint32_t)(x))
1.19 #define AND_imm8s_rptr(imm, r1) AND_imm8s_r32( imm, r1 )
1.20 #define MOV_moffptr_EAX(offptr) MOV_moff32_EAX( offptr )
.