From 66896cb803b4865c0c35b218dbc407e1fcf7f7f7 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Fri, 13 Mar 2009 09:34:48 +0000 Subject: tcg: rename bswap_i32/i64 functions Rename bswap_i32 into bswap32_i32 and bswap_i64 into bswap64_i64 Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6829 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/translate.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'target-ppc') diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 0368c37..d30bd35 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -2621,11 +2621,11 @@ static always_inline void gen_qemu_ld32u(DisasContext *ctx, TCGv arg1, TCGv arg2 #if defined(TARGET_PPC64) TCGv_i32 t0 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, arg1); - tcg_gen_bswap_i32(t0, t0); + tcg_gen_bswap32_i32(t0, t0); tcg_gen_extu_i32_tl(arg1, t0); tcg_temp_free_i32(t0); #else - tcg_gen_bswap_i32(arg1, arg1); + tcg_gen_bswap32_i32(arg1, arg1); #endif } } @@ -2638,7 +2638,7 @@ static always_inline void gen_qemu_ld32s(DisasContext *ctx, TCGv arg1, TCGv arg2 tcg_gen_qemu_ld32u(arg1, arg2, ctx->mem_idx); t0 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, arg1); - tcg_gen_bswap_i32(t0, t0); + tcg_gen_bswap32_i32(t0, t0); tcg_gen_ext_i32_tl(arg1, t0); tcg_temp_free_i32(t0); } else @@ -2650,7 +2650,7 @@ static always_inline void gen_qemu_ld64(DisasContext *ctx, TCGv_i64 arg1, TCGv a { tcg_gen_qemu_ld64(arg1, arg2, ctx->mem_idx); if (unlikely(ctx->le_mode)) { - tcg_gen_bswap_i64(arg1, arg1); + tcg_gen_bswap64_i64(arg1, arg1); } } @@ -2694,7 +2694,7 @@ static always_inline void gen_qemu_st32(DisasContext *ctx, TCGv arg1, TCGv arg2) TCGv t1; t0 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, arg1); - tcg_gen_bswap_i32(t0, t0); + tcg_gen_bswap32_i32(t0, t0); t1 = tcg_temp_new(); tcg_gen_extu_i32_tl(t1, t0); tcg_temp_free_i32(t0); @@ -2702,7 +2702,7 @@ static always_inline void gen_qemu_st32(DisasContext *ctx, TCGv arg1, TCGv arg2) tcg_temp_free(t1); #else TCGv t0 = tcg_temp_new_i32(); - tcg_gen_bswap_i32(t0, arg1); + tcg_gen_bswap32_i32(t0, arg1); tcg_gen_qemu_st32(t0, arg2, ctx->mem_idx); tcg_temp_free(t0); #endif @@ -2715,7 +2715,7 @@ static always_inline void gen_qemu_st64(DisasContext *ctx, TCGv_i64 arg1, TCGv a { if (unlikely(ctx->le_mode)) { TCGv_i64 t0 = tcg_temp_new_i64(); - tcg_gen_bswap_i64(t0, arg1); + tcg_gen_bswap64_i64(t0, arg1); tcg_gen_qemu_st64(t0, arg2, ctx->mem_idx); tcg_temp_free_i64(t0); } else @@ -3014,11 +3014,11 @@ static void always_inline gen_qemu_ld32ur(DisasContext *ctx, TCGv arg1, TCGv arg #if defined(TARGET_PPC64) TCGv_i32 t0 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, arg1); - tcg_gen_bswap_i32(t0, t0); + tcg_gen_bswap32_i32(t0, t0); tcg_gen_extu_i32_tl(arg1, t0); tcg_temp_free_i32(t0); #else - tcg_gen_bswap_i32(arg1, arg1); + tcg_gen_bswap32_i32(arg1, arg1); #endif } } @@ -3062,7 +3062,7 @@ static void always_inline gen_qemu_st32r(DisasContext *ctx, TCGv arg1, TCGv arg2 TCGv t1; t0 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, arg1); - tcg_gen_bswap_i32(t0, t0); + tcg_gen_bswap32_i32(t0, t0); t1 = tcg_temp_new(); tcg_gen_extu_i32_tl(t1, t0); tcg_temp_free_i32(t0); @@ -3070,7 +3070,7 @@ static void always_inline gen_qemu_st32r(DisasContext *ctx, TCGv arg1, TCGv arg2 tcg_temp_free(t1); #else TCGv t0 = tcg_temp_new_i32(); - tcg_gen_bswap_i32(t0, arg1); + tcg_gen_bswap32_i32(t0, arg1); tcg_gen_qemu_st32(t0, arg2, ctx->mem_idx); tcg_temp_free(t0); #endif -- cgit v1.1