Commit 204c1674ef7c1d7ce19adba8a68a8899bbcef42f
1 parent
650bbb36
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
Showing
1 changed file
with
4 additions
and
4 deletions
tcg/arm/tcg-target.c
... | ... | @@ -562,14 +562,14 @@ static inline void tcg_out_st8s_8(TCGContext *s, int cond, |
562 | 562 | static inline void tcg_out_ld8s_r(TCGContext *s, int cond, |
563 | 563 | int rd, int rn, int rm) |
564 | 564 | { |
565 | - tcg_out32(s, (cond << 28) | 0x019000f0 | | |
565 | + tcg_out32(s, (cond << 28) | 0x019000d0 | | |
566 | 566 | (rn << 16) | (rd << 12) | rm); |
567 | 567 | } |
568 | 568 | |
569 | 569 | static inline void tcg_out_st8s_r(TCGContext *s, int cond, |
570 | 570 | int rd, int rn, int rm) |
571 | 571 | { |
572 | - tcg_out32(s, (cond << 28) | 0x018000f0 | | |
572 | + tcg_out32(s, (cond << 28) | 0x018000d0 | | |
573 | 573 | (rn << 16) | (rd << 12) | rm); |
574 | 574 | } |
575 | 575 | |
... | ... | @@ -1136,7 +1136,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond, |
1136 | 1136 | } |
1137 | 1137 | # endif |
1138 | 1138 | |
1139 | - tcg_out_bl(s, cond, (tcg_target_long) qemu_st_helpers[s_bits] - | |
1139 | + tcg_out_bl(s, cond, (tcg_target_long) qemu_st_helpers[s_bits] - | |
1140 | 1140 | (tcg_target_long) s->code_ptr); |
1141 | 1141 | |
1142 | 1142 | # if TARGET_LONG_BITS == 64 |
... | ... | @@ -1157,7 +1157,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond, |
1157 | 1157 | tcg_out_st8_12(s, COND_AL, data_reg, addr_reg, 0); |
1158 | 1158 | break; |
1159 | 1159 | case 0 | 4: |
1160 | - tcg_out_ld8s_8(s, COND_AL, data_reg, addr_reg, 0); | |
1160 | + tcg_out_st8s_8(s, COND_AL, data_reg, addr_reg, 0); | |
1161 | 1161 | break; |
1162 | 1162 | case 1: |
1163 | 1163 | tcg_out_st16u_8(s, COND_AL, data_reg, addr_reg, 0); | ... | ... |