qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] bsd-user: Fix operand to cpu_x86_exec
Date: Wed, 29 Jul 2015 11:40:52 -0700	[thread overview]
Message-ID: <1438195252-21968-1-git-send-email-rth@twiddle.net> (raw)

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
This buglet, from whenever we re-orged the parameters, means
that all x86-bsd-user invocations die instantly.


r~
---
 bsd-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsd-user/main.c b/bsd-user/main.c
index f46728b..ee68daa 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -173,7 +173,7 @@ void cpu_loop(CPUX86State *env)
     //target_siginfo_t info;
 
     for(;;) {
-        trapnr = cpu_x86_exec(env);
+        trapnr = cpu_x86_exec(cs);
         switch(trapnr) {
         case 0x80:
             /* syscall from int $0x80 */
-- 
2.4.3

             reply	other threads:[~2015-07-29 18:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-29 18:40 Richard Henderson [this message]
2015-07-29 21:22 ` [Qemu-devel] [PATCH] bsd-user: Fix operand to cpu_x86_exec Peter Maydell
2015-07-30 13:00   ` Peter Maydell

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=1438195252-21968-1-git-send-email-rth@twiddle.net \
    --to=rth@twiddle.net \
    --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).