From 25278eaba7b93701e046a8215f84843674d4ca02 Mon Sep 17 00:00:00 2001 From: Louis Mayencourt Date: Wed, 27 Feb 2019 14:24:16 +0000 Subject: Cortex-A73: Implement workaround for errata 852427 In AArch32, execution of 2 instructions with opposite condition code might lead to either a data corruption or a CPU deadlock. Set the bit 12 of the Diagnostic Register to prevent this. Change-Id: I22b4f25fe933e2942fd785e411e7c0aa39d5c1f4 Signed-off-by: Louis Mayencourt --- include/lib/cpus/aarch64/cortex_a73.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/lib/cpus/aarch64/cortex_a73.h b/include/lib/cpus/aarch64/cortex_a73.h index 61b2b737b..1238c0ef4 100644 --- a/include/lib/cpus/aarch64/cortex_a73.h +++ b/include/lib/cpus/aarch64/cortex_a73.h @@ -31,6 +31,8 @@ #define CORTEX_A73_IMP_DEF_REG1_DISABLE_LOAD_PASS_STORE (ULL(1) << 3) +#define CORTEX_A73_DIAGNOSTIC_REGISTER S3_0_C15_C0_1 + #define CORTEX_A73_IMP_DEF_REG2 S3_0_C15_C0_2 #endif /* CORTEX_A73_H */ -- cgit v1.2.3