[4413] fixed do_restore_state()
Revision: 4413
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4413 Author: bellard Date: 2008-05-10 15:42:17 +0000 (Sat, 10 May 2008)
Log Message:
-----------
fixed do_restore_state()
Modified Paths:
--------------
trunk/target-mips/op_helper.c
Modified: trunk/target-mips/op_helper.c
===================================================================
target-mips/op_helper.c +7 -5
@@ -50,11 +50,13 @@void do_restore_state (void *pc_ptr) { -TranslationBlock *tb; -unsigned long pc = (unsigned long ) pc_ptr; - - tb =tb_find_pc (pc); -cpu_restore_state (tb, env, pc,NULL ); +TranslationBlock *tb; +unsigned long pc = (unsigned long ) pc_ptr; + + tb =tb_find_pc (pc); +if (tb) { +cpu_restore_state (tb, env, pc,NULL ); + } }void do_raise_exception_direct_err (uint32_t exception,int error_code)