arm-trusted-firmware/include
Antonio Nino Diaz ff6f62e105 Update macro to check need for CVE-2017-5715 mitigation
Armv8.5 introduces the field CSV2 to register ID_AA64PFR0_EL1. It can
have the following 3 values:

- 0: Branch targets trained in one hardware described context may affect
     speculative execution in a different hardware described context. In
     some CPUs it may be needed to apply mitigations.

- 1: Branch targets trained in one hardware described context can only
     affect speculative execution in a different hardware described
     context in a hard-to-determine way. No mitigation required.

- 2: Same as 1, but the device is also aware of SCXTNUM_ELx register
     contexts. The TF doesn't use the registers, so there is no
     difference with 1.

The field CSV2 was originally introduced in the TRM of the Cortex-A76
before the release of the Armv8.5 architecture. That TRM only mentions
the meaning of values 0 and 1. Because of this, the code only checks if
the field has value 1 to know whether to enable or disable the
mitigations.

This patch makes it aware of value 2 as well. Both values 1 and 2
disable the mitigation, and 0 enables it.

Change-Id: I5af33de25a0197c98173f52c6c8c77b51a51429f
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2019-02-14 14:43:43 +00:00
..
arch libc: Move setjmp to libc folder 2019-02-08 13:42:38 +00:00
bl1 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
bl2 Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
bl2u Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
bl31 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
bl32 tlkd: support new TLK SMCs 2019-01-31 08:46:54 -08:00
common Merge pull request #1804 from antonio-nino-diaz-arm/an/cleanup 2019-02-05 11:31:15 +00:00
drivers rpi3: Add SDHost driver 2019-02-01 04:09:31 +08:00
dt-bindings stm32mp1: update device tree files 2019-01-18 15:45:08 +01:00
lib Update macro to check need for CVE-2017-5715 mitigation 2019-02-14 14:43:43 +00:00
plat Arm platforms: Rename PLAT_ARM_NS_IMAGE_OFFSET 2019-02-01 10:48:34 +01:00
services Remove support for the SMC Calling Convention 2.0 2019-01-30 16:01:49 +00:00
tools_share Sanitise includes across codebase 2019-01-04 10:43:17 +00:00