From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Jan Kiszka <jan.kiszka@web.de>
Subject: Re: [Qemu-devel] Re: [PATCH] x86_64 debug registers for gdb
Date: Fri, 20 Apr 2007 13:55:13 +0100 [thread overview]
Message-ID: <200704201355.14379.paul@codesourcery.com> (raw)
In-Reply-To: <4627DF73.3030902@web.de>
On Thursday 19 April 2007 22:30, Jan Kiszka wrote:
> + registers[_GP_REGS+2] = env->segs[R_CS].selector;
> + registers[_GP_REGS+3] = env->segs[R_SS].selector;
> + registers[_GP_REGS+4] = env->segs[R_DS].selector;
> + registers[_GP_REGS+5] = env->segs[R_ES].selector;
> + registers[_GP_REGS+6] = env->segs[R_FS].selector;
> + registers[_GP_REGS+7] = env->segs[R_GS].selector;
>
> + registers[_FPCTL_OFS] = env->fpuc;
> + registers[_FPCTL_OFS+1] = fpus;
> + registers[_FPCTL_OFS+2] = 0; /* XXX: convert tags */
> + registers[_FPCTL_OFS+3] = 0; /* fiseg */
> + registers[_FPCTL_OFS+4] = 0; /* fioff */
> + registers[_FPCTL_OFS+5] = 0; /* foseg */
> + registers[_FPCTL_OFS+6] = 0; /* fooff */
> + registers[_FPCTL_OFS+7] = 0; /* fop */
> + for (i = _FPCTL_OFS; i < _FPCTL_OFS+8; i++)
> tswapls(®isters[i]);
These are all wrong on x86-64.
Paul
next prev parent reply other threads:[~2007-04-20 13:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-19 20:51 [Qemu-devel] [PATCH] x86_64 debug registers for gdb Jason Wessel
2007-04-18 20:53 ` [Qemu-devel] " Jan Kiszka
2007-04-19 15:11 ` Paul Brook
2007-04-19 21:30 ` Jan Kiszka
2007-04-20 12:55 ` Paul Brook [this message]
2007-04-20 22:15 ` Jan Kiszka
2007-04-20 23:13 ` Paul Brook
2007-04-21 17:45 ` Jan Kiszka
2007-04-23 9:13 ` Jan Kiszka
2007-04-23 15:47 ` Jan Kiszka
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=200704201355.14379.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=jan.kiszka@web.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 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).