Skip to contentSkip to conversation

target-i386/translate: mininally change gen_intermediate_code_internal

PATCH New liguang 1 participant 16 messages Apr 11, 2013

lore
Share & tools
lore

liguang

author
#0 lore raw

PATCH 1/16 target-i386/translate: mininally change gen_intermediate_code_internal

---
 target-i386/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-i386/translate.c +3 -3
index 7596a90..74385c8 100644
@@ -8338,9 +8338,9 @@ static inline void gen_intermediate_code_internal(CPUX86State *env,
         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] = pc_ptr;
             gen_opc_cc_op[lj] = dc->cc_op;
Signature · 1 line
1.7.2.5
author
#1 lore raw

PATCH 2/16 target-lm32/translate: mininally change gen_intermediate_code_internal

---
 target-lm32/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-lm32/translate.c +2 -3
index af9ce8c..171bff8 100644
@@ -1052,9 +1052,8 @@ static void gen_intermediate_code_internal(CPULM32State *env,
         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;
Signature · 1 line
1.7.2.5
author
#2 lore raw

PATCH 3/16 target-arm/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-arm/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-arm/translate.c +3 -3
index 35a21be..cede1b8 100644
@@ -9889,9 +9889,9 @@ static inline void gen_intermediate_code_internal(CPUARMState *env,
         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;
             gen_opc_condexec_bits[lj] = (dc->condexec_cond << 4) | (dc->condexec_mask >> 1);
Signature · 1 line
1.7.2.5
author
#3 lore raw

PATCH 4/16 target-mips/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-mips/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-mips/translate.c +3 -3
index b7f8203..099d89f 100644
@@ -15595,9 +15595,9 @@ gen_intermediate_code_internal (CPUMIPSState *env, TranslationBlock *tb,
         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] = ctx.pc;
             gen_opc_hflags[lj] = ctx.hflags & MIPS_HFLAG_BMASK;
Signature · 1 line
1.7.2.5
author
#4 lore raw

PATCH 5/16 target-alpha/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-alpha/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-alpha/translate.c +3 -3
index 4db16db..4b4320a 100644
@@ -3425,9 +3425,9 @@ static inline void gen_intermediate_code_internal(CPUAlphaState *env,
         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] = ctx.pc;
             tcg_ctx.gen_opc_instr_start[lj] = 1;
Signature · 1 line
1.7.2.5
author
#5 lore raw

PATCH 6/16 target-cris/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-cris/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-cris/translate.c +2 -3
index dbcb811..a1016be 100644
@@ -3258,9 +3258,8 @@ gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb,
         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;
                 }
             }
             if (dc->delayed_branch == 1) {
Signature · 1 line
1.7.2.5
author
#6 lore raw

PATCH 7/16 target-m68k/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-m68k/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-m68k/translate.c +3 -3
index 32b8132..9469a55 100644
@@ -3023,9 +3023,9 @@ gen_intermediate_code_internal(CPUM68KState *env, TranslationBlock *tb,
         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;
             tcg_ctx.gen_opc_instr_start[lj] = 1;
Signature · 1 line
1.7.2.5
author
#7 lore raw

PATCH 8/16 target-microblaze/translate: mininally change gen_intermediate_code_interna

In reply to liguang
---
 target-microblaze/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-microblaze/translate.c +3 -3
index 06d2346..402667d 100644
@@ -1801,9 +1801,9 @@ gen_intermediate_code_internal(CPUMBState *env, TranslationBlock *tb,
         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;
             tcg_ctx.gen_opc_instr_start[lj] = 1;
Signature · 1 line
1.7.2.5
author
#8 lore raw

PATCH 9/16 target-moxie/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-moxie/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-moxie/translate.c +2 -3
index cc02bd3..0258eb5 100644
@@ -856,9 +856,8 @@ gen_intermediate_code_internal(MoxieCPU *cpu, TranslationBlock *tb,
         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] = ctx.pc;
Signature · 1 line
1.7.2.5
author
#9 lore raw

PATCH 10/16 target-openrisc/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-openrisc/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-openrisc/translate.c +2 -3
index 0eafd02..dab0aa2 100644
@@ -1703,9 +1703,8 @@ static inline void gen_intermediate_code_internal(OpenRISCCPU *cpu,
         if (search_pc) {
             j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
             if (k < j) {
-                k++;
-                while (k < j) {
-                    tcg_ctx.gen_opc_instr_start[k++] = 0;
+                while (++k < j) {
+                    tcg_ctx.gen_opc_instr_start[k] = 0;
                 }
             }
             tcg_ctx.gen_opc_pc[k] = dc->pc;
Signature · 1 line
1.7.2.5
author
#10 lore raw

PATCH 11/16 target-ppc/translate: mininally change gen_intermediate_code_internal Signed-off-by: liguang <[email protected]>

In reply to liguang
---
 target-ppc/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-ppc/translate.c +3 -3
index 5e741d1..cbdcb84 100644
@@ -9565,9 +9565,9 @@ static inline void gen_intermediate_code_internal(CPUPPCState *env,
         if (unlikely(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] = ctx.nip;
             tcg_ctx.gen_opc_instr_start[lj] = 1;
Signature · 1 line
1.7.2.5
author
#11 lore raw

PATCH 12/16 target-s390/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-s390x/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-s390x/translate.c +2 -3
index 0c3cf68..93ad178 100644
@@ -4776,9 +4776,8 @@ static inline void gen_intermediate_code_internal(CPUS390XState *env,
         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;
Signature · 1 line
1.7.2.5
author
#12 lore raw

PATCH 13/16 target-sh4/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-sh4/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-sh4/translate.c +3 -3
index 14fdb8f..22d9112 100644
@@ -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;
Signature · 1 line
1.7.2.5
author
#13 lore raw

PATCH 14/16 target-sparc/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-sparc/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
target-sparc/translate.c +3 -3
index eb6e800..f04b95f 100644
@@ -5267,9 +5267,9 @@ static inline void gen_intermediate_code_internal(TranslationBlock * tb,
             qemu_log("Search PC...\n");
             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;
                 gen_opc_npc[lj] = dc->npc;
                 tcg_ctx.gen_opc_instr_start[lj] = 1;
Signature · 1 line
1.7.2.5
author
#14 lore raw

PATCH 15/16 target-unicore32/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-unicore32/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-unicore32/translate.c +2 -3
index 151e35e..f887de6 100644
@@ -1940,9 +1940,8 @@ static inline void gen_intermediate_code_internal(CPUUniCore32State *env,
         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;
Signature · 1 line
1.7.2.5
author
#15 lore raw

PATCH 16/16 target-xtensa/translate: mininally change gen_intermediate_code_internal

In reply to liguang
---
 target-xtensa/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-xtensa/translate.c +2 -3
index 06d68db..0b4c0bf 100644
@@ -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;
Signature · 1 line
1.7.2.5