target-i386/translate: minimally change gen_intermediate_code_internal
PATCH 1/16 target-i386/translate: minimally change gen_intermediate_code_internal
--- target-i386/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-i386/translate.c +6 -6
@@ -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;
@@ -8387,9 +8387,9 @@ static inline void gen_intermediate_code_internal(CPUX86State *env,/* we don't forget to fill the last values */ if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }#ifdef DEBUG_DISAS
Signature · 1 line
1.7.2.5
PATCH 2/16 target-lm32/translate: minimally change gen_intermediate_code_internal
--- target-lm32/translate.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
target-lm32/translate.c +4 -6
@@ -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;
@@ -1111,9 +1110,8 @@ static void gen_intermediate_code_internal(CPULM32State *env, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) { - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; } }else { tb->size = dc->pc - pc_start;
Signature · 1 line
1.7.2.5
PATCH 3/16 target-arm/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-arm/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-arm/translate.c +6 -6
@@ -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 );
@@ -10028,9 +10028,9 @@ done_generating:#endif if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }else { tb->size = dc->pc - pc_start; tb->icount = num_insns;
Signature · 1 line
1.7.2.5
PATCH 4/16 target-mips/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-mips/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-mips/translate.c +6 -6
@@ -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 ;
@@ -15678,9 +15678,9 @@ done_generating: *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }else { tb->size = ctx.pc - pc_start; tb->icount = num_insns;
Signature · 1 line
1.7.2.5
PATCH 5/16 target-alpha/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-alpha/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-alpha/translate.c +6 -6
@@ -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 ;
@@ -3483,9 +3483,9 @@ static inline void gen_intermediate_code_internal(CPUAlphaState *env, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }else { tb->size = ctx.pc - pc_start; tb->icount = num_insns;
Signature · 1 line
1.7.2.5
PATCH 6/16 target-cris/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-cris/translate.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
target-cris/translate.c +4 -6
@@ -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 ) {
@@ -3396,9 +3395,8 @@ gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) { - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; } }else { tb->size = dc->pc - pc_start;
Signature · 1 line
1.7.2.5
PATCH 7/16 target-m68k/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-m68k/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-m68k/translate.c +6 -6
@@ -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 ;
@@ -3082,9 +3082,9 @@ gen_intermediate_code_internal(CPUM68KState *env, TranslationBlock *tb,#endif if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }else { tb->size = dc->pc - pc_start; tb->icount = num_insns;
Signature · 1 line
1.7.2.5
PATCH 8/16 target-microblaze/translate: minimally change gen_intermediate_code_interna
In reply to liguang--- target-microblaze/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-microblaze/translate.c +6 -6
@@ -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 ;
@@ -1915,9 +1915,9 @@ gen_intermediate_code_internal(CPUMBState *env, TranslationBlock *tb, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }else { tb->size = dc->pc - pc_start; tb->icount = num_insns;
Signature · 1 line
1.7.2.5
PATCH 9/16 target-moxie/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-moxie/translate.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
target-moxie/translate.c +4 -6
@@ -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;
@@ -900,9 +899,8 @@ gen_intermediate_code_internal(MoxieCPU *cpu, TranslationBlock *tb, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) { - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; } }else { tb->size = ctx.pc - pc_start;
Signature · 1 line
1.7.2.5
PATCH 10/16 target-openrisc/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-openrisc/translate.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
target-openrisc/translate.c +4 -6
@@ -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;
@@ -1783,9 +1782,8 @@ static inline void gen_intermediate_code_internal(OpenRISCCPU *cpu, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - k++; -while (k <= j) { - tcg_ctx.gen_opc_instr_start[k++] =0 ; +while (++k <= j) { + tcg_ctx.gen_opc_instr_start[k] =0 ; } }else { tb->size = dc->pc - pc_start;
Signature · 1 line
1.7.2.5
PATCH 11/16 target-ppc/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-ppc/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-ppc/translate.c +6 -6
@@ -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 ;
@@ -9666,9 +9666,9 @@ static inline void gen_intermediate_code_internal(CPUPPCState *env, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (unlikely (search_pc)) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + } }else { tb->size = ctx.nip - pc_start; tb->icount = num_insns;
Signature · 1 line
1.7.2.5
PATCH 12/16 target-s390/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-s390x/translate.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
target-s390x/translate.c +4 -6
@@ -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;
@@ -4850,9 +4849,8 @@ static inline void gen_intermediate_code_internal(CPUS390XState *env, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) { - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; } }else { tb->size = dc.pc - pc_start;
Signature · 1 line
1.7.2.5
PATCH 13/16 target-sh4/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-sh4/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-sh4/translate.c +6 -6
@@ -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;
Signature · 1 line
1.7.2.5
PATCH 14/16 target-sparc/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-sparc/translate.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
target-sparc/translate.c +6 -6
@@ -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 ;
@@ -5323,9 +5323,9 @@ static inline void gen_intermediate_code_internal(TranslationBlock * tb, *tcg_ctx.gen_opc_ptr = INDEX_op_end;if (spc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; + }#if 0 log_page_dump ();#endif
Signature · 1 line
1.7.2.5
PATCH 15/16 target-unicore32/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-unicore32/translate.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
target-unicore32/translate.c +4 -6
@@ -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;
@@ -2054,9 +2053,8 @@ done_generating:#endif if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; - lj++; -while (lj <= j) { - tcg_ctx.gen_opc_instr_start[lj++] =0 ; +while (++lj <= j) { + tcg_ctx.gen_opc_instr_start[lj] =0 ; } }else { tb->size = dc->pc - pc_start;
Signature · 1 line
1.7.2.5
PATCH 16/16 target-xtensa/translate: minimally change gen_intermediate_code_internal
In reply to liguang--- target-xtensa/translate.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
target-xtensa/translate.c +3 -4
@@ -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;
@@ -2997,7 +2996,7 @@ static void gen_intermediate_code_internal(if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;memset (tcg_ctx.gen_opc_instr_start + lj +1 ,0 , - (j - lj) *sizeof (tcg_ctx.gen_opc_instr_start[0 ])); + (j - lj) *sizeof (tcg_ctx.gen_opc_instr_start[0 ])); }else { tb->size = dc.pc - pc_start; tb->icount = insn_count;
Signature · 1 line
1.7.2.5