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

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

Comments

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

Patch

diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c
index 06d68db..0b4c0bf 100644
--- a/target-xtensa/translate.c
+++ b/target-xtensa/translate.c
@@ -2927,9 +2927,8 @@  static void gen_intermediate_code_internal(
         if (search_pc) {
             j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
             if (lj < j) {
-                lj++;
-                while (lj < j) {
-                    tcg_ctx.gen_opc_instr_start[lj++] = 0;
+                while (++lj < j) {
+                    tcg_ctx.gen_opc_instr_start[lj] = 0;
                 }
             }
             tcg_ctx.gen_opc_pc[lj] = dc.pc;