This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 0/4] aarch64: Allow overriding HWCAP_CPUID feature check


On Tue, 2017-05-30 at 12:22 -0700, Steve Ellcey wrote:
> Siddhesh,
> 
> I think the problem may be in dl-tunables.h.  I could not get either
> of
> your patches that change that file (1 of 4 and 1 of 5) to apply
> cleanly
> to this file.  1 of 4 was small, but 1 of 5 is more complex and I may
> have messed it up while trying to apply it by hand.  Could you redo
> at
> least patch 1 of 5 so it applies cleanly to top-of-tree dl-
> tunables.h.
> Or maybe you could just send me a copy of dl-tunables.h so I can drop
> it in without the patch command.
> 
> Steve Ellcey
> sellcey@cavium.com

OK, I made a little progress.  If I don't set LD_HWCAP_MASK then it
seems to be treating it as 0, even though the default value is supposed
to be HWCAP_IMPORTANT which gets set to HWCAP_CPUID.  If I explicitly
set LD_HWCAP_MASK to 0x800 then I get the correct heaviour and my
program checks for CPUID.  I am not sure why the default value for
LD_HWCAP_MASK does not seem to be right.

Steve Ellcey
sellcey@cavium.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]