[04/11] AArch64 - Add new option -mtrack-speculation

Message ID 1532684275-13041-5-git-send-email-Richard.Earnshaw@arm.com
State New
Headers show
  • (v2) Mitigation against unsafe data speculation (CVE-2017-5753)
Related show

Commit Message

Richard Earnshaw (lists) July 27, 2018, 9:37 a.m.
This patch doesn't do anything useful, it simply adds a new command-line
option -mtrack-speculation to AArch64.  Subsequent patches build on this.

	* config/aarch64/aarch64.opt (mtrack-speculation): New target option.
 gcc/config/aarch64/aarch64.opt | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt
index 1426b45..bc9b22a 100644
--- a/gcc/config/aarch64/aarch64.opt
+++ b/gcc/config/aarch64/aarch64.opt
@@ -214,3 +214,7 @@  Target RejectNegative Joined Enum(sve_vector_bits) Var(aarch64_sve_vector_bits)
 Common Undocumented Var(flag_aarch64_verbose_cost)
 Enables verbose cost model dumping in the debug dump files.
+Target Var(aarch64_track_speculation)
+Generate code to track when the CPU might be speculating incorrectly.