diff options
author | Richard Henderson <rth@twiddle.net> | 2010-05-03 16:30:48 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-05-28 20:54:34 +0200 |
commit | 3e1dbaddbf199762deaf00e3b3308f7508671e35 (patch) | |
tree | dfe2a1f4a5d531fe25cd629a401fd841de64886c | |
parent | 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb (diff) | |
download | qemu-3e1dbaddbf199762deaf00e3b3308f7508671e35.zip qemu-3e1dbaddbf199762deaf00e3b3308f7508671e35.tar.gz qemu-3e1dbaddbf199762deaf00e3b3308f7508671e35.tar.bz2 |
tcg: Use INDEX_op_qemu_ld32 for 32-bit results.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | tcg/tcg-op.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h index bafac2b..aa436de 100644 --- a/tcg/tcg-op.h +++ b/tcg/tcg-op.h @@ -2172,12 +2172,20 @@ static inline void tcg_gen_qemu_ld16s(TCGv ret, TCGv addr, int mem_index) static inline void tcg_gen_qemu_ld32u(TCGv ret, TCGv addr, int mem_index) { +#if TARGET_LONG_BITS == 32 + tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32, ret, addr, mem_index); +#else tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32u, ret, addr, mem_index); +#endif } static inline void tcg_gen_qemu_ld32s(TCGv ret, TCGv addr, int mem_index) { +#if TARGET_LONG_BITS == 32 + tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32, ret, addr, mem_index); +#else tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32s, ret, addr, mem_index); +#endif } static inline void tcg_gen_qemu_ld64(TCGv_i64 ret, TCGv addr, int mem_index) |