The only feature we care about for the moment is SVE, which can
be controlled both with a coarse granularity by turning it on/off
completely and with a finer granularity by enabling/disabling
individual vector lengths.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
Tested-by: Andrew Jones <drjones(a)redhat.com>
---
src/cpu_map/arm_features.xml | 22 ++++++++++++++++++++++
src/cpu_map/index.xml | 4 ++++
2 files changed, 26 insertions(+)
create mode 100644 src/cpu_map/arm_features.xml
diff --git a/src/cpu_map/arm_features.xml b/src/cpu_map/arm_features.xml
new file mode 100644
index 0000000000..8a53384463
--- /dev/null
+++ b/src/cpu_map/arm_features.xml
@@ -0,0 +1,22 @@
+<cpus>
+
+ <!-- SVE vector lengths -->
+ <feature name='sve'/>
+ <feature name='sve128'/>
+ <feature name='sve256'/>
+ <feature name='sve384'/>
+ <feature name='sve512'/>
+ <feature name='sve640'/>
+ <feature name='sve768'/>
+ <feature name='sve896'/>
+ <feature name='sve1024'/>
+ <feature name='sve1152'/>
+ <feature name='sve1280'/>
+ <feature name='sve1408'/>
+ <feature name='sve1536'/>
+ <feature name='sve1664'/>
+ <feature name='sve1792'/>
+ <feature name='sve1920'/>
+ <feature name='sve2048'/>
+
+</cpus>
diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml
index 3c6885f60c..ed45083dca 100644
--- a/src/cpu_map/index.xml
+++ b/src/cpu_map/index.xml
@@ -75,4 +75,8 @@
<include filename="ppc64_POWERPC_e5500.xml"/>
<include filename="ppc64_POWERPC_e6500.xml"/>
</arch>
+
+ <arch name='arm'>
+ <include filename='arm_features.xml'/>
+ </arch>
</cpus>
--
2.21.0