From nobody Thu Nov 13 20:40:02 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1582551813; cv=none; d=zohomail.com; s=zohoarc; b=SSKDKhVpYbbJ1rX8nwr9FKs4boKSLpPuYSpe4FD04eFV08m8Y9hTmgwZh9Mzfyyto6IFj71z0ycYmikcy1WSqfagHR7vrf7WT8IjKMi8sgv9eW1AtUG27tmBqHhtFe4K6OoQxohb110Hi88SfylSzufzxNbgYpO/ws4BcQ8ZZmA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582551813; h=Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=0/dsNfBErGQgUb5GnJfxH0GJkQTyrJ4NoW7A4yewg6g=; b=EIjl2RG6jMk9YKmBsCXm4kadO9Kaofa2KGsbRhq7L2pUyz4MCMk6GbYWFDJDZjmrplV0iNJI1LtNp+yC9hSrVhKc9bsthVwcSbREdZB0arsptRN6UiHAK1ufpQDrak6iQS01rvighCoVAKmsC679Kpexy6Yo78/bRqkIUaeoWqI= 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 1582551813546837.896074441293; Mon, 24 Feb 2020 05:43:33 -0800 (PST) Received: from localhost ([::1]:36601 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6E1E-00072B-Hq for importer@patchew.org; Mon, 24 Feb 2020 08:43:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42454) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6DyS-0002nM-DK for qemu-devel@nongnu.org; Mon, 24 Feb 2020 08:40:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6DyP-0004TZ-JI for qemu-devel@nongnu.org; Mon, 24 Feb 2020 08:40:40 -0500 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]:33623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6DyP-0004TG-Do; Mon, 24 Feb 2020 08:40:37 -0500 Received: by mail-pj1-x1042.google.com with SMTP id m7so4071350pjs.0; Mon, 24 Feb 2020 05:40:37 -0800 (PST) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id p4sm12912258pgh.14.2020.02.24.05.40.35 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 24 Feb 2020 05:40:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=0/dsNfBErGQgUb5GnJfxH0GJkQTyrJ4NoW7A4yewg6g=; b=ckWq3KdDKS2yx5758nFHTBj5kRJjfm0RIHTxLyNZgtZ7br2uq7KE6fqMe78zMvPDJF kJIf7KZbqp9W7ntE0PxgQ6ELC2UyxnXaa8c/y2Jln/7RDabNkUfY1Ejq+iZo7ltoUifE DUiBtl07Uy/M54xhQRPGzWTuV/1r15vEujk6cjLLwel4jAxk/DnDBP4Jf8DxRaJvv2Sh IcZNnmBW6DneQLOGOlEgKR1b9yOnPD8VUbnxoTMJwBSKUOqea5zRmdH0p8K5Ca5iTRkm xmj9y4EhUoGRX5NxszrAkn0PwAFnG6P5rl5DS6L1gcffqKtr7RW+pbFO0h2BLaD+Ux9d kfqQ== 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; bh=0/dsNfBErGQgUb5GnJfxH0GJkQTyrJ4NoW7A4yewg6g=; b=eiQEwmpo2fbpTbkcac05v+fxOIYjruG3zS3UtXJghXLMLrul60qKSj0Z8K8XjVuESx 7m0ptWfeb751YNOX3d+9mG70I3xIXD5vl2AuBD7j4Pt83ptJsoIpNhiDhgxiNl25bo0b gxMHxkNszBi0b7644qUbKf+E/1K64ml8S2EFXaf0y5aB7ZhztLV5C0jTNbl7l+yeTnQW wo/vXJJ0ouOLOoq//E0teZUiAmRHj1WxlanG+lKARVTa3ys39xqZQFMhNJ93HsS0w/Sv vz1TVfDyoBxIuELe4HN6L2dke0Bf0h4q4GSv5elbQbGXX3HYoyCPf3tDB/jRi4Nig8aN r7Ng== X-Gm-Message-State: APjAAAWNi5JRpLAeFKqgkpAeTxgGAZUMSUfOjmOiIQHMRzo3sgTl2kn6 cwGZFg7ydvxLOWLpN0Cn8Uo= X-Google-Smtp-Source: APXvYqxEz9iZy1CGRvZjO0zjmzU93w4crU8QeJlQEarnJqlV8qVCZQyA4z15ykynvnZ2aV9ye1T9mg== X-Received: by 2002:a17:902:b714:: with SMTP id d20mr48438255pls.272.1582551636616; Mon, 24 Feb 2020 05:40:36 -0800 (PST) From: Bin Meng To: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis , Bastian Koppelmann , Palmer Dabbelt , Sagar Karandikar , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v2 3/4] riscv: sifive_u: Update BIOS_FILENAME for 32-bit Date: Mon, 24 Feb 2020 05:39:43 -0800 Message-Id: <1582551584-20093-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1582551584-20093-1-git-send-email-bmeng.cn@gmail.com> References: <1582551584-20093-1-git-send-email-bmeng.cn@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1042 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 @gmail.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Update BIOS_FILENAME to consider 32-bit bios image file name. Tested booting Linux v5.5 32-bit image (built from rv32_defconfig plus CONFIG_SOC_SIFIVE) with the default 32-bit bios image. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis --- Changes in v2: None hw/riscv/sifive_u.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index ca561d3..371133e 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -57,7 +57,11 @@ =20 #include =20 -#define BIOS_FILENAME "opensbi-riscv64-sifive_u-fw_jump.bin" +#if defined(TARGET_RISCV32) +# define BIOS_FILENAME "opensbi-riscv32-sifive_u-fw_jump.bin" +#else +# define BIOS_FILENAME "opensbi-riscv64-sifive_u-fw_jump.bin" +#endif =20 static const struct MemmapEntry { hwaddr base; --=20 2.7.4