From nobody Sat Nov 23 19:20:00 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 ARC-Seal: i=1; a=rsa-sha256; t=1731518429; cv=none; d=zohomail.com; s=zohoarc; b=kHHtwK30aMONoKfiUDYGj4IVs2rR8qxruBoNKkiDgAHLFzLfNFjo5n/AcpmEdxpjWdVeeeWFKd12Zz6OAtf2QFBmEljjszr7P9vMtTl+fF2cl8464uthjZklwSQe4nWswMaexIxgcWBuzZIVdJ35evQOrBuOVO5IEzz+ju5MygE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731518429; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LoLy9V+Tq0tnbCkjsd2u8voyf6dYjq7HZXIKxiU3iJw=; b=ZAolbA+KOLe+hYagc3FUSDMYywpcSdfFDZftSkxw96RsIap+H2Sz2BTOV/OeRCMwiMDkWL9P3YdsiQft5iiaxPKqjqKXXJfsgT7I/5jOnBH1b/7CDixkKyTdNzz7036EQP96wRLIjzpxcb7eAVPuQlDAGsxg7Vq0ZCXqW0m81SQ= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731518429157294.5480023291217; Wed, 13 Nov 2024 09:20:29 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBH0o-0000Hn-1i; Wed, 13 Nov 2024 12:18:38 -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 1tBH0b-0000Cd-HC for qemu-devel@nongnu.org; Wed, 13 Nov 2024 12:18:27 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBH0a-0003mN-2N for qemu-devel@nongnu.org; Wed, 13 Nov 2024 12:18:25 -0500 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-71e681bc315so785640b3a.0 for ; Wed, 13 Nov 2024 09:18:23 -0800 (PST) Received: from grind.. ([187.101.65.72]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724078a9063sm13392889b3a.75.2024.11.13.09.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 09:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1731518302; x=1732123102; 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=LoLy9V+Tq0tnbCkjsd2u8voyf6dYjq7HZXIKxiU3iJw=; b=HD4zDiuORj/FkrBGSJWMWawRmJmLULCZqaVhUpwzozDVYToWjr3kHvi0MXsgxMhDMo ksaCw9Ey+5UdxIhSEMobnjeSpOaW8NvZpZtj6z9oDpVbMzRXhEL83UP99Tqs8kftqAX0 uUkGDJlnBAWF8nQd9ZlXAEOMW8h8/+xRXfK+aBNZtSrdwkKPKgPj2kSQSOB3FCtEoOgR qU2WTOi6ROW4TtTjloTQeRj/axZwpkh4c7OVGHCf1Vh4sIxYAYxjLi0eAF61N1ZgatnE V624Q0WjXQ8XFpVzDPhJ5CFePfxwSoNS4xXhHMTNgy5Vj6tcO/VO22Q0d1SL9EMR1ty3 Ps2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731518302; x=1732123102; 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=LoLy9V+Tq0tnbCkjsd2u8voyf6dYjq7HZXIKxiU3iJw=; b=CV9LnA8Xd4r20tKD9ELDMiYhB0OJepDIVwZ5C8EEr/OepBJzZkKSuHts2WrcF+mZax /jMcXS2Z2tYC7hbLz40IAr7W5LbajqfJr22gVGLj2AuxBOMrxmhDHYE8XgFPZxJBR9PF jWfTDsyhIqlIfjBSzXY1PP2GsZtmrJWIoB5CYRNoa5boOE28rpiOvxo8UDFAy3vnC1Hf /7JYpoy6oKGPJIoHtrWSn+HRbI71e6PnDy5oh3Fj+RCYiZAHHIgqLsskARmb6kFg533N ELjsWgLO4cOkpoUnBTgkrf9B0PwdnAkW/iSf9g5sC0+yNllYn7OwiomdODInynTUUesT 0QTQ== X-Gm-Message-State: AOJu0YxrdYOYmCoEbqicCuRjXd5JA8NJPfYGT8DJV838E1mrFfEEWpyy /z2yhDIYQMO7o+vUFQS0dGdS6heQrkKeyiDBhUVthQ5jKLBEFdX9akzYkFvVCWje5oJK1HvpzJs S X-Google-Smtp-Source: AGHT+IHJ9NC6KYJGWIvBLOHzPYaeuYNzFbU7byjzc6s9fsnw2f3c2yFYQZUb7BuXfb5soFNoHN098A== X-Received: by 2002:a05:6a00:3d0c:b0:71e:71ba:9056 with SMTP id d2e1a72fcca58-724667936c7mr149528b3a.10.1731518301880; Wed, 13 Nov 2024 09:18:21 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, bmeng@tinylab.org, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com, Daniel Henrique Barboza Subject: [PATCH for-10.0 6/9] target/riscv: add shvstvecd Date: Wed, 13 Nov 2024 14:17:52 -0300 Message-ID: <20241113171755.978109-7-dbarboza@ventanamicro.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241113171755.978109-1-dbarboza@ventanamicro.com> References: <20241113171755.978109-1-dbarboza@ventanamicro.com> 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::432; envelope-from=dbarboza@ventanamicro.com; helo=mail-pf1-x432.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ventanamicro.com) X-ZM-MESSAGEID: 1731518431180116600 Content-Type: text/plain; charset="utf-8" shvstvecd is defined in RVA22 as: "vstvec.MODE must be capable of holding the value 0 (Direct). When vstvec.MODE=3DDirect, vstvec.BASE must be capable of holding any valid four-byte-aligned address." This is always true for TCG so let's claim support for it. Signed-off-by: Daniel Henrique Barboza --- target/riscv/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 7b54c50794..ae5676976b 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186,6 +186,7 @@ const RISCVIsaExtData isa_edata_arr[] =3D { ISA_EXT_DATA_ENTRY(shcounterenw, PRIV_VERSION_1_12_0, has_priv_1_12), ISA_EXT_DATA_ENTRY(shtvala, PRIV_VERSION_1_12_0, has_priv_1_12), ISA_EXT_DATA_ENTRY(shvstvala, PRIV_VERSION_1_12_0, has_priv_1_12), + ISA_EXT_DATA_ENTRY(shvstvecd, PRIV_VERSION_1_12_0, has_priv_1_12), ISA_EXT_DATA_ENTRY(smaia, PRIV_VERSION_1_12_0, ext_smaia), ISA_EXT_DATA_ENTRY(smcntrpmf, PRIV_VERSION_1_12_0, ext_smcntrpmf), ISA_EXT_DATA_ENTRY(smepmp, PRIV_VERSION_1_12_0, ext_smepmp), --=20 2.47.0