[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4413] fixed do_restore_state()
From: |
Fabrice Bellard |
Subject: |
[Qemu-devel] [4413] fixed do_restore_state() |
Date: |
Sat, 10 May 2008 15:42:18 +0000 |
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4413] fixed do_restore_state(),
Fabrice Bellard <=