Commit aefbc83e9528891a3155d05bf68c6a4dd55e942f

Authored by aurel32
1 parent 1d9d8b55

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().

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7132 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 4 deletions
target-mips/translate.c
@@ -793,8 +793,6 @@ generate_exception_err (DisasContext *ctx, int excp, int err) @@ -793,8 +793,6 @@ generate_exception_err (DisasContext *ctx, int excp, int err)
793 gen_helper_raise_exception_err(texcp, terr); 793 gen_helper_raise_exception_err(texcp, terr);
794 tcg_temp_free_i32(terr); 794 tcg_temp_free_i32(terr);
795 tcg_temp_free_i32(texcp); 795 tcg_temp_free_i32(texcp);
796 - gen_helper_interrupt_restart();  
797 - tcg_gen_exit_tb(0);  
798 } 796 }
799 797
800 static inline void 798 static inline void
@@ -802,8 +800,6 @@ generate_exception (DisasContext *ctx, int excp) @@ -802,8 +800,6 @@ generate_exception (DisasContext *ctx, int excp)
802 { 800 {
803 save_cpu_state(ctx, 1); 801 save_cpu_state(ctx, 1);
804 gen_helper_0i(raise_exception, excp); 802 gen_helper_0i(raise_exception, excp);
805 - gen_helper_interrupt_restart();  
806 - tcg_gen_exit_tb(0);  
807 } 803 }
808 804
809 /* Addresses computation */ 805 /* Addresses computation */