From nobody Tue Nov 26 06:39:07 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=linux.alibaba.com ARC-Seal: i=1; a=rsa-sha256; t=1709730232; cv=none; d=zohomail.com; s=zohoarc; b=Rxk6x3k5aj7/roMJ7KdgsW7/vo5+9FS/soP+NXpMlYWpHb7Ji6mFpd4rNCuflN82w+c1Cj6XvpWprfZ/nKF0v3b5luI7yRQtvx2d8mPaeatJoKJrDRJ0UVJUfrfzfkBuWk++hOAq/O0MRENNZcmtQGY1N5JFVe/qUUuTNqaU8gs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1709730232; 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=dxArenT2bes2ADR+Tb1jbQotfGOHruOhNtqSb92CP8A=; b=G12jYWt4mldSTWISuXulqEYpVAexFy6Cp/J5EZ7/V9EmrPQZ2kUQagrj/ml/la8HQmZAfVkgxkrzN8xI31PQfR7RvbU2BGaTp/p/LbX6u/2FH24PooF+VK5xPgx0VSBH4zDHUedknIh4wF0ili9LT4PBNi55oz12bHBOVtjMdc8= 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 1709730232828346.41615156764; Wed, 6 Mar 2024 05:03:52 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhqvk-00019c-Fu; Wed, 06 Mar 2024 08:03:32 -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 1rhnZG-0004dB-2u; Wed, 06 Mar 2024 04:28:06 -0500 Received: from out30-119.freemail.mail.aliyun.com ([115.124.30.119]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhnZC-0006OM-34; Wed, 06 Mar 2024 04:28:05 -0500 Received: from localhost.localdomain(mailfrom:eric.huang@linux.alibaba.com fp:SMTPD_---0W1x7LCo_1709716969) by smtp.aliyun-inc.com; Wed, 06 Mar 2024 17:22:51 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1709717278; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=dxArenT2bes2ADR+Tb1jbQotfGOHruOhNtqSb92CP8A=; b=B1UgZL4RniIyh/RDYcm5dVuJOIXc+s9e2hBQM/GRCU85itJkWHQULXomrSO0/OtEaTVoF/7Q6HGqKFpWtsyB0RY9clwU2i89jcPVDjuJtmiwriXKXSRgsHyXSAAw3eU+Kp4jicm0pdYewdcFcDrTLpqrXxAtHyocNOL5GdCDNho= X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R371e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=ay29a033018045192; MF=eric.huang@linux.alibaba.com; NM=1; PH=DS; RN=9; SR=0; TI=SMTPD_---0W1x7LCo_1709716969; From: Huang Tao To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, zhiwei_liu@linux.alibaba.com, dbarboza@ventanamicro.com, liwei1518@gmail.com, bin.meng@windriver.com, alistair.francis@wdc.com, palmer@dabbelt.com, Huang Tao Subject: [PATCH 4/4] target/riscv: Delete the former element agnostic function Date: Wed, 6 Mar 2024 17:20:12 +0800 Message-ID: <20240306092013.21231-5-eric.huang@linux.alibaba.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240306092013.21231-1-eric.huang@linux.alibaba.com> References: <20240306092013.21231-1-eric.huang@linux.alibaba.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=115.124.30.119; envelope-from=eric.huang@linux.alibaba.com; helo=out30-119.freemail.mail.aliyun.com X-Spam_score_int: -174 X-Spam_score: -17.5 X-Spam_bar: ----------------- X-Spam_report: (-17.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 06 Mar 2024 08:03:17 -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 @linux.alibaba.com) X-ZM-MESSAGEID: 1709730234187100003 Content-Type: text/plain; charset="utf-8" Delete vext_set_elems_1s_le. Signed-off-by: Huang Tao --- target/riscv/vector_internals.c | 13 ------------- target/riscv/vector_internals.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/target/riscv/vector_internals.c b/target/riscv/vector_internal= s.c index 0166e81e02..4f24bd8516 100644 --- a/target/riscv/vector_internals.c +++ b/target/riscv/vector_internals.c @@ -73,19 +73,6 @@ void vext_set_elems_1s(void *vd, uint32_t is_agnostic, u= int32_t esz, } #endif =20 -void vext_set_elems_1s_le(void *base, uint32_t is_agnostic, uint32_t cnt, - uint32_t tot) -{ - if (is_agnostic =3D=3D 0) { - /* policy undisturbed */ - return; - } - if (tot - cnt =3D=3D 0) { - return ; - } - memset(base + cnt, -1, tot - cnt); -} - void do_vext_vv(void *vd, void *v0, void *vs1, void *vs2, CPURISCVState *env, uint32_t desc, opivv2_fn *fn, uint32_t esz) diff --git a/target/riscv/vector_internals.h b/target/riscv/vector_internal= s.h index de7d2681e6..45168d4cfc 100644 --- a/target/riscv/vector_internals.h +++ b/target/riscv/vector_internals.h @@ -116,8 +116,6 @@ static inline uint32_t vext_get_total_elems(CPURISCVSta= te *env, uint32_t desc, /* set agnostic elements to 1s */ void vext_set_elems_1s(void *vd, uint32_t is_agnostic, uint32_t esz, uint32_t idx, uint32_t tot); -void vext_set_elems_1s_le(void *base, uint32_t is_agnostic, uint32_t cnt, - uint32_t tot); =20 /* expand macro args before macro */ #define RVVCALL(macro, ...) macro(__VA_ARGS__) --=20 2.41.0