From afea220911e6bfb37c109046e8448d8041949239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Wed, 5 Jan 2022 17:22:38 +0100 Subject: make.rules: Compile SLOF for power5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Alexey Kardashevskiy --- make.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1