diff options
author | Rong Xu <xur@google.com> | 2014-10-13 15:06:37 -0700 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2014-10-13 15:06:37 -0700 |
commit | c16bf8984b9f89eeb79abd9a3789151f5c98d02f (patch) | |
tree | f4f01e14d95a1d713169e3064537758e1d594197 /gcc-4.9/gcc/configure.ac | |
parent | c5748954561f492fe1c4ea772e0290079af9960b (diff) | |
download | toolchain_gcc-c16bf8984b9f89eeb79abd9a3789151f5c98d02f.tar.gz toolchain_gcc-c16bf8984b9f89eeb79abd9a3789151f5c98d02f.tar.bz2 toolchain_gcc-c16bf8984b9f89eeb79abd9a3789151f5c98d02f.zip |
[gcc-4.9] fix for for cortex-a53 erratum 835769
This patch cherry picks r216116 from google/gcc-4_9 branch (which
is r216077 and r216079 from upstream gcc-4_9 branch).
Tested the built compiler with aarch64 devicde.
Change-Id: I75745fe35aae83bc3b64135a2efc7f8ffd9cfb1f
Diffstat (limited to 'gcc-4.9/gcc/configure.ac')
-rw-r--r-- | gcc-4.9/gcc/configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/configure.ac b/gcc-4.9/gcc/configure.ac index 309f068e2..7e545d74a 100644 --- a/gcc-4.9/gcc/configure.ac +++ b/gcc-4.9/gcc/configure.ac @@ -3562,6 +3562,29 @@ case "$target" in done fi fi + # Enable default workaround for AArch64 Cortex-A53 erratum 835769. + AC_ARG_ENABLE(fix-cortex-a53-835769, + [ +AS_HELP_STRING([--enable-fix-cortex-a53-835769], + [enable workaround for AArch64 Cortex-A53 erratum 835769 by default]) +AS_HELP_STRING([--disable-fix-cortex-a53-835769], + [disable workaround for AArch64 Cortex-A53 erratum 835769 by default]) + ], + [ + case $enableval in + yes) + tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1" + ;; + no) + ;; + *) + AC_MSG_ERROR(['$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\ + Valid choices are 'yes' and 'no'.]) + ;; + + esac + ], + []) ;; # All TARGET_ABI_OSF targets. |