Commit eae6ce523890cf2fa56b11f06f67b19797a0d0ee

Authored by balrog
1 parent e1f3808e

Fix a deadly typo, correct comments.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4566 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 6 additions and 4 deletions
tcg/arm/tcg-target.c
... ... @@ -78,7 +78,7 @@ static void patch_reloc(uint8_t *code_ptr, int type,
78 78 tcg_abort();
79 79  
80 80 case R_ARM_PC24:
81   - *(uint32_t *) code_ptr |= (*(uint32_t *) code_ptr & 0xff000000) |
  81 + *(uint32_t *) code_ptr = ((*(uint32_t *) code_ptr) & 0xff000000) |
82 82 (((value - ((tcg_target_long) code_ptr + 8)) >> 2) & 0xffffff);
83 83 break;
84 84 }
... ... @@ -109,7 +109,7 @@ int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str)
109 109 break;
110 110  
111 111 #ifdef CONFIG_SOFTMMU
112   - /* qemu_ld/st inputs (unless 'd', 'D' or 'X') */
  112 + /* qemu_ld/st inputs (unless 'X' or 'D') */
113 113 case 'x':
114 114 ct->ct |= TCG_CT_REG;
115 115 tcg_regset_set32(ct->u.regs, 0, (1 << TCG_TARGET_NB_REGS) - 1);
... ... @@ -995,7 +995,8 @@ static inline void tcg_out_qemu_ld(TCGContext *s, int cond,
995 995 tcg_out_ld32_12(s, COND_AL, data_reg, addr_reg, 0);
996 996 break;
997 997 case 3:
998   - /* TODO: use block load */
  998 + /* TODO: use block load -
  999 + * check that data_reg2 > data_reg or the other way */
999 1000 tcg_out_ld32_12(s, COND_AL, data_reg, addr_reg, 0);
1000 1001 tcg_out_ld32_12(s, COND_AL, data_reg2, addr_reg, 4);
1001 1002 break;
... ... @@ -1200,7 +1201,8 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond,
1200 1201 tcg_out_st32_12(s, COND_AL, data_reg, addr_reg, 0);
1201 1202 break;
1202 1203 case 3:
1203   - /* TODO: use block store */
  1204 + /* TODO: use block store -
  1205 + * check that data_reg2 > data_reg or the other way */
1204 1206 tcg_out_st32_12(s, COND_AL, data_reg, addr_reg, 0);
1205 1207 tcg_out_st32_12(s, COND_AL, data_reg2, addr_reg, 4);
1206 1208 break;
... ...