projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fff739c
)
Small code generation optimization.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 15 Apr 2007 19:52:12 +0000
(19:52 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 15 Apr 2007 19:52:12 +0000
(19:52 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2672
c046a42c
-6fe2-441c-8c8c-
71466251a162
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index b0cc3e71740a6d3f67731588884fcd91dc07f76c..59868f695f05df11017b268128f0c0fec0d7ea27 100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-5238,6
+5238,9
@@
gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
switch (ctx.bstate) {
case BS_EXCP:
gen_op_interrupt_restart();
+ gen_op_reset_T0();
+ /* Generate the return instruction. */
+ gen_op_exit_tb();
break;
case BS_STOP:
gen_op_interrupt_restart();
@@
-5248,11
+5251,11
@@
gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
break;
case BS_BRANCH:
default:
+ gen_op_reset_T0();
+ /* Generate the return instruction. */
+ gen_op_exit_tb();
break;
}
- gen_op_reset_T0();
- /* Generate the return instruction. */
- gen_op_exit_tb();
}
done_generating:
*gen_opc_ptr = INDEX_op_end;