aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Eager <eager@eagercon.com>2025-05-25 07:12:14 -0700
committerMichael J. Eager <eager@eagercon.com>2025-05-25 09:16:39 -0700
commit2159f024f63c12fd356748ae8fc106bb9b355688 (patch)
tree35b15b18ffca0fa1898eb7078411982c308b1c44
parent9b8caae8d189c5bd7de502844b17341a7a6dddc5 (diff)
downloadgcc-2159f024f63c12fd356748ae8fc106bb9b355688.zip
gcc-2159f024f63c12fd356748ae8fc106bb9b355688.tar.gz
gcc-2159f024f63c12fd356748ae8fc106bb9b355688.tar.bz2
MicroBlaze does not support speculative execution (CVE-2017-5753)
gcc/ PR target/86772 Tracking CVE-2017-5753 * config/microblaze/microblaze.cc (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define to speculation_save_value_not_needed
-rw-r--r--gcc/config/microblaze/microblaze.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
index db8e334..2ab5ada 100644
--- a/gcc/config/microblaze/microblaze.cc
+++ b/gcc/config/microblaze/microblaze.cc
@@ -239,6 +239,10 @@ section *sdata2_section;
#define TARGET_HAVE_TLS true
#endif
+/* MicroBlaze does not do speculative execution. */
+#undef TARGET_HAVE_SPECULATION_SAFE_VALUE
+#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed
+
/* Return truth value if a CONST_DOUBLE is ok to be a legitimate constant. */
static bool
microblaze_const_double_ok (rtx op, machine_mode mode)