target-arm: Fix compilation failure for 64 bit hosts
PATCH 1/1 target-arm: Fix compilation failure for 64 bit hosts
Use the correct _ptr aliases for manipulating the pointer to the fp_status; this fixes a compilation failure on 64 bit hosts.
---
Apologies for the build breakage.
target-arm/translate.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
target-arm/translate.c +9 -9
@@ -980,20 +980,20 @@ static inline void gen_vfp_F1_ld0(int dp)#define VFP_GEN_ITOF (name) \ static inline void gen_vfp_##name(int dp, int neon) \ { \ - TCGv statusptr = tcg_temp_new_i32(); \ + TCGv_ptr statusptr = tcg_temp_new_ptr(); \ int offset; \ if (neon) { \ offset = offsetof(CPUState, vfp.standard_fp_status); \ } else { \ offset = offsetof(CPUState, vfp.fp_status); \ } \ - tcg_gen_addi_i32(statusptr, cpu_env, offset); \ + tcg_gen_addi_ptr(statusptr, cpu_env, offset); \ if (dp) { \ gen_helper_vfp_##name##d(cpu_F0d, cpu_F0s, statusptr); \ } else { \ gen_helper_vfp_##name##s(cpu_F0s, cpu_F0s, statusptr); \ } \ - tcg_temp_free_i32(statusptr); \ + tcg_temp_free_ptr(statusptr); \ }VFP_GEN_ITOF (uito)
@@ -1003,20 +1003,20 @@ VFP_GEN_ITOF(sito)#define VFP_GEN_FTOI (name) \ static inline void gen_vfp_##name(int dp, int neon) \ { \ - TCGv statusptr = tcg_temp_new_i32(); \ + TCGv_ptr statusptr = tcg_temp_new_ptr(); \ int offset; \ if (neon) { \ offset = offsetof(CPUState, vfp.standard_fp_status); \ } else { \ offset = offsetof(CPUState, vfp.fp_status); \ } \ - tcg_gen_addi_i32(statusptr, cpu_env, offset); \ + tcg_gen_addi_ptr(statusptr, cpu_env, offset); \ if (dp) { \ gen_helper_vfp_##name##d(cpu_F0s, cpu_F0d, statusptr); \ } else { \ gen_helper_vfp_##name##s(cpu_F0s, cpu_F0s, statusptr); \ } \ - tcg_temp_free_i32(statusptr); \ + tcg_temp_free_ptr(statusptr); \ }VFP_GEN_FTOI (toui)
@@ -1029,21 +1029,21 @@ VFP_GEN_FTOI(tosiz) static inline void gen_vfp_##name(int dp, int shift, int neon) \ { \ TCGv tmp_shift = tcg_const_i32(shift); \ - TCGv statusptr = tcg_temp_new_i32(); \ + TCGv_ptr statusptr = tcg_temp_new_ptr(); \ int offset; \ if (neon) { \ offset = offsetof(CPUState, vfp.standard_fp_status); \ } else { \ offset = offsetof(CPUState, vfp.fp_status); \ } \ - tcg_gen_addi_i32(statusptr, cpu_env, offset); \ + tcg_gen_addi_ptr(statusptr, cpu_env, offset); \ if (dp) { \ gen_helper_vfp_##name##d(cpu_F0d, cpu_F0d, tmp_shift, statusptr); \ } else { \ gen_helper_vfp_##name##s(cpu_F0s, cpu_F0s, tmp_shift, statusptr); \ } \ tcg_temp_free_i32(tmp_shift); \ - tcg_temp_free_i32(statusptr); \ + tcg_temp_free_ptr(statusptr); \ }VFP_GEN_FIX (tosh)VFP_GEN_FIX (tosl)
Signature · 1 line
1.7.1
Am 26.05.2011 13:03, schrieb Peter Maydell:
Quoted 11 lines
Use the correct
_ptraliases for manipulating the pointer to thefp_status; this fixes a compilation failure on 64 bit hosts.Signed-off-by Peter Maydell<[email protected]>---
Apologies for the build breakage.target-arm/translate.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
Ping?
thanks
-- PMM
Quoted 15 lines · Stefan Weil
Am 26.05.2011 13:03, schrieb Peter Maydell:
Quoted 4 lines
Use the correct
_ptraliases for manipulating the pointer to thefp_status; this fixes a compilation failure on 64 bit hosts.Quoted 8 lines
Signed-off-by Peter Maydell<[email protected]>---
Apologies for the build breakage.target-arm/translate.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)Acked-by Stefan Weil <[email protected]>
Aurelien Jarno
AppliedQuoted 9 lines · Peter Maydell
Use the correct
_ptraliases for manipulating the pointer to thefp_status; this fixes a compilation failure on 64 bit hosts.Signed-off-by Peter Maydell <[email protected]>---
Apologies for the build breakage.target-arm/translate.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
Thanks, applied.
Quoted 82 lines
target-arm/translate.c +9
-9@@ -980,20 +980,20 @@ static inline void gen_vfp_F1_ld0(int dp)#define VFP_GEN_ITOF (name) \ static inline void gen_vfp_##name(int dp, int neon) \ { \ - TCGv statusptr = tcg_temp_new_i32(); \ + TCGv_ptr statusptr = tcg_temp_new_ptr(); \ int offset; \ if (neon) { \ offset = offsetof(CPUState, vfp.standard_fp_status); \ } else { \ offset = offsetof(CPUState, vfp.fp_status); \ } \ - tcg_gen_addi_i32(statusptr, cpu_env, offset); \ + tcg_gen_addi_ptr(statusptr, cpu_env, offset); \ if (dp) { \ gen_helper_vfp_##name##d(cpu_F0d, cpu_F0s, statusptr); \ } else { \ gen_helper_vfp_##name##s(cpu_F0s, cpu_F0s, statusptr); \ } \ - tcg_temp_free_i32(statusptr); \ + tcg_temp_free_ptr(statusptr); \ }VFP_GEN_ITOF (uito)@@ -1003,20 +1003,20 @@ VFP_GEN_ITOF(sito)#define VFP_GEN_FTOI (name) \ static inline void gen_vfp_##name(int dp, int neon) \ { \ - TCGv statusptr = tcg_temp_new_i32(); \ + TCGv_ptr statusptr = tcg_temp_new_ptr(); \ int offset; \ if (neon) { \ offset = offsetof(CPUState, vfp.standard_fp_status); \ } else { \ offset = offsetof(CPUState, vfp.fp_status); \ } \ - tcg_gen_addi_i32(statusptr, cpu_env, offset); \ + tcg_gen_addi_ptr(statusptr, cpu_env, offset); \ if (dp) { \ gen_helper_vfp_##name##d(cpu_F0s, cpu_F0d, statusptr); \ } else { \ gen_helper_vfp_##name##s(cpu_F0s, cpu_F0s, statusptr); \ } \ - tcg_temp_free_i32(statusptr); \ + tcg_temp_free_ptr(statusptr); \ }VFP_GEN_FTOI (toui)@@ -1029,21 +1029,21 @@ VFP_GEN_FTOI(tosiz) static inline void gen_vfp_##name(int dp, int shift, int neon) \ { \ TCGv tmp_shift = tcg_const_i32(shift); \ - TCGv statusptr = tcg_temp_new_i32(); \ + TCGv_ptr statusptr = tcg_temp_new_ptr(); \ int offset; \ if (neon) { \ offset = offsetof(CPUState, vfp.standard_fp_status); \ } else { \ offset = offsetof(CPUState, vfp.fp_status); \ } \ - tcg_gen_addi_i32(statusptr, cpu_env, offset); \ + tcg_gen_addi_ptr(statusptr, cpu_env, offset); \ if (dp) { \ gen_helper_vfp_##name##d(cpu_F0d, cpu_F0d, tmp_shift, statusptr); \ } else { \ gen_helper_vfp_##name##s(cpu_F0s, cpu_F0s, tmp_shift, statusptr); \ } \ tcg_temp_free_i32(tmp_shift); \ - tcg_temp_free_i32(statusptr); \ + tcg_temp_free_ptr(statusptr); \ }VFP_GEN_FIX (tosh)VFP_GEN_FIX (tosl)Signature · 1 line
1.7.1
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net