aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2022-01-05 17:22:38 +0100
committerAlexey Kardashevskiy <aik@ozlabs.ru>2022-01-06 22:04:59 +1100
commitafea220911e6bfb37c109046e8448d8041949239 (patch)
tree5eb75c164c10244211f60d6d726f9bbfa7b5b8e0
parenta6906b024c6cca5a86496f51eb4bfee3a0c36148 (diff)
downloadSLOF-afea220911e6bfb37c109046e8448d8041949239.zip
SLOF-afea220911e6bfb37c109046e8448d8041949239.tar.gz
SLOF-afea220911e6bfb37c109046e8448d8041949239.tar.bz2
make.rules: Compile SLOF for power5
By default, SLOF would implement the cpu_to_le64() helper with the 'stdbrx' instruction which is invalid under POWER5+ and 970 CPUs. This breaks the QEMU pseries machine with such CPUs when virtio or USB devices or in use. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r--make.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/make.rules b/make.rules
index eeff4f4..aea57fe 100644
--- a/make.rules
+++ b/make.rules
@@ -76,7 +76,7 @@ WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wformat-security -We
CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \
-fno-strict-aliasing -mno-altivec -mabi=no-altivec \
-fno-stack-protector -fno-asynchronous-unwind-tables $(WARNFLAGS) \
- -fshort-wchar
+ -fshort-wchar -mcpu=power5
export CC AS LD CLEAN OBJCOPY OBJDUMP STRIP AR RANLIB CFLAGS