This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/3] x86: Add CPU Vendor ID detection support for Zhaoxin processors
- From: "May Shao(BJ-RD)" <MayShao at zhaoxin dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, "carlos at redhat dot com" <carlos at redhat dot com>, "Cooper Yan(BJ-RD)" <CooperYan at zhaoxin dot com>, "Qiyuan Wang(BJ-RD)" <QiyuanWang at zhaoxin dot com>, "Herry Yang(BJ-RD)" <HerryYang at zhaoxin dot com>, "Ricky Li(BJ-RD)" <RickyLi at zhaoxin dot com>
- Date: Mon, 9 Dec 2019 12:19:19 +0000
- Subject: Re: [PATCH 1/3] x86: Add CPU Vendor ID detection support for Zhaoxin processors
On 09/12/2019 4:34 pm, Florian Weimer wrote:
> * MayShao:
>
>> + cpu_features->feature[index_arch_Slow_SSE4_2]
>> + |= (bit_arch_Slow_SSE4_2
>> + | bit_arch_Prefer_MAP_32BIT_EXEC);
>
> Is the Prefer_MAP_32BIT_EXEC part really correct?
As glibc comments for this macro below:
"For 64-bit applications, branch prediction performance may be
negatively impacted when the target of a branch is more than
4GB away from the branch"
We have analyzed this generation of processors and found it have
this issue in theory, so we add this flag for it.
> As discussed recently, it does not have an effect with programs linked
> with -z separate-code (the default these days, I think) and PIE.
Do you mean the above macro will be ignored if program linked
with -z separate-code and PIE?
If it does, is there any harms if keep this macro? thanks a lot!
>> This email contains confidential or legally privileged information
>> and is for the sole use of its intended recipient. Any unauthorized
>> review, use, copying or forwarding of this email or the content of
>> this email is strictly prohibited.
>
> Would you please clarify if this is intended as a patch submission?
Sorry for any inconvenience, it's appended by mail sever automatically,
please ignore it.
Thanks for the review.
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.