|
From: | Richard Henderson |
Subject: | Re: [PATCH v5 19/22] tests/tcg/aarch64: add SVE iotcl test |
Date: | Wed, 15 Jan 2020 12:46:26 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 1/14/20 5:09 AM, Alex Bennée wrote: > +int main(int argc, char **argv) > +{ > + unsigned int sve_feature = (get_cpu_reg(ID_AA64PFR0_EL1) >> 32) & 0xf; > + /* Exit early if we don't support SVE at all */ > + if (sve_feature == 0x1) { > + /* we also need to probe for the ioctl support */ > + if (getauxval(AT_HWCAP) & HWCAP_SVE) { You should only probe hwcap. r!
[Prev in Thread] | Current Thread | [Next in Thread] |