Commit 278d070272537a8ff1a3052cea0b20a66d8a8e95
1 parent
33ac7f16
Simplify code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2904 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
target-mips/translate.c
... | ... | @@ -5843,7 +5843,7 @@ static inline int |
5843 | 5843 | gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, |
5844 | 5844 | int search_pc) |
5845 | 5845 | { |
5846 | - DisasContext ctx, *ctxp = &ctx; | |
5846 | + DisasContext ctx; | |
5847 | 5847 | target_ulong pc_start; |
5848 | 5848 | uint16_t *gen_opc_end; |
5849 | 5849 | int j, lj = -1; |
... | ... | @@ -5884,7 +5884,7 @@ gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, |
5884 | 5884 | if (env->nb_breakpoints > 0) { |
5885 | 5885 | for(j = 0; j < env->nb_breakpoints; j++) { |
5886 | 5886 | if (env->breakpoints[j] == ctx.pc) { |
5887 | - save_cpu_state(ctxp, 1); | |
5887 | + save_cpu_state(&ctx, 1); | |
5888 | 5888 | ctx.bstate = BS_BRANCH; |
5889 | 5889 | gen_op_debug(); |
5890 | 5890 | goto done_generating; |
... | ... | @@ -5918,7 +5918,7 @@ gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, |
5918 | 5918 | #endif |
5919 | 5919 | } |
5920 | 5920 | if (env->singlestep_enabled) { |
5921 | - save_cpu_state(ctxp, ctx.bstate == BS_NONE); | |
5921 | + save_cpu_state(&ctx, ctx.bstate == BS_NONE); | |
5922 | 5922 | gen_op_debug(); |
5923 | 5923 | } else { |
5924 | 5924 | switch (ctx.bstate) { |
... | ... | @@ -5927,7 +5927,7 @@ gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, |
5927 | 5927 | gen_goto_tb(&ctx, 0, ctx.pc); |
5928 | 5928 | break; |
5929 | 5929 | case BS_NONE: |
5930 | - save_cpu_state(ctxp, 0); | |
5930 | + save_cpu_state(&ctx, 0); | |
5931 | 5931 | gen_goto_tb(&ctx, 0, ctx.pc); |
5932 | 5932 | break; |
5933 | 5933 | case BS_EXCP: | ... | ... |