From nobody Wed Nov 27 10:01:09 2024 Delivered-To: importer@patchew.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=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1699279887; cv=none; d=zohomail.com; s=zohoarc; b=k/p86pl9XveSeHLXdQkAIpFHtZ+87nrqqNeWHnzu61TMKKuhkbIQdB2HZ0CVkSoUwMyeAa7CFle4JSXqTJ3pwCmXwrvb5p4YnOK3yKEE3gm6Srg4dLU6YhwLuvATaIRyucWQRIlz9v9RPck5vqskog9qeF0HeUKYzsKe+ebDZdg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1699279887; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=uRnDSQzaHmLdQycfNSQLpH4vuNFJ/S13XFN9b+1P9BI=; b=eubD3kZ3ilWmcx/b2Wp9u3ZdY1pJeo4RTXKD/wIuGvBOiANrjyny6HnLAIUnWGpVehdSvEqgAtpK8xqNz4iLeCpkgcMf3Y7vH+uecctaW3S9FS31MlXNqLvwTV0Qe4gbIv01lINxcf29Z5+6gReSXZIw3RBfJs+X1OqL/ohYCT0= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1699279887950994.0145886330819; Mon, 6 Nov 2023 06:11:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r00JD-0004kF-Rt; Mon, 06 Nov 2023 09:10:31 -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 1qzxZj-0002TG-Pz for qemu-devel@nongnu.org; Mon, 06 Nov 2023 06:15:29 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzxZi-00073f-2S for qemu-devel@nongnu.org; Mon, 06 Nov 2023 06:15:23 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1cc5916d578so39391605ad.2 for ; Mon, 06 Nov 2023 03:15:20 -0800 (PST) Received: from localhost.localdomain (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id iy9-20020a170903130900b001c60a2b5c61sm5691375plb.134.2023.11.06.03.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 03:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1699269320; x=1699874120; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uRnDSQzaHmLdQycfNSQLpH4vuNFJ/S13XFN9b+1P9BI=; b=BONnBvTNiojEDHowACad/Fykj3NrMOgv8HQMUH+ntgTycE2oOer1ghkep+5tBrZDSe tKh75kTZOdWu/AG1d+XV84gFy2GXgrnTxkAIf2YRxiuPVhennUabZbIY1L9gwkcSwM3W C3HumBOgQ4w87N7beneIoJxkk5kv/fDZImaPKHvd4P1mjOAvkdMtzLLK+q0d/5w2SWQc pV2KU5qg/EOsBJzDY7Uu/mCVQjI3sa2qqdJu+PhFdkgMX0osMGEjQvnkhUjRcijtUG0J 4qkklOSZeEoA0ZkUeVE5sQ8vEm1vkKxqaab0NbPQGvDeXg093BY3Z6AQVvHbwn/6DIoT dJTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699269320; x=1699874120; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uRnDSQzaHmLdQycfNSQLpH4vuNFJ/S13XFN9b+1P9BI=; b=i42t+URdOo6cRE8RbOKQJCS0va2WD/bPoT2rsswgpD/xCT818C+ClY2LLk/vVGMRxL i0ySXMu6XbkdkwrFCjFqWhbCRQ0OnKCAdWjMVIUZVR6YjUdaij/GJd/y/KBPgxIeViKf qwPfVsOXfs11lViaxaLQfmi1L1of9WEpqiUNp+5192tFobD+aPxZ4t3Boe35hgEA2X6X z9Ma2Kgkhpxp0OWOhYjghBK8HcqALxPGcfB5LxWPELPsRyXJ/WUj02f4fNRHLxfy0TKF 6Zy4Upxi2H3QPM3ERhk8yS7/yxEehEnUAdynMUsK5i4vEmZS/C9rBbZN0JJMhLO9mXr0 Nxrw== X-Gm-Message-State: AOJu0YzxeeOgcj2ARwhgcNQd6U2pyDmomMrTj6WsBr3KCKPMcpip4c29 LVSztU8jwY6sS4bIaidmfaoC7w== X-Google-Smtp-Source: AGHT+IFW3lNze4IS2+Q4FkgA1UKTZf6IwUYos7vmeewsbBL0Zg4ZmQcJYAHkXs3bx8Opo3kVhrkkHw== X-Received: by 2002:a17:903:78d:b0:1cc:520a:54c with SMTP id kn13-20020a170903078d00b001cc520a054cmr16745854plb.56.1699269319608; Mon, 06 Nov 2023 03:15:19 -0800 (PST) From: Jerry Zhang Jian To: alistair.francis@wdc.com, palmer@dabbelt.com, frank.chang@sifive.com, qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Jerry Zhang Jian Subject: [PATCH] target/riscv: don't enable Zfa by default Date: Mon, 6 Nov 2023 19:14:40 +0800 Message-ID: <20231106111440.59995-1-jerry.zhangjian@sifive.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=jerry.zhangjian@sifive.com; helo=mail-pl1-x62b.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-Mailman-Approved-At: Mon, 06 Nov 2023 09:10:30 -0500 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @sifive.com) X-ZM-MESSAGEID: 1699279896931100001 Content-Type: text/plain; charset="utf-8" - Zfa requires F, we should not assume all CPUs have F extension support. Signed-off-by: Jerry Zhang Jian --- 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 ac4a6c7eec..c9f11509c8 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -1247,7 +1247,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_extensions[] = =3D { MULTI_EXT_CFG_BOOL("zihintntl", ext_zihintntl, true), MULTI_EXT_CFG_BOOL("zihintpause", ext_zihintpause, true), MULTI_EXT_CFG_BOOL("zawrs", ext_zawrs, true), - MULTI_EXT_CFG_BOOL("zfa", ext_zfa, true), + MULTI_EXT_CFG_BOOL("zfa", ext_zfa, false), MULTI_EXT_CFG_BOOL("zfh", ext_zfh, false), MULTI_EXT_CFG_BOOL("zfhmin", ext_zfhmin, false), MULTI_EXT_CFG_BOOL("zve32f", ext_zve32f, false), --=20 2.42.0