aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.main6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index d5975e2..d0e5f58 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -100,6 +100,12 @@ CFLAGS += -msoft-float
CFLAGS += -mno-string
# do not use load/store multiple word instrcutions
CFLAGS += -mno-multiple
+# do not use any automatic vector foo
+# While it would be safe during boot, we don't save/restore across OPAL calls
+CFLAGS += $(call try-cflag,$(CC),-mno-vsx) \
+ $(call try-cflag,$(CC),-mno-direct-move) \
+ $(call try-cflag,$(CC),-mno-altivec)
+
# Do not use load/store update. You REALLY do not want to use this!
# The async safety of the ABI stack depends on the atomicity
# of update on store.