Commit a85427b147f3174748a4eed13a7379a769bb05fd

Authored by ths
1 parent fff739cc

Small code generation optimization.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2672 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 6 additions and 3 deletions
target-mips/translate.c
... ... @@ -5238,6 +5238,9 @@ gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
5238 5238 switch (ctx.bstate) {
5239 5239 case BS_EXCP:
5240 5240 gen_op_interrupt_restart();
  5241 + gen_op_reset_T0();
  5242 + /* Generate the return instruction. */
  5243 + gen_op_exit_tb();
5241 5244 break;
5242 5245 case BS_STOP:
5243 5246 gen_op_interrupt_restart();
... ... @@ -5248,11 +5251,11 @@ gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
5248 5251 break;
5249 5252 case BS_BRANCH:
5250 5253 default:
  5254 + gen_op_reset_T0();
  5255 + /* Generate the return instruction. */
  5256 + gen_op_exit_tb();
5251 5257 break;
5252 5258 }
5253   - gen_op_reset_T0();
5254   - /* Generate the return instruction. */
5255   - gen_op_exit_tb();
5256 5259 }
5257 5260 done_generating:
5258 5261 *gen_opc_ptr = INDEX_op_end;
... ...