Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74E09C3F2D2 for ; Thu, 5 Mar 2020 16:37:15 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3FA1A20637 for ; Thu, 5 Mar 2020 16:37:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RIZVL8OY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FA1A20637 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tUo-0005S2-Bn for qemu-devel@archiver.kernel.org; Thu, 05 Mar 2020 11:37:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59101) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tOy-0003JI-2T for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:31:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9tOw-00028Z-UQ for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:31:12 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:40535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9tOw-00027U-MR for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:31:10 -0500 Received: by mail-wr1-x444.google.com with SMTP id r17so7794267wrj.7 for ; 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=8houcYe7KUIwDQbN8/wwPDt2OpHbE7pOYm4MOnfdoYo=; b=RIZVL8OYDiYAtvZS31rqRtTKmduNqaZ+5WOcIodDasjLup6BjxrfhMrQZrvXzOZc/7 mQL4DjU7mCvTxtHWiOlj6VDnSqT1hwDST5vughJedZ6sbktL7hVI/uCVzu5rHwnqN9KN 2W31bty/kf2LMYriSy0UhBRi3Gd867+0OpSYR1eRyv4Qlp1yyIWi3B6feufeR3Adz729 RZF4EiRVBHcZzJ/xKok6HCay0i+90aHltjtG195Hz+jGvEgLhy9vZWAOs3ghZi2pdfP9 eKXPGHmBZpVTjSnbwnC4Oxc4cgBxNIUgk1jkb+gy5srXc08Gi269ce3sEGy1FdxqRedq Tm0g== 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=8houcYe7KUIwDQbN8/wwPDt2OpHbE7pOYm4MOnfdoYo=; b=J8ZURqnMVW0ttqpOPn/SHADT3LB3URoAkffXlM7sN++Ca9dNwYnWsVfZPKq2zBWkjs 8v5tXdOGcsv6mLoi33f/cq8e6P1PB83IUjfyMsQqW27ngUsEeByoSiYrOTpdBfp4vveP JCxzGEDsPE8LdszMoVzrDx1mPIXI/fcDMMhMxmxZhAMKbkGCtJI8UZVRM0IbYDU/cCBq W3CyxwPa1n/TTkgwCkhoYD212dFQthQPPrAnvvT6MqdbhGKJnCdaqGm1YAx/DCqIba5v QPmhakTJnTcGxZUDXo/EXXu2mr7DoyWOix7n0WAVrAJFrB14Wkbj6b1D7Yjgs4Ng7nrC XHag== X-Gm-Message-State: ANhLgQ3wFk7sLDKCibxmu+2sETq4ISiZ2g6yjYSVihvOd0AY97Ro+wES H3UGxsgaO1rFJeoyCZDB9smh8cEKkkYxgQ== X-Google-Smtp-Source: ADFU+vuar8lwv6spxGxa9C1oKTSQWIBPXhMEOIxL8HB5UhgGfQ044Xi9MbalxkSAl54CX/wz9+8wvw== X-Received: by 2002:a05:6000:106:: with SMTP id o6mr10960969wrx.120.1583425869156; Thu, 05 Mar 2020 08:31:09 -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.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 08:31:08 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 06/37] hw/arm/gumstix: Simplify since the machines are little-endian only Date: Thu, 5 Mar 2020 16:30:29 +0000 Message-Id: <20200305163100.22912-7-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: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé As the Connex and Verdex machines only boot in little-endian, we can simplify the code. Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell --- hw/arm/gumstix.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/hw/arm/gumstix.c b/hw/arm/gumstix.c index f26a0e8010f..3a4bc332c42 100644 --- a/hw/arm/gumstix.c +++ b/hw/arm/gumstix.c @@ -51,7 +51,6 @@ static void connex_init(MachineState *machine) { PXA2xxState *cpu; DriveInfo *dinfo; - int be; MemoryRegion *address_space_mem = get_system_memory(); uint32_t connex_rom = 0x01000000; @@ -66,14 +65,9 @@ static void connex_init(MachineState *machine) exit(1); } -#ifdef TARGET_WORDS_BIGENDIAN - be = 1; -#else - be = 0; -#endif if (!pflash_cfi01_register(0x00000000, "connext.rom", connex_rom, dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, - sector_len, 2, 0, 0, 0, 0, be)) { + sector_len, 2, 0, 0, 0, 0, 0)) { error_report("Error registering flash memory"); exit(1); } @@ -87,7 +81,6 @@ static void verdex_init(MachineState *machine) { PXA2xxState *cpu; DriveInfo *dinfo; - int be; MemoryRegion *address_space_mem = get_system_memory(); uint32_t verdex_rom = 0x02000000; @@ -102,14 +95,9 @@ static void verdex_init(MachineState *machine) exit(1); } -#ifdef TARGET_WORDS_BIGENDIAN - be = 1; -#else - be = 0; -#endif if (!pflash_cfi01_register(0x00000000, "verdex.rom", verdex_rom, dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, - sector_len, 2, 0, 0, 0, 0, be)) { + sector_len, 2, 0, 0, 0, 0, 0)) { error_report("Error registering flash memory"); exit(1); } -- 2.20.1