Received: from eggs.gnu.org ([2001:4830:134:3::10]:37380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjPfx-0000TA-O2 for qemu-devel@nongnu.org; Tue, 06 Oct 2015 06:40:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjPfs-0005WH-NI for qemu-devel@nongnu.org; Tue, 06 Oct 2015 06:40:53 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:53832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjPfs-0005Vz-D7 for qemu-devel@nongnu.org; Tue, 06 Oct 2015 06:40:48 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Oct 2015 11:40:47 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id E99971B08069 for ; Tue, 6 Oct 2015 11:40:43 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t96Aegcu35193076 for ; Tue, 6 Oct 2015 10:40:42 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t96AegOR015620 for ; Tue, 6 Oct 2015 04:40:42 -0600 From: Christian Borntraeger Date: Tue, 6 Oct 2015 12:41:01 +0200 Message-Id: <1444128065-87628-2-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1444128065-87628-1-git-send-email-borntraeger@de.ibm.com> References: <1444128065-87628-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PULL 1/5] pc-bios/s390-ccw: avoid floating point operations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Cornelia Huck , Christian Borntraeger , Jens Freimann , qemu-devel , Alexander Graf Some gcc versions (e.g. Fedora 22 gcc 5.1.1) seem to use floating point registers for spilling and filling of general purpose registers. As the BIOS does not activate the AFP register setting of CR0 this can cause data exception program checks. Disallow floating point in the BIOS as a simple solution. Signed-off-by: Christian Borntraeger Reviewed-by: David Hildenbrand Signed-off-by: Jens Freimann Message-Id: <1443689387-34473-2-git-send-email-jfrei@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger --- pc-bios/s390-ccw/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index 746603a..15e4232 100644 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -10,7 +10,8 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw) .PHONY : all clean build-all OBJECTS = start.o main.o bootmap.o sclp-ascii.o virtio.o -CFLAGS += -fPIE -fno-stack-protector -ffreestanding -fno-delete-null-pointer-checks +CFLAGS += -fPIE -fno-stack-protector -ffreestanding +CFLAGS += -fno-delete-null-pointer-checks -msoft-float LDFLAGS += -Wl,-pie -nostdlib build-all: s390-ccw.img -- 2.4.3