DavidSpickett wrote:

So if you have code that wants to use SVE2 and may run on an SME only device 
with this older kernel, I think you could make it check for HWCAP_SVE and 
HWCAP2_SVE2. As the Architecture manual says:
```
FEAT_SVE2, Scalable Vector Extension version 2
<...>
If FEAT_SVE2 is implemented, then FEAT_SVE is implemented.
```
Meaning that from userspace:
* HWCAP_SVE = sve only
* HWCAP2_SVE2 + HWCAP_SVE = sve and sve2 (and if you have SME, in streaming 
mode too)
* HWCAP2_SVE2 = sve only in streaming mode (because you can't have SVE2 only, 
unless you have SME and this buggy kernel version)

If you are making changes like this, I can double check with Arm's kernel team 
that your approach is what they expect software to do. I think what I've 
suggested would work, but not sure that the kernel authors want us doing it 
that way.

https://github.com/llvm/llvm-project/pull/135563
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to