From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4413] fixed do_restore_state()
Date: Sat, 10 May 2008 15:42:18 +0000 [thread overview]
Message-ID: <E1JurDG-0006jw-1I@cvs.savannah.gnu.org> (raw)
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)
reply other threads:[~2008-05-10 15:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JurDG-0006jw-1I@cvs.savannah.gnu.org \
--to=fabrice@bellard.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).