Signed-off-by: liguang <[email protected]>
---
target-sh4/translate.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 14fdb8f..22d9112 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -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;
--
1.7.2.5