From nobody Fri Dec 19 14:32:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1583426046; cv=none; d=zohomail.com; s=zohoarc; b=Fxe8vH/U9yx7Fc0QZ5Eonp21XF84TWtxK4wq3K037SesrDxj5Dp6B5/2cDjPknO1012Jo4mFHxs1edah4m8gl+P7fuUnUJ2Xa6DUubMj1D5/mAwioJXSQHT6pqE/F46/Hw4GprmKoDdTwaQqiONLyG2mKYB1QPhUmXdLV+0+HGY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583426046; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kriMcQzkMm95EhhcHWuzwV+BnRHVXDuG3tsQM4aq6Cw=; b=jekEu7lUJbSz0PeUHZ/TFiz5UQdbp5OATe9CloHizJBeFVLVaQkv2xBGZp/Ja/e64GbMPmHeldwjavou5KU60Xazymazi5chI8jTQqCkPiLAg2GtSG+0ZXpDXGrh0RKeXj6IaczB31oqh73OqZH5jv8+pZUUxYyr/eDLRDE1xKg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583426046551409.66966105586323; Thu, 5 Mar 2020 08:34:06 -0800 (PST) Received: from localhost ([::1]:52442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tRl-0007RP-Ar for importer@patchew.org; Thu, 05 Mar 2020 11:34:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59176) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tP4-0003QC-JV for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:31:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9tOy-0002BB-V9 for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:31:17 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:35110) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9tOy-0002Ac-MC for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:31:12 -0500 Received: by mail-wr1-x441.google.com with SMTP id r7so7822185wro.2 for ; Thu, 05 Mar 2020 08:31:12 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id w22sm10310729wmk.34.2020.03.05.08.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 08:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=kriMcQzkMm95EhhcHWuzwV+BnRHVXDuG3tsQM4aq6Cw=; b=k9Tak1XIl5hpRS2IycmEMeNJAl2hJxRw/4geQF27jaiogi8lSH4HeUzU2x5VxYT7K3 s24QmCAMNNOMYZARxiYBgZ7fGPJWiDYqlz4PI9/YVP8wN34yBoQAMFStI/hnEx/tp79b OCOfBJfw1Ob8++fdmnY07yuxKC4EoNc5n3sz36t12kYtzShPDc2Q0dslb7zbFQl1hGts 2zIfbjaRqRLv/WCXeWjdYV4rXC4Kxhouead59KgvIU4N0avNYb1pYNmIWtmF/IrSXO8t +UzGlbbcBsJAbxPYiRb0qbcclHZb4TrqLcZY1A8xLx+QriUV0lDDbsQ+puyPd0h8VCvi f78Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kriMcQzkMm95EhhcHWuzwV+BnRHVXDuG3tsQM4aq6Cw=; b=ZquwsIxlXErs/sck2bPQhU6sdpFfgfFdIFBuoleAIqxFhRtF8e+jU9xw32uArwfeD/ 8z3VhWyua7GO5cVBSE8K8doLvKdtL3G4cG+S17fMJhB3tTZ3tr5iZzK2EzpVOzYRvzxB qtdrXgwVIJVOeyj5tsOWiIhYge+5syA9CfRI4lcfJDtEFSADF6JnvGRgG1ULFfO50Kpv pUZmTpBAxtOc27RBxhihXIigjudTqiQruTaoMzqlxQVrQMJJ5AhRPQYRYxFHI7RrrzMt I01mpkIB0riMwbBPuj7TpqAtxJYrz7Q3IkM0y7LFKBajqZDkTv7cL4yTqBkRWE2ieqML xUDA== X-Gm-Message-State: ANhLgQ3kxxCZe9mmRyZySEkkRkqwx0xCPSeSU1IsebiF9sjPe4dSlOOR hekZPpb1/3n4TFbFGetN+pB/k3oiWJ34sQ== X-Google-Smtp-Source: ADFU+vv2nOB6gcwQFVx9X7UpbJB7rGuW1k7W+LyfeFmnyZwTO2+Z0uF92A/4C3sLElXfK5ryBk2v4Q== X-Received: by 2002:adf:ec50:: with SMTP id w16mr11311848wrn.9.1583425871400; Thu, 05 Mar 2020 08:31:11 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 08/37] hw/arm/omap_sx1: Simplify since the machines are little-endian only Date: Thu, 5 Mar 2020 16:30:31 +0000 Message-Id: <20200305163100.22912-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200305163100.22912-1-peter.maydell@linaro.org> References: <20200305163100.22912-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Philippe Mathieu-Daud=C3=A9 We only build the little-endian softmmu configurations. Checking for big endian is pointless, remove the unused code. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell --- hw/arm/omap_sx1.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/hw/arm/omap_sx1.c b/hw/arm/omap_sx1.c index 2bebab4171b..de5ff447dcf 100644 --- a/hw/arm/omap_sx1.c +++ b/hw/arm/omap_sx1.c @@ -114,7 +114,6 @@ static void sx1_init(MachineState *machine, const int v= ersion) DriveInfo *dinfo; int fl_idx; uint32_t flash_size =3D flash0_size; - int be; =20 if (machine->ram_size !=3D mc->default_ram_size) { char *sz =3D size_to_str(mc->default_ram_size); @@ -154,17 +153,11 @@ static void sx1_init(MachineState *machine, const int= version) OMAP_CS2_BASE, &cs[3]); =20 fl_idx =3D 0; -#ifdef TARGET_WORDS_BIGENDIAN - be =3D 1; -#else - be =3D 0; -#endif - if ((dinfo =3D drive_get(IF_PFLASH, 0, fl_idx)) !=3D NULL) { if (!pflash_cfi01_register(OMAP_CS0_BASE, "omap_sx1.flash0-1", flash_size, blk_by_legacy_dinfo(dinfo), - sector_size, 4, 0, 0, 0, 0, be)) { + sector_size, 4, 0, 0, 0, 0, 0)) { fprintf(stderr, "qemu: Error registering flash memory %d.\n", fl_idx); } @@ -187,7 +180,7 @@ static void sx1_init(MachineState *machine, const int v= ersion) if (!pflash_cfi01_register(OMAP_CS1_BASE, "omap_sx1.flash1-1", flash1_size, blk_by_legacy_dinfo(dinfo), - sector_size, 4, 0, 0, 0, 0, be)) { + sector_size, 4, 0, 0, 0, 0, 0)) { fprintf(stderr, "qemu: Error registering flash memory %d.\n", fl_idx); } --=20 2.20.1