Commit 3bd8c5e4f1fdb61a3eb8a4a8b6e5b4cf1156ba76

Authored by bellard
1 parent 5d97559d

compilation fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4449 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
target-i386/translate.c
... ... @@ -6860,6 +6860,8 @@ void optimize_flags_init(void)
6860 6860 cpu_T[0] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG1, "T0");
6861 6861 cpu_T[1] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG2, "T1");
6862 6862 cpu_A0 = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG3, "A0");
  6863 +#endif
  6864 +#if defined(__i386__)
6863 6865 cpu_tmp1 = tcg_global_reg2_new_hack(TCG_TYPE_I64, TCG_AREG1, TCG_AREG2, "tmp1");
6864 6866 #endif
6865 6867 }
... ... @@ -6955,7 +6957,7 @@ static inline int gen_intermediate_code_internal(CPUState *env,
6955 6957 #endif
6956 6958  
6957 6959 cpu_tmp0 = tcg_temp_new(TCG_TYPE_TL);
6958   -#if TARGET_LONG_BITS > HOST_LONG_BITS
  6960 +#if !defined(__i386__)
6959 6961 cpu_tmp1 = tcg_temp_new(TCG_TYPE_I64);
6960 6962 #endif
6961 6963 cpu_tmp2 = tcg_temp_new(TCG_TYPE_I32);
... ...