Skip to contentSkip to conversation

[7132] target-mips: simplify exception generation

Qemu-devel Aurelien Jarno 2 participants 3 messages Apr 17, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7132

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7132
Author:   aurel32
Date:     2009-04-17 13:11:42 +0000 (Fri, 17 Apr 2009)

Log Message:
-----------
target-mips: simplify exception generation

There is no need to exit the tb after a call to helper_raise_exception as it already calls cpu_loop_exit().

Modified Paths:
--------------
trunk/target-mips/translate.c

Modified: trunk/target-mips/translate.c
===================================================================

target-mips/translate.c +0 -4
@@ -793,8 +793,6 @@
     gen_helper_raise_exception_err(texcp, terr);
     tcg_temp_free_i32(terr);
     tcg_temp_free_i32(texcp);
-    gen_helper_interrupt_restart();
-    tcg_gen_exit_tb(0);
 }
 
 static inline void
@@ -802,8 +800,6 @@
 {
     save_cpu_state(ctx, 1);
     gen_helper_0i(raise_exception, excp);
-    gen_helper_interrupt_restart();
-    tcg_gen_exit_tb(0);
 }
 
 /* Addresses computation */
#1 lore raw
Quoted 4 lines · Aurelien Jarno

Revision: 7132

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7132
Author:   aurel32
Date:     2009-04-17 13:11:42 +0000 (Fri, 17 Apr 2009)
Quoted 9 lines

Log Message:
-----------
target-mips: simplify exception generation

There is no need to exit the tb after a call to helper_raise_exception as it already calls cpu_loop_exit().

helper_raise_exception_err is also a candidat.

Regards, Stefan

#2 lore raw
Quoted 9 lines · Stefan Weil
Quoted 8 lines · Aurelien Jarno

Revision: 7132

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7132
Author:   aurel32
Date:     2009-04-17 13:11:42 +0000 (Fri, 17 Apr 2009)

Log Message:
-----------
target-mips: simplify exception generation

Quoted 8 lines
Quoted 5 lines

There is no need to exit the tb after a call to helper_raise_exception as it already calls cpu_loop_exit().

helper_raise_exception_err is also a candidat.

I did the change on both, even if not explictely said in the changelog.

Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net