From: balrog Date: Sat, 24 May 2008 22:56:51 +0000 (+0000) Subject: Fix a deadly typo, correct comments. X-Git-Tag: TizenStudio_2.0_p2.3~11659 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c90723913e6cf84b304550b61edb0cd939a2ba7;p=sdk%2Femulator%2Fqemu.git Fix a deadly typo, correct comments. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4566 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index e26dc72..0c430f7 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -78,7 +78,7 @@ static void patch_reloc(uint8_t *code_ptr, int type, tcg_abort(); case R_ARM_PC24: - *(uint32_t *) code_ptr |= (*(uint32_t *) code_ptr & 0xff000000) | + *(uint32_t *) code_ptr = ((*(uint32_t *) code_ptr) & 0xff000000) | (((value - ((tcg_target_long) code_ptr + 8)) >> 2) & 0xffffff); break; } @@ -109,7 +109,7 @@ int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str) break; #ifdef CONFIG_SOFTMMU - /* qemu_ld/st inputs (unless 'd', 'D' or 'X') */ + /* qemu_ld/st inputs (unless 'X' or 'D') */ case 'x': ct->ct |= TCG_CT_REG; 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, tcg_out_ld32_12(s, COND_AL, data_reg, addr_reg, 0); break; case 3: - /* TODO: use block load */ + /* TODO: use block load - + * check that data_reg2 > data_reg or the other way */ tcg_out_ld32_12(s, COND_AL, data_reg, addr_reg, 0); tcg_out_ld32_12(s, COND_AL, data_reg2, addr_reg, 4); break; @@ -1200,7 +1201,8 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond, tcg_out_st32_12(s, COND_AL, data_reg, addr_reg, 0); break; case 3: - /* TODO: use block store */ + /* TODO: use block store - + * check that data_reg2 > data_reg or the other way */ tcg_out_st32_12(s, COND_AL, data_reg, addr_reg, 0); tcg_out_st32_12(s, COND_AL, data_reg2, addr_reg, 4); break;