diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-07 13:48:25 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-07 13:48:25 +0000 |
commit | e32ad5c268041525bf2e11b339609ec6f6d5ad2b (patch) | |
tree | bf7c651245decfe19e5825a1c1e19d9c00e11edf /target-ppc | |
parent | e1638bd8588d780079e231b109ac94f0c281efda (diff) |
target-ppc: fix flags computation for tcg_gen_qemu_st
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5644 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/translate.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 03e553a348..e48da0f2a7 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -2759,7 +2759,7 @@ static always_inline void gen_qemu_ld64(TCGv arg0, TCGv arg1, int flags) static always_inline void gen_qemu_st8(TCGv arg0, TCGv arg1, int flags) { - gen_qemu_st8_ppc32(arg0, arg1, flags >> 1); + gen_qemu_st8_ppc32(arg0, arg1, flags); } static always_inline void gen_qemu_st16(TCGv arg0, TCGv arg1, int flags) @@ -2768,10 +2768,10 @@ static always_inline void gen_qemu_st16(TCGv arg0, TCGv arg1, int flags) TCGv temp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_ext16u_i32(temp, arg0); tcg_gen_bswap16_i32(temp, temp); - gen_qemu_st16_ppc32(temp, arg1, flags >> 1); + gen_qemu_st16_ppc32(temp, arg1, flags); tcg_temp_free(temp); } else - gen_qemu_st16_ppc32(arg0, arg1, flags >> 1); + gen_qemu_st16_ppc32(arg0, arg1, flags); } static always_inline void gen_qemu_st32(TCGv arg0, TCGv arg1, int flags) @@ -2779,10 +2779,10 @@ static always_inline void gen_qemu_st32(TCGv arg0, TCGv arg1, int flags) if (unlikely(flags & 1)) { TCGv temp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_bswap_i32(temp, arg0); - gen_qemu_st32_ppc32(temp, arg1, flags >> 1); + gen_qemu_st32_ppc32(temp, arg1, flags); tcg_temp_free(temp); } else - gen_qemu_st32_ppc32(arg0, arg1, flags >> 1); + gen_qemu_st32_ppc32(arg0, arg1, flags); } static always_inline void gen_qemu_st64(TCGv arg0, TCGv arg1, int flags) @@ -2790,10 +2790,10 @@ static always_inline void gen_qemu_st64(TCGv arg0, TCGv arg1, int flags) if (unlikely(flags & 1)) { TCGv temp = tcg_temp_new(TCG_TYPE_I64); tcg_gen_bswap_i64(temp, arg0); - gen_qemu_st64_ppc32(temp, arg1, flags >> 1); + gen_qemu_st64_ppc32(temp, arg1, flags); tcg_temp_free(temp); } else - gen_qemu_st64_ppc32(arg0, arg1, flags >> 1); + gen_qemu_st64_ppc32(arg0, arg1, flags); } #endif |