From: John Reiser <jreiser@BitWagon.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] workaround: qemu-0.9.0 emulating mipsel (32-bit R3000) on amd64
Date: Mon, 07 May 2007 15:46:01 -0700 [thread overview]
Message-ID: <463FAC29.306@BitWagon.com> (raw)
In-Reply-To: <20070507121310.GA18535@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Sun, May 06, 2007 at 09:04:52PM +0100, Thiemo Seufer wrote:
>
>>This looks like another instance of "Qemu/MIPS doesn't handle
>>self-modifying code correctly" (the break instructions inserted
>>by gdb are exactly this).
>>
>>A gross workaround is
>>http://lists.nongnu.org/archive/html/qemu-devel/2007-05/msg00037.html
>
>
> Someone might want to try:
> http://lists.nongnu.org/archive/html/qemu-devel/2007-04/msg00514.html
>
This works for me so far: I can single-step reliably in gdb.
--- a/qemu-0.9.0/target-mips/helper.c 2007-05-05 15:39:21.000000000 -0700
+++ b/qemu-0.9.0/target-mips/helper.c 2007-05-07 13:24:50.000000000 -0700
@@ -358,6 +358,7 @@
goto set_EPC;
case EXCP_BREAK:
cause = 9;
+ tlb_flush_page(env, env->PC);
goto set_EPC;
case EXCP_RI:
cause = 10;
--
John Reiser, jreiser@BitWagon.com
next prev parent reply other threads:[~2007-05-07 22:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-06 18:45 [Qemu-devel] bug: qemu-0.9.0 emulating mipsel (32-bit R3000) on amd64 John Reiser
2007-05-06 20:04 ` Thiemo Seufer
2007-05-06 20:07 ` Thiemo Seufer
2007-05-07 12:13 ` Daniel Jacobowitz
2007-05-07 15:46 ` Paul Brook
2007-05-07 22:46 ` John Reiser [this message]
2007-05-07 23:03 ` [Qemu-devel] workaround: " Paul Brook
2007-05-07 23:08 ` Paul Brook
2007-05-08 18:03 ` [Qemu-devel] bug: " Stefan Weil
2007-05-08 23:50 ` John Reiser
2007-05-09 1:04 ` Thiemo Seufer
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=463FAC29.306@BitWagon.com \
--to=jreiser@bitwagon.com \
--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).