From patchwork Mon Jan 22 14:55:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 764651 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp1142264wrx; Mon, 22 Jan 2024 07:00:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsmDjZzzpt688/0qOQ24SjvKESsfhfK4LED3dkjKYQsp7LpJvR/rUKjN8zIdMIBSwtmy3O X-Received: by 2002:a05:622a:1883:b0:42a:47f4:ebd6 with SMTP id v3-20020a05622a188300b0042a47f4ebd6mr438506qtc.66.1705935655684; Mon, 22 Jan 2024 07:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705935655; cv=none; d=google.com; s=arc-20160816; b=fnVUrpo5C1Y1ron9OePH2DNzQaEUnmf5uL2gRdwnuRAvCwhjXM+aQbGKsCtBjzseTC qZ44uwAP/aN0sNDZkaKnFX66LgjH/QXp0LOxTgYHiSKjfhOmnZX22Oait4FqFvmFzmr0 g4rWWnAP5CqsrKmkEV5064bU9BZJRj4EuOAWGW4JKiBYH+NWNTBWG8hhPm/4JeD95RJh wwXarNhyNBRmiQ7ycxgLlvjaaeEmDfR4CvqRcNFc4H3hjkZZ5O2g8DfwIGaJMFHWVflZ HIIfDFyvxrqupCJZ+ze4Q3b6C/cUkPC5O1v5Oh/XNbag2TCbCeyMC3rxZdwNWqatEBB0 gOfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BZ622lHwVBog+czBBq32/xN+pBjDFyqMlLTTXp/L7FE=; fh=mGQIuaf4A7RZOxcauYqguCwKMqzWt70hd4nAkQm0M6A=; b=ivsxt6LSC8fMrXhhjoPS++Fs8Z//6kJjviG1dg7LZDTLex2y+kQWTQxVxmf5fwYskq 1GyoOzlRv/W6sbQ00e6qLXb4Or8lCQ/rSwQ1+7pb8MFn1ys7vRGhIETFMzTv5TIFakn/ Tv92VqHYP8Swz9hjswMYMVqDlEIfLAIXatZCrlgNL6k2y0XU0gkeNyRIT01S6J20fKRG sLwVvK3B2try6BvyUqHd3p1RQSQQ4v7i7umrKlKVPQceCNUS6BHMyobV2NpZkOM7zNSL RLzWsvOZHRSU8nnWwgA8r/yODuTsFt8axK8zJf77I8d7hLaawwRftgsvg9jedKTGDRrF 0qcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DnCqPPZW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z17-20020a05622a029100b0042a329b1d69si4827829qtw.376.2024.01.22.07.00.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2024 07:00:54 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DnCqPPZW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRviq-00071g-PJ; Mon, 22 Jan 2024 09:56:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRvin-0006yf-Ha for qemu-devel@nongnu.org; Mon, 22 Jan 2024 09:56:21 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRvih-0008Hy-Tx for qemu-devel@nongnu.org; Mon, 22 Jan 2024 09:56:21 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-338aca547d9so2559818f8f.0 for ; Mon, 22 Jan 2024 06:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705935374; x=1706540174; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BZ622lHwVBog+czBBq32/xN+pBjDFyqMlLTTXp/L7FE=; b=DnCqPPZWgokuX1sQEZwl8sBjfzwUTjlJI7fVBIAnCC9CNdNGc0JjGBa7iitszzXv9P hHqRPylUmNBIetlLkoZbE6AOA9qztSL8Hm59MO2egmKB22z6NhVLPWygqcQ0l7UbR0an 1AwMhfNf3SJuPQW8vIQ+0UcmEVzzsTgi3UIFmF7wBE42vjvy8GdB521k1lnWthvQ2nxw 9zHPGaGQiMutEl1TzroSp3et0lPIegeShKSv1sUII17abpS19yxNBFxQJD4iGRxiP97z ljyVzVQeWPhgvz1uK8Ww3Z+wFx+jOBT5Gkozb/Lz9qZqElZoiZ3pUKpPrB15k7WsQyGn 74sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705935374; x=1706540174; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BZ622lHwVBog+czBBq32/xN+pBjDFyqMlLTTXp/L7FE=; b=EftgcIkliM7BGBZtU4lbBJWnkrjbp9dqLLqit03GD9t4j+/5+zooJHr1VzXwaY203t oB1mq8tUUjf/wvX/aLy434BoyUo+hBa93oXmeRPsam/fFmYp6sUJQSZYFr0I3aATJ9Gm lJ+2M4rdQPoXhhHyw4tz2nxgbKZFc8OfW12Edspua+RdMvAOoR6imF8J8mueRdxgG1NN u6RNuSf9oJffWxEztO9PHWphNFAU9ASdhFpPnfyLmepBuYVEoS1VQh9O1qN/KiRz+rwq YitrFhbnUwlexEjaEo3OmfiYu+F2cPgOvwgyJ0NR7Kl4hnd5CDszaXDFQNw2NFvHnBbu PU8Q== X-Gm-Message-State: AOJu0YxrRydU4nRIbEA14pg3d2iM9t8FZaCUcZDf/mSB+poIzjb6ACn3 ol00ApZ1C5lPYZaGWbO1DLbR0nCYEn1GOO6ZEjAC76CRq20JcwTO/S7S5cn8mlU= X-Received: by 2002:a05:6000:dcf:b0:337:b636:993a with SMTP id dw15-20020a0560000dcf00b00337b636993amr1179443wrb.185.1705935374305; Mon, 22 Jan 2024 06:56:14 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n17-20020a5d67d1000000b003392f229b60sm4368629wrw.40.2024.01.22.06.56.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 06:56:11 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id DBEA75F8F5; Mon, 22 Jan 2024 14:56:10 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , "Edgar E. Iglesias" , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= , Michael Rolnik , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Laurent Vivier , kvm@vger.kernel.org, Yoshinori Sato , Pierrick Bouvier , Palmer Dabbelt , Liu Zhiwei , Laurent Vivier , Yanan Wang , qemu-ppc@nongnu.org, Weiwei Li , qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?C=C3=A9dri?= =?utf-8?q?c_Le_Goater?= , Peter Maydell , Alexandre Iooss , John Snow , Mahmoud Mandour , Wainer dos Santos Moschetta , Richard Henderson , Ilya Leoshkevich , Alistair Francis , David Woodhouse , Cleber Rosa , Beraldo Leal , Bin Meng , Nicholas Piggin , Aurelien Jarno , Daniel Henrique Barboza , Daniel Henrique Barboza , Thomas Huth , David Hildenbrand , qemu-riscv@nongnu.org, qemu-arm@nongnu.org, Paolo Bonzini , Song Gao , Eduardo Habkost , Brian Cain , Paul Durrant , Akihiko Odaki Subject: [PATCH v3 01/21] hw/riscv: Use misa_mxl instead of misa_mxl_max Date: Mon, 22 Jan 2024 14:55:50 +0000 Message-Id: <20240122145610.413836-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122145610.413836-1-alex.bennee@linaro.org> References: <20240122145610.413836-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Akihiko Odaki The effective MXL value matters when booting. Signed-off-by: Akihiko Odaki Message-Id: <20240103173349.398526-23-alex.bennee@linaro.org> Message-Id: <20231213-riscv-v7-1-a760156a337f@daynix.com> Signed-off-by: Alex Bennée Reviewed-by: Alistair Francis --- hw/riscv/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/boot.c b/hw/riscv/boot.c index 0ffca05189f..bc67c0bd189 100644 --- a/hw/riscv/boot.c +++ b/hw/riscv/boot.c @@ -36,7 +36,7 @@ bool riscv_is_32bit(RISCVHartArrayState *harts) { - return harts->harts[0].env.misa_mxl_max == MXL_RV32; + return harts->harts[0].env.misa_mxl == MXL_RV32; } /*