https://gcc.gnu.org/g:2159f024f63c12fd356748ae8fc106bb9b355688

commit r16-871-g2159f024f63c12fd356748ae8fc106bb9b355688
Author: Michael J. Eager <ea...@eagercon.com>
Date:   Sun May 25 07:12:14 2025 -0700

    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

Diff:
---
 gcc/config/microblaze/microblaze.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/microblaze/microblaze.cc 
b/gcc/config/microblaze/microblaze.cc
index db8e33465a83..2ab5ada4ec9e 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)

Reply via email to