qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4413] fixed do_restore_state()
@ 2008-05-10 15:42 Fabrice Bellard
  0 siblings, 0 replies; only message in thread
From: Fabrice Bellard @ 2008-05-10 15:42 UTC (permalink / raw)
  To: qemu-devel

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
===================================================================
--- trunk/target-mips/op_helper.c	2008-05-10 12:27:33 UTC (rev 4412)
+++ trunk/target-mips/op_helper.c	2008-05-10 15:42:17 UTC (rev 4413)
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-10 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-10 15:42 [Qemu-devel] [4413] fixed do_restore_state() Fabrice Bellard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).