From patchwork Fri Dec 23 18:00:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christoph_M=C3=BCllner?= X-Patchwork-Id: 13081043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 42494C4332F for ; Fri, 23 Dec 2022 18:02:57 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8mLm-0008E7-BR; Fri, 23 Dec 2022 13:00:54 -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 1p8mLY-00084d-8k for qemu-devel@nongnu.org; Fri, 23 Dec 2022 13:00:41 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8mLV-0003O1-V4 for qemu-devel@nongnu.org; Fri, 23 Dec 2022 13:00:40 -0500 Received: by mail-ed1-x531.google.com with SMTP id c17so7969757edj.13 for ; Fri, 23 Dec 2022 10:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; 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=e835tUOTw0674hyF7lfMR5M8ITOwu7+akRPZA19ciiY=; b=DtSHBu2Ybn39qrs6NzoYpNWLRt3KgF1DkDl+j02hDi1SkqY6lBepgnfrtmPkr688Q0 c0AT/znldlSEu+d2Lutu2OsbmAA5sCmsCs1zx8IV/kE5ZM60yVDeC0LwC+ifAtm9+Cb2 hcYNqgDECbctL1uhA4eTASmNSSQ5Bvbaj/fJ9L1JwXAuEZmbP9mE+xy6eFllNmYmkSHl jn1cBy7Z2XCsFbqdiosLXT6OKiiQ+7HIitdnZGE/YtRQEKSbjyp43iYxrlyfE5V9UjUt vrPqXSHqYUYoSkJraBDoPqecYSTAcz1U7bsvCsYh28do4MoXHp9JQcRQ4+ASbbBrS1lg 9V4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=e835tUOTw0674hyF7lfMR5M8ITOwu7+akRPZA19ciiY=; b=lS5X2A0BdE339NKp1FDTFQaz5ve73btimdJcmzxbU6q/BEpcU2XfwP61mMAtAYfIYr 3PTZWs+I34yUN7kpD/bZ+Exu8F1LqC7J4UKlGkbY3NlSAAz1m0+HKIwE7MpxD59a70Ae Y3QK5c7MVCHfzNEnQUmqisp3Tn/p1ZmP/5ntvIO4qUaYwim0GSIUDfhOfxvTJmYBjSv+ 9f7aN8HJpN16/Vu5LJnZvwXZZzxgdXPRAGLo1515HNbHShHwLzpyH2u7qUmht9TFHDtz 7hstKSODRwJDSWNd1mGovYXNokblljTDYWcqTAaBxE3u1B7qgL1TQ4SBfbErtODcHWZK 3NDg== X-Gm-Message-State: AFqh2ko7MzSCohqwrJDgp/AwqPXCgYuHlpbeK5TE5QRDlpoSgusrWZr7 NQ1tDJxKOv1zwVsNspMFlhj9hT0htzjs9Y3L X-Google-Smtp-Source: AMrXdXvlvF4mv7x5MzCJ2tRC5akMD/9L9DWCi6AnP69JkDYz8QUIuxsiCc/LXFqkCPHg3JwyG4SFsA== X-Received: by 2002:aa7:c053:0:b0:482:e3b9:f46e with SMTP id k19-20020aa7c053000000b00482e3b9f46emr579088edo.39.1671818436537; Fri, 23 Dec 2022 10:00:36 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id p14-20020a056402154e00b0047d4685878esm1734937edx.51.2022.12.23.10.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 10:00:36 -0800 (PST) From: Christoph Muellner To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Alistair Francis , Bin Meng , Philipp Tomsich , =?utf-8?q?Heiko_St=C3=BCbner?= , Palmer Dabbelt , Richard Henderson , Nelson Chu , Kito Cheng , Cooper Qu , Lifang Xia , Yunhai Shang , Zhiwei Liu Cc: =?utf-8?q?Christoph_M=C3=BCllner?= Subject: [PATCH v2 12/15] RISC-V: Set minimum priv version for Zfh to 1.11 Date: Fri, 23 Dec 2022 19:00:12 +0100 Message-Id: <20221223180016.2068508-13-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221223180016.2068508-1-christoph.muellner@vrull.eu> References: <20221223180016.2068508-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=christoph.muellner@vrull.eu; helo=mail-ed1-x531.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 autolearn=unavailable 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Christoph Müllner There are no differences for floating point instructions in priv version 1.11 and 1.12. There is also no dependency for Zfh to priv version 1.12. Therefore allow Zfh to be enabled for priv version 1.11. Signed-off-by: Christoph Müllner Acked-by: Alistair Francis --- target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index bb310755b1..a38127365e 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -76,7 +76,7 @@ static const struct isa_ext_data isa_edata_arr[] = { ISA_EXT_DATA_ENTRY(zicsr, true, PRIV_VERSION_1_10_0, ext_icsr), ISA_EXT_DATA_ENTRY(zifencei, true, PRIV_VERSION_1_10_0, ext_ifencei), ISA_EXT_DATA_ENTRY(zihintpause, true, PRIV_VERSION_1_10_0, ext_zihintpause), - ISA_EXT_DATA_ENTRY(zfh, true, PRIV_VERSION_1_12_0, ext_zfh), + ISA_EXT_DATA_ENTRY(zfh, true, PRIV_VERSION_1_11_0, ext_zfh), ISA_EXT_DATA_ENTRY(zfhmin, true, PRIV_VERSION_1_12_0, ext_zfhmin), ISA_EXT_DATA_ENTRY(zfinx, true, PRIV_VERSION_1_12_0, ext_zfinx), ISA_EXT_DATA_ENTRY(zdinx, true, PRIV_VERSION_1_12_0, ext_zdinx),