All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Doug Goldstein <cardoe@cardoe.com>, Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, nathan@nathanrossi.com
Subject: Re: [PATCH] xen/x86: Fix up rules when forcing -mno-sse
Date: Wed, 12 Aug 2015 17:12:43 +0100	[thread overview]
Message-ID: <55CB707B.5010300@citrix.com> (raw)
In-Reply-To: <CAFWqQMTsnTTHz7vWKj5zcmUhfps7UKNmZJ1uDcn1K9dORSgNFQ@mail.gmail.com>

On 12/08/15 17:03, Doug Goldstein wrote:
> On Wed, Aug 12, 2015 at 10:38 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>>>> On 12.08.15 at 17:23, <cardoe@cardoe.com> wrote:
>>> From: Nathan Rossi <nathan.rossi@xilinx.com>
>>>
>>> * When forcing -mno-sse specify -mfpmath=387 to avoid the fallback
>>>   warning
>> "the fallback warning" being what? I've never seen any, and I don't
>> think I've ever heard anyone else say there was one.
>>
>> Apart from that I don't think -mfpmath=387 is what we want - we'd
>> better tell the compiler to not use x87 registers at all.

Agreed.

However, a git grep shows:

crypto/vmac.c:1098:    double cpb;
crypto/vmac.c:1158:             
((double)CLOCKS_PER_SEC*speed_lengths[i]*speed_iters[i]));

which I suspect might need fixing.

>>
>> Jan
>>
> I guess I jumped the gun a bit. When targeting a corei7 based chip, Yocto uses
> the following CFLAGS for the packages it builds:
>
> -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2
>
> The issue is the -mfpmath value.
>

It seems wrong to set -mfpmath=387, as that implies that floating point
maths is ok.

I cant however find an obvious "no fpmath" option.

Perhaps Xen should specifically filter options such as those out from
the environmental CFLAGS

~Andrew

  reply	other threads:[~2015-08-12 16:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 15:23 [PATCH] xen/x86: Fix up rules when forcing -mno-sse Doug Goldstein
2015-08-12 15:38 ` Jan Beulich
2015-08-12 16:03   ` Doug Goldstein
2015-08-12 16:12     ` Andrew Cooper [this message]
2015-08-12 16:34       ` Doug Goldstein
2015-08-12 17:53         ` Nathan Rossi
2015-08-13  6:52       ` Jan Beulich

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=55CB707B.5010300@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=cardoe@cardoe.com \
    --cc=nathan@nathanrossi.com \
    --cc=xen-devel@lists.xenproject.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.