From nobody Thu Nov 14 06:45:29 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=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1704796293; cv=none; d=zohomail.com; s=zohoarc; b=LSi8UqqHuOBCYFxjtdtbvOk2+vYhIswglP6quKbkhoVVqN6tak+tsc/Tg6MPI00CCQWfLZUAzKJd8DP0E68mBnPb4guqlVaLi031UjddBgnRuiLQnh8ut42uUqBBPeh5hXTOv1vJXze1/h5t8YTSsVOhg+z5F8tvfkJ5TtqJakU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704796293; 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:Message-Id:Reply-To:To; bh=NcKqltazoAkqvzOJiiPmtT7bA6touqBltSEmtcyG6jU=; b=kqz/fyzXwickvppGnBL7uqEhNqh6tQ/XFV9I8pKwg811iDd2z/9FOuWfqRPQ2t09egBzyDPmSp+yx/eU0vSs5Yak/12S7fa/BPal4W/0eyCM/ulVoHZ+ITVBdAjX9tGSWHVRkugayji4jucef4oA5W9YIpQ3XFla87nI2OugDDI= 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) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170479629313473.19314425524647; Tue, 9 Jan 2024 02:31:33 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rN9My-00066O-ID; Tue, 09 Jan 2024 05:30:04 -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 1rN9Mv-00064q-LU; Tue, 09 Jan 2024 05:30:01 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rN9Mu-00060b-13; Tue, 09 Jan 2024 05:30:01 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a28da6285c1so492059866b.0; Tue, 09 Jan 2024 02:29:59 -0800 (PST) Received: from freya.midgard (broadband-188-255-126-251.ip.moscow.rt.ru. [188.255.126.251]) by smtp.gmail.com with ESMTPSA id d24-20020a170906175800b00a26ac037ff3sm869643eje.132.2024.01.09.02.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 02:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704796198; x=1705400998; 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=NcKqltazoAkqvzOJiiPmtT7bA6touqBltSEmtcyG6jU=; b=G6d+P4LUdZx/ahg1RsDh3zofnXMa/O2rBNSU/sftqY3KyaHlyM2XB/YRO4tvQdJMzK Mwt7d3G2NrzYynZHqpXDOgexH5RcHp3ewhsrmgoVBILRrrnPvqB+Tlovx7jt7BysmNlR lT3LRfM6WNc5kasbnDHXL2Mb84p/Unr8T6utXUXImBdftuFP3cXiMtImbItTYSILra+V 1sAq1R3nqox0R/2iVdP1tMnBvH8bedznctEb1+AqyWL2ZDN+d2Mjb1A9m+NOewbF6RhN Lz7WghLGW+43IuNmf84EZlY64wBqmg5vTM4lGMDW3Z+9jh0GgPTLdQ1vSY1bcyBgNpRr YJdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704796198; x=1705400998; 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=NcKqltazoAkqvzOJiiPmtT7bA6touqBltSEmtcyG6jU=; b=wOKtX/3JSAg95bTmIs2cdNGfjEfojKoSrEME0GoUL2hTPQY0/3nH//m8gkXn9ztQnX ZBijRu/jDzCidlx4G+MjUlDiN0A5+7SyePTmSA04quXo/x7bh16iMo0slAwMsgExvwrY dcNXENTZLlzSXNr54czJwFHKz2hfWEHReTSbe6LzDduIpk7iHlUS6qkCu1Oks//qtnbW UyBterzTF7gHekdHfpNC5WbHLUdGan1qz2vp1ODm7eeNGWCCamwttQOAec8PYwabbrLD 8Ancf6rO48s66qE2xQpZw7GcRZXA0UUHYNuOCsPUXGCPikOya90uN/uqbDn2OpA9t/R6 W6OQ== X-Gm-Message-State: AOJu0Yw5AmJxo/OXigr382PlETyfv34syAmc50seo6D2HpZBY3y2pIj8 qbkqjy+vXg3atBEIb5+gO1U= X-Google-Smtp-Source: AGHT+IHWtO91C3+U9OMDR/p/PbefDToETLtAgoumNWrGmS0uYTIzndf0C/jhBKZRaKXKBgPBm8l8Dg== X-Received: by 2002:a17:907:1b20:b0:a2b:2de2:8dd4 with SMTP id mp32-20020a1709071b2000b00a2b2de28dd4mr733526ejc.15.1704796198399; Tue, 09 Jan 2024 02:29:58 -0800 (PST) From: Alexey Baturo X-Google-Original-From: Alexey Baturo To: Cc: baturo.alexey@gmail.com, richard.henderson@linaro.org, zhiwei_liu@linux.alibaba.com, palmer@dabbelt.com, Alistair.Francis@wdc.com, sagark@eecs.berkeley.edu, kbastian@mail.uni-paderborn.de, qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v4 6/6] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension Date: Tue, 9 Jan 2024 10:29:30 +0000 Message-Id: <20240109102930.405323-7-me@deliversmonkey.space> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240109102930.405323-1-me@deliversmonkey.space> References: <20240109102930.405323-1-me@deliversmonkey.space> 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=2a00:1450:4864:20::631; envelope-from=baturo.alexey@gmail.com; helo=mail-ej1-x631.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, FREEMAIL_FROM=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1704796294425100007 Content-Type: text/plain; charset="utf-8" From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index d8de1f1890..44ebd80aba 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -153,6 +153,9 @@ const RISCVIsaExtData isa_edata_arr[] =3D { ISA_EXT_DATA_ENTRY(svinval, PRIV_VERSION_1_12_0, ext_svinval), ISA_EXT_DATA_ENTRY(svnapot, PRIV_VERSION_1_12_0, ext_svnapot), ISA_EXT_DATA_ENTRY(svpbmt, PRIV_VERSION_1_12_0, ext_svpbmt), + ISA_EXT_DATA_ENTRY(ssnpm, PRIV_VERSION_1_12_0, ext_ssnpm), + ISA_EXT_DATA_ENTRY(smnpm, PRIV_VERSION_1_12_0, ext_smnpm), + ISA_EXT_DATA_ENTRY(smmpm, PRIV_VERSION_1_12_0, ext_smmpm), ISA_EXT_DATA_ENTRY(xtheadba, PRIV_VERSION_1_11_0, ext_xtheadba), ISA_EXT_DATA_ENTRY(xtheadbb, PRIV_VERSION_1_11_0, ext_xtheadbb), ISA_EXT_DATA_ENTRY(xtheadbs, PRIV_VERSION_1_11_0, ext_xtheadbs), @@ -1336,6 +1339,11 @@ const RISCVCPUMultiExtConfig riscv_cpu_extensions[] = =3D { =20 MULTI_EXT_CFG_BOOL("zmmul", ext_zmmul, false), =20 + /* Zjpm v0.8 extensions */ + MULTI_EXT_CFG_BOOL("ssnpm", ext_ssnpm, false), + MULTI_EXT_CFG_BOOL("smnpm", ext_smnpm, false), + MULTI_EXT_CFG_BOOL("smmpm", ext_smmpm, false), + MULTI_EXT_CFG_BOOL("zca", ext_zca, false), MULTI_EXT_CFG_BOOL("zcb", ext_zcb, false), MULTI_EXT_CFG_BOOL("zcd", ext_zcd, false), --=20 2.34.1