diff options
author | Juan Quintela <quintela@redhat.com> | 2009-07-27 16:13:06 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-27 14:09:21 -0500 |
commit | e2542fe2bce6756948dffe2d233d154a9e25bd35 (patch) | |
tree | 187b840091116d420116fb2627e48afa25d59563 /target-i386 | |
parent | f0667e660720cf2aee4c58716a7a9337bc359a31 (diff) |
rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/cpu.h | 2 | ||||
-rw-r--r-- | target-i386/exec.h | 2 | ||||
-rw-r--r-- | target-i386/translate.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 08200edafd..6a96e93298 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -528,7 +528,7 @@ typedef union { uint64_t q; } MMXReg; -#ifdef WORDS_BIGENDIAN +#ifdef HOST_WORDS_BIGENDIAN #define XMM_B(n) _b[15 - (n)] #define XMM_W(n) _w[7 - (n)] #define XMM_L(n) _l[3 - (n)] diff --git a/target-i386/exec.h b/target-i386/exec.h index 3e998d24fc..c59c4e872b 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -155,7 +155,7 @@ typedef union { /* NOTE: arm is horrible as double 32 bit words are stored in big endian ! */ typedef union { double d; -#if !defined(WORDS_BIGENDIAN) && !defined(__arm__) +#if !defined(HOST_WORDS_BIGENDIAN) && !defined(__arm__) struct { uint32_t lower; int32_t upper; diff --git a/target-i386/translate.c b/target-i386/translate.c index 380009e390..ff93985754 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -255,7 +255,7 @@ static inline void gen_op_andl_A0_ffff(void) #endif /* !TARGET_X86_64 */ -#if defined(WORDS_BIGENDIAN) +#if defined(HOST_WORDS_BIGENDIAN) #define REG_B_OFFSET (sizeof(target_ulong) - 1) #define REG_H_OFFSET (sizeof(target_ulong) - 2) #define REG_W_OFFSET (sizeof(target_ulong) - 2) @@ -7151,7 +7151,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) break; case 4: /* smsw */ gen_svm_check_intercept(s, pc_start, SVM_EXIT_READ_CR0); -#if defined TARGET_X86_64 && defined WORDS_BIGENDIAN +#if defined TARGET_X86_64 && defined HOST_WORDS_BIGENDIAN tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,cr[0]) + 4); #else tcg_gen_ld32u_tl(cpu_T[0], cpu_env, offsetof(CPUX86State,cr[0])); |