From: Markus Deuling <deuling@de.ibm.com>
To: gdb-patches@sourceware.org
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>,
uweigand@de.ibm.com, drow@false.org
Subject: Re: [rfc] Replace x86 register macros
Date: Tue, 11 Mar 2008 05:23:00 -0000 [thread overview]
Message-ID: <47D61734.1020306@de.ibm.com> (raw)
In-Reply-To: <200803101223.m2ACN951020082@brahms.sibelius.xs4all.nl>
Mark Kettenis schrieb:
>> Date: Mon, 10 Mar 2008 13:13:03 +0100 (CET)
>> From: "Ulrich Weigand" <uweigand@de.ibm.com>
>>
>> Markus Deuling wrote:
>>
>>> Thanks for review, I reworked the patch now. Ok to commit?
>>> +#define I387_FCTRL_REGNUM(tdep) (I387_ST0_REGNUM(tdep) + 8)
>>> +#define I387_FSTAT_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 1)
>>> +#define I387_FTAG_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 2)
>>> +#define I387_FISEG_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 3)
>>> +#define I387_FIOFF_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 4)
>>> +#define I387_FOSEG_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 5)
>>> +#define I387_FOOFF_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 6)
>>> +#define I387_FOP_REGNUM(tdep) (I387_FCTRL_REGNUM(tdep)+ 7)
>>> +#define I387_XMM0_REGNUM(tdep) (I387_ST0_REGNUM(tdep)+ 16)
>>> +#define I387_MXCSR_REGNUM(tdep) (I387_XMM0_REGNUM(tdep) \
>>> ++ I387_NUM_XMM_REGS(tdep))
>> I guess I should have been more specific about the formatting;
>> this is unfortunately still not quite right: On the right-hand
>> sides, you should use normal whitespace rules, i.e. spaces before
>> the '(' and '+'. Also, the last line should be properly
>> indented, somthing like:
>>
>> #define I387_MXCSR_REGNUM(tdep) (I387_XMM0_REGNUM (tdep) \
>> + I387_NUM_XMM_REGS (tdep))
>
> Or better yet, something like:
>
> #define I387_MXCSR_REGNUM(tdep) \
> (I387_XMM0_REGNUM (tdep) + I387_NUM_XMM_REGS (tdep))
>
Thank you. I've committed a corrected version now.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
prev parent reply other threads:[~2008-03-11 5:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 20:42 Markus Deuling
2008-02-19 15:45 ` Ulrich Weigand
2008-02-19 16:21 ` Daniel Jacobowitz
2008-02-20 16:45 ` Markus Deuling
2008-03-04 0:32 ` Ulrich Weigand
2008-03-10 6:58 ` Markus Deuling
2008-03-10 12:13 ` Ulrich Weigand
2008-03-10 12:23 ` Mark Kettenis
2008-03-11 5:23 ` Markus Deuling [this message]
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=47D61734.1020306@de.ibm.com \
--to=deuling@de.ibm.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=uweigand@de.ibm.com \
/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