arm: Add command-line option for enabling CVE-2021-35465 mitigation [PR102035]
commit3929bca9ca95de9d35e82ae8828b188029e3eb70
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 11 Jun 2021 15:02:05 +0000 (11 16:02 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 24 Aug 2021 10:45:13 +0000 (24 11:45 +0100)
treefdf227f6857a911811b0f916b0429794e6006d7e
parent79fb2700bdbab4212346d907be6063c5a32d3836
arm: Add command-line option for enabling CVE-2021-35465 mitigation [PR102035]

Add a new option, -mfix-cmse-cve-2021-35465 and document it.  Enable it
automatically for cortex-m33, cortex-m35p and cortex-m55.

gcc:
PR target/102035
* config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
* doc/invoke.texi (Arm Options): Document it.
* config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
(ALL_QUIRKS): Add quirk_vlldm.
(cortex-m33): Add quirk_vlldm.
(cortex-m35p, cortex-m55): Likewise.
* config/arm/arm.c (arm_option_override): Enable fix_vlldm if
targetting an affected CPU and not explicitly controlled on
the command line.
gcc/config/arm/arm-cpus.in
gcc/config/arm/arm.c
gcc/config/arm/arm.opt
gcc/doc/invoke.texi