From nobody Fri Apr 26 16:14:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1560305361; cv=none; d=zoho.com; s=zohoarc; b=SDb9BB+4QWBFMkKec2ssJPm0mTRHizBRLqGGScLaKInmUPNC4KQksNuksSGmrdXcdABAyP1IL9I//tNTTcUCpBTAbI3/UMaqbh4HjA/N29mLCrosMoUNZQSpwaBx8PT0vGzVBdEyX6mipcjPcFSHonrH06NVxbHBtp+Yk84H5p8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560305361; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=qvKM+ZWOd8GAVNhVpBkouUcMwF6LO5xrtzewz9xR5FA=; b=AQ7JUBvijIAobO0i0IYXFRXT/0+vOCoHT0etaxXIJ35Hqm1zccvO8osQgu9faXWPxpdV8F+g0zM9DWHkdTgX7Z4hE5Jo0emEbOSMJVleDPHMC5nKyEZaBDFK+rAKsoMhfbWtsanUuzUbzme70RPcU3gJ95KSerpBCQsTtJ7fOQc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560305361697964.8619465839237; Tue, 11 Jun 2019 19:09:21 -0700 (PDT) Received: from localhost ([::1]:56312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hashS-0003Js-BA for importer@patchew.org; Tue, 11 Jun 2019 22:09:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57440) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hasgE-0002Kw-U3 for qemu-devel@nongnu.org; Tue, 11 Jun 2019 22:08:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hasgD-0003ku-Vh for qemu-devel@nongnu.org; Tue, 11 Jun 2019 22:08:02 -0400 Received: from ozlabs.ru ([107.173.13.209]:50020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hasgD-0003jl-QQ; Tue, 11 Jun 2019 22:08:01 -0400 Received: from fstn1-p1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 0F609AE80011; Tue, 11 Jun 2019 22:07:27 -0400 (EDT) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Wed, 12 Jun 2019 12:07:23 +1000 Message-Id: <20190612020723.96802-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 107.173.13.209 Subject: [Qemu-devel] [PATCH qemu REPOST] spapr/rtas: Force big endian compile for rtas X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" At the moment the rtas's Makefile uses generic QEMU rules which means that when QEMU is compiled on a little endian system, the spapr-rtas.bin is compiled as little endian too which is incorrect as it is always executed in big endian mode. This enforces -mbig by defining %.o:%.S rule as spapr-rtas.bin is a standalone guest binary which should not depend on QEMU flags anyway. Signed-off-by: Alexey Kardashevskiy --- pc-bios/spapr-rtas/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pc-bios/spapr-rtas/Makefile b/pc-bios/spapr-rtas/Makefile index f26dd428b79e..4b9bb1230658 100644 --- a/pc-bios/spapr-rtas/Makefile +++ b/pc-bios/spapr-rtas/Makefile @@ -14,8 +14,11 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/spapr-rtas) =20 build-all: spapr-rtas.bin =20 +%.o: %.S + $(call quiet-command,$(CCAS) -mbig -c -o $@ $<,"CCAS","$(TARGET_DIR)$@") + %.img: %.o - $(call quiet-command,$(CC) -nostdlib -o $@ $<,"Building","$(TARGET_DIR)$@= ") + $(call quiet-command,$(CC) -nostdlib -mbig -o $@ $<,"Building","$(TARGET_= DIR)$@") =20 %.bin: %.img $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"Building","$(TA= RGET_DIR)$@") --=20 2.17.1