From nobody Wed Nov 27 04:55:59 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=1702246157; cv=none; d=zohomail.com; s=zohoarc; b=Wf/ccb7EZWNuUiJR0YCUg+hCwH11sBktQrA3pdfqQd063XWcnnF4Komenmjyr3mXN8T6kbgVfItv/8IqjJw0J4tSsXwZUiGewnYHaI9YOaqLU7Dmp//fUx8EPkLm40pHH+y9ko4kZ6CWjCofHsje4vDgmC+cZWUGcQyJmbv1ZBU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702246157; h=Content-Type: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=39JkYKmHEUj1cEHARlsviQR/Zp7Cbb9+mfTbnGpZOyM=; b=TEEFaDqNBD4U0R/4TPSW1sDr+7n1JJIPXe6P4feSDrrZvGjnNYsmETk+3LdYlU+zgD8b/QB1l00QJQ+9qVoaPp1yF09XY7EQ3R1EhW9rVJC5LSCQrPfyQRD2bG0cH9XhMa4biPE9nVzH7BOjPiJIYsUZ0nxURwFGLWPatlaeB3U= 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 1702246157082566.2597074143847; Sun, 10 Dec 2023 14:09:17 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCRxV-0004yg-2y; Sun, 10 Dec 2023 17:07:33 -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 1rCRxT-0004y5-De for qemu-devel@nongnu.org; Sun, 10 Dec 2023 17:07:31 -0500 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCRxR-0004Zl-Sp for qemu-devel@nongnu.org; Sun, 10 Dec 2023 17:07:31 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-59064bca27dso2284545eaf.0 for ; Sun, 10 Dec 2023 14:07:29 -0800 (PST) Received: from taylor-ubuntu.austin.rr.com (068-203-008-061.res.spectrum.com. [68.203.8.61]) by smtp.gmail.com with ESMTPSA id q23-20020a4a6c17000000b0058e200a9065sm1588173ooc.29.2023.12.10.14.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 14:07:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702246048; x=1702850848; 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=39JkYKmHEUj1cEHARlsviQR/Zp7Cbb9+mfTbnGpZOyM=; b=ZxIsRiUtYmwBTUOrqDgeq2bwgV/UfPN5FSqQjnGkm9dtgyH3lJSAA+vFUGpacJTJHY oYV1uhukWDZDorZVjg0+bGK7/EkuKT30Fd5JEChVGTXBgsT+lxkefE4Ie3Mj5Cgu3Zcd RdoXeDuJtK4BIQ8GyWL/PJjDCT1HsHtZ55FCuWx0q6pCux8m0kqLeML3/zLFqZ+gVgbF E0FbpBI25GidiUnA/zSOgxmv4xGZJEo9On/sLmEVvkgX5pnNdZkxmCqdQNEPBc5FRjpe B2NKJXAeSILdZ+2cGJIp0Nd6ME+x8j62Wxna0T5viylGaRgexMygHKAg8AWE1pLTdL45 VXYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702246048; x=1702850848; 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=39JkYKmHEUj1cEHARlsviQR/Zp7Cbb9+mfTbnGpZOyM=; b=n/YN91Zq9SdJO5UZLUD145Ln4jAjGMHxGJeLVfXaXGMnKRl14rRGqqxrevcmIRGDTp OXUXOS05gbI4veeuFiGfs70CE/UjKZL2q5M347AZIoF5G+Hf+j7Yea6pbyXL4xhZxKWl cDm5rWCNRZTjsxvJDnIjqzDNOuojxb0VWIk8cQ2yf+md+uCn5M79lUVb1CJgK+1rQaC+ dHDX84Q/CRNy6u1BwWrrjwF7qzQHZp+cghAj2tjyc7uBaK0BKcWlbNblP1csZZ02+04x xiB7yprKSZNQEY2YqzM3lOSX9PCC8mK2jScryEp8b7LndKhzWhOmqvO5FcAgiCUv6KP7 7g0A== X-Gm-Message-State: AOJu0YzU4DrcamW0jH+2aD9GBAelb2o1yI+jdRmKRlf6P3v6MCpM+Vum LwBYrJBUgTP7vKALe7nQU+utIAgBosTLPg== X-Google-Smtp-Source: AGHT+IHHUngA3gz1MWrheZ8cdb+268icscRoqjhooWc4xP4/CI7cxuFqsvsMhjEuDbOUCcf9olUjoA== X-Received: by 2002:a05:6820:22a4:b0:58d:c53:ec10 with SMTP id ck36-20020a05682022a400b0058d0c53ec10mr3790275oob.7.1702246048022; Sun, 10 Dec 2023 14:07:28 -0800 (PST) From: Taylor Simpson To: qemu-devel@nongnu.org Cc: bcain@quicinc.com, quic_mathbern@quicinc.com, sidneym@quicinc.com, quic_mliebel@quicinc.com, richard.henderson@linaro.org, philmd@linaro.org, ale@rev.ng, anjo@rev.ng, ltaylorsimpson@gmail.com Subject: [PATCH v2 8/9] Hexagon (target/hexagon) Remove unused WRITES_PRED_REG attribute Date: Sun, 10 Dec 2023 15:07:11 -0700 Message-Id: <20231210220712.491494-9-ltaylorsimpson@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231210220712.491494-1-ltaylorsimpson@gmail.com> References: <20231210220712.491494-1-ltaylorsimpson@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::c31; envelope-from=ltaylorsimpson@gmail.com; helo=mail-oo1-xc31.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: 1702246158199100003 This is the only remaining use of the is_written function. We will remove it in the subsequent commit. Signed-off-by: Taylor Simpson Reviewed-by: Brian Cain --- target/hexagon/attribs_def.h.inc | 1 - target/hexagon/hex_common.py | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/target/hexagon/attribs_def.h.inc b/target/hexagon/attribs_def.= h.inc index 21d457fa4a..87942d46f4 100644 --- a/target/hexagon/attribs_def.h.inc +++ b/target/hexagon/attribs_def.h.inc @@ -117,7 +117,6 @@ DEF_ATTRIB(IMPLICIT_READS_P1, "Reads the P1 register", = "", "") DEF_ATTRIB(IMPLICIT_READS_P2, "Reads the P2 register", "", "") DEF_ATTRIB(IMPLICIT_READS_P3, "Reads the P3 register", "", "") DEF_ATTRIB(IMPLICIT_WRITES_USR, "May write USR", "", "") -DEF_ATTRIB(WRITES_PRED_REG, "Writes a predicate register", "", "") DEF_ATTRIB(COMMUTES, "The operation is communitive", "", "") DEF_ATTRIB(DEALLOCRET, "dealloc_return", "", "") DEF_ATTRIB(DEALLOCFRAME, "deallocframe", "", "") diff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py index 4565dd1953..ca5e9630c1 100755 --- a/target/hexagon/hex_common.py +++ b/target/hexagon/hex_common.py @@ -94,10 +94,6 @@ def is_cond_call(tag): def calculate_attribs(): add_qemu_macro_attrib("fREAD_PC", "A_IMPLICIT_READS_PC") add_qemu_macro_attrib("fTRAP", "A_IMPLICIT_READS_PC") - add_qemu_macro_attrib("fWRITE_P0", "A_WRITES_PRED_REG") - add_qemu_macro_attrib("fWRITE_P1", "A_WRITES_PRED_REG") - add_qemu_macro_attrib("fWRITE_P2", "A_WRITES_PRED_REG") - add_qemu_macro_attrib("fWRITE_P3", "A_WRITES_PRED_REG") add_qemu_macro_attrib("fSET_OVERFLOW", "A_IMPLICIT_WRITES_USR") add_qemu_macro_attrib("fSET_LPCFG", "A_IMPLICIT_WRITES_USR") add_qemu_macro_attrib("fLOAD", "A_SCALAR_LOAD") @@ -122,13 +118,6 @@ def calculate_attribs(): continue macro =3D macros[macname] attribdict[tag] |=3D set(macro.attribs) - # Figure out which instructions write predicate registers - tagregs =3D get_tagregs() - for tag in tags: - regs =3D tagregs[tag] - for regtype, regid in regs: - if regtype =3D=3D "P" and is_written(regid): - attribdict[tag].add("A_WRITES_PRED_REG") # Mark conditional jumps and calls # Not all instructions are properly marked with A_CONDEXEC for tag in tags: --=20 2.34.1