From: Thiemo Seufer <ths@networkno.de>
To: Juergen Lock <nox@jelal.kn-bremen.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: strange crash on FreeBSD-current/amd64 (pointer truncation?)
Date: Fri, 2 Feb 2007 22:24:28 +0000 [thread overview]
Message-ID: <20070202222428.GA9622@networkno.de> (raw)
In-Reply-To: <20070202214525.GA10125@saturn.kn-bremen.de>
Juergen Lock wrote:
> > > Ok Jung-uk Kim found the following fix: (Thanx!)
> > >
> > > --- qemu/cpu-exec.c.orig Wed Jan 31 16:58:03 2007
> > > +++ qemu/cpu-exec.c Wed Jan 31 17:08:11 2007
> > > @@ -226,9 +226,9 @@
> > >
> > > int cpu_exec(CPUState *env1)
> > > {
> > > - int saved_T0, saved_T1;
> > > + long saved_T0, saved_T1;
> > > #if defined(reg_T2)
> > > - int saved_T2;
> > > + long saved_T2;
> >
> > I used target_ulong instead.
>
> Isn't that 32 bit for 32 bit targets? Then it wouldn't fix the bug,
> the problem happened for 32 bit guests (i386-softmmu) on 64 bit hosts
> (FreeBSD-current/amd64), there the upper half of rbx which held a
> pointer in the calling function was lost...
Apparently I miss something here. If T0 is a (32bit) target_ulong,
why does saving it to a (32bit) target_ulong and restoring it from
there cause any trouble?
Thiemo
next prev parent reply other threads:[~2007-02-02 22:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-24 20:00 [Qemu-devel] strange crash on FreeBSD-current/amd64 (pointer truncation?) Juergen Lock
2007-02-01 20:00 ` [Qemu-devel] " Juergen Lock
2007-02-02 4:02 ` Thiemo Seufer
2007-02-02 21:45 ` Juergen Lock
2007-02-02 22:24 ` Thiemo Seufer [this message]
2007-02-03 1:43 ` Juergen Lock
2007-02-03 18:12 ` Gwenole Beauchesne
2007-02-04 13:38 ` Paul Brook
2007-02-02 22:27 ` andrzej zaborowski
2007-02-02 22:40 ` Paul Brook
2007-02-02 22:57 ` andrzej zaborowski
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=20070202222428.GA9622@networkno.de \
--to=ths@networkno.de \
--cc=nox@jelal.kn-bremen.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.