[PATCH v3 0/4] aarch64: Allow overriding HWCAP_CPUID feature check
Steve Ellcey
sellcey@cavium.com
Tue May 30 20:23:00 GMT 2017
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
More information about the Libc-alpha
mailing list