Patchwork [13/16] target-sh4/translate: mininally change gen_intermediate_code_internal

login
register
mail settings
Submitter liguang
Date April 11, 2013, 3:41 a.m.
Message ID <1365651722-11241-13-git-send-email-lig.fnst@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/235554/
State New
Headers show

Comments

liguang - April 11, 2013, 3:41 a.m.
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 target-sh4/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Patch

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;