diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-20 11:28:35 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-20 11:28:35 +0000 |
commit | 204c1674ef7c1d7ce19adba8a68a8899bbcef42f (patch) | |
tree | a4e826eb61b7d0d9526b67d1d592d88773c6369d /tcg/arm | |
parent | Implement neg_i32, clean-up. (diff) | |
download | qemu-kvm-204c1674ef7c1d7ce19adba8a68a8899bbcef42f.tar.gz qemu-kvm-204c1674ef7c1d7ce19adba8a68a8899bbcef42f.tar.bz2 qemu-kvm-204c1674ef7c1d7ce19adba8a68a8899bbcef42f.zip |
Fix 8-bit signed load/store and a typo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4504 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/arm')
-rw-r--r-- | tcg/arm/tcg-target.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index a126cf5d7..2333af811 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -562,14 +562,14 @@ static inline void tcg_out_st8s_8(TCGContext *s, int cond, static inline void tcg_out_ld8s_r(TCGContext *s, int cond, int rd, int rn, int rm) { - tcg_out32(s, (cond << 28) | 0x019000f0 | + tcg_out32(s, (cond << 28) | 0x019000d0 | (rn << 16) | (rd << 12) | rm); } static inline void tcg_out_st8s_r(TCGContext *s, int cond, int rd, int rn, int rm) { - tcg_out32(s, (cond << 28) | 0x018000f0 | + tcg_out32(s, (cond << 28) | 0x018000d0 | (rn << 16) | (rd << 12) | rm); } @@ -1136,7 +1136,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond, } # endif - tcg_out_bl(s, cond, (tcg_target_long) qemu_st_helpers[s_bits] - + tcg_out_bl(s, cond, (tcg_target_long) qemu_st_helpers[s_bits] - (tcg_target_long) s->code_ptr); # if TARGET_LONG_BITS == 64 @@ -1157,7 +1157,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond, tcg_out_st8_12(s, COND_AL, data_reg, addr_reg, 0); break; case 0 | 4: - tcg_out_ld8s_8(s, COND_AL, data_reg, addr_reg, 0); + tcg_out_st8s_8(s, COND_AL, data_reg, addr_reg, 0); break; case 1: tcg_out_st16u_8(s, COND_AL, data_reg, addr_reg, 0); |