@@ -1891,9 +1891,9 @@ gen_intermediate_code_internal(CPUSH4State * env, TranslationBlock * tb,
if (search_pc) {
i = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
if (ii < i) {
- ii++;
- while (ii < i)
- tcg_ctx.gen_opc_instr_start[ii++] = 0;
+ while (++ii < i) {
+ tcg_ctx.gen_opc_instr_start[ii] = 0;
+ }
}
tcg_ctx.gen_opc_pc[ii] = ctx.pc;
gen_opc_hflags[ii] = ctx.flags;
@@ -1949,9 +1949,9 @@ gen_intermediate_code_internal(CPUSH4State * env, TranslationBlock * tb,
*tcg_ctx.gen_opc_ptr = INDEX_op_end;
if (search_pc) {
i = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
- ii++;
- while (ii <= i)
- tcg_ctx.gen_opc_instr_start[ii++] = 0;
+ while (++ii <= i) {
+ tcg_ctx.gen_opc_instr_start[ii] = 0;
+ }
} else {
tb->size = ctx.pc - pc_start;
tb->icount = num_insns;
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> --- target-sh4/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)