From nobody Fri Apr 4 05:53:11 2025 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=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1740807050; cv=none; d=zohomail.com; s=zohoarc; b=mzwiMHVw0iydKza+ZFphv7lxqgtIAXKWVMuyRoxHaTfl0bKQ4n3gcYYPfJtKzqliuvy7RaBkn1B3QAp61kFlAwvbc1EuBztKO7u1xIOxZwRkYi89fmoudVHxHLSKNc87Mij0IPiovVvzW/OdDarTaA0FD/WzrURAHQba+HSWSVo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1740807050; 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=RhF45BDDcsKwjvuyo2XiQ9b81apjy0CuFDQnbMbTwfM=; b=iPeFyi733WT9sn9VpO68vGhIFgZnTXmtnCmkYR2yaL4Ed1LnvxuumEk0UY+zH0lAFhb5ynwWMHSNtUkVqvBjs1tETB56mXSaXiIc3dt4qLmMeze/ewXPDHKmTvgpRzMGarDNSA95y5Mda7yp3FcXguREW7g7I0ekR/4ZLvzkibU= 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 1740807050083633.3903309740504; Fri, 28 Feb 2025 21:30:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1toFQD-0003qQ-9G; Sat, 01 Mar 2025 00:29:57 -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 1toFQ9-0003JI-7c for qemu-devel@nongnu.org; Sat, 01 Mar 2025 00:29:53 -0500 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1toFQ5-0008V9-Ks for qemu-devel@nongnu.org; Sat, 01 Mar 2025 00:29:52 -0500 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5213NWhX027683 for ; Sat, 1 Mar 2025 05:29:38 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 453t9905sq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 01 Mar 2025 05:29:38 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-2fe916ba298so5763179a91.1 for ; Fri, 28 Feb 2025 21:29:38 -0800 (PST) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fea67a5dc8sm4732955a91.23.2025.02.28.21.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2025 21:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= RhF45BDDcsKwjvuyo2XiQ9b81apjy0CuFDQnbMbTwfM=; b=c4cVAEHqD0r+FV2q JvKCPNpFZW3ydUE1aSDllB3waJ4dIigByHi/FXYeZdkGKeaQT25EQsFvYRMtvfVh 0lvXHkNk7NYErPytGW+tuYBXgX/Be3Qv4n5J3wH4rmYnRDiy8TTvTlctsHcQDHwr 7LYOCVGpoJep06BuX0Kshise4Uc6cSlGv3qVl61ErV/XHwe/1DbGzl+3EU3jnNfB GLhnCjipvHHuaMsYf/WnsyK1kn9Abx3valPNXZQLENkiOHm7N8+cmanleABywk88 Aq2EHEfF123pxOqUM4xCRUOUsX0xRKCFQPD5hpJxctAFhxpo+iZ+OK4f2ZMJ35rr RDs6qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740806977; x=1741411777; 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=RhF45BDDcsKwjvuyo2XiQ9b81apjy0CuFDQnbMbTwfM=; b=m0Xa4jMFyMkzgPk3spJ8xTWo4GEJZT7LCpgAJFDaHwZGXadpGJyUCycmyUgptypGZm lx1BhkSwu+4+Y1Aeze/t8eG/BNMzAUDtv6ydpHyZQ3zgVqNMOu/HYcPFgZj30pGIJ2KB 6nd9hLPqfqKKc1Dse0h776NhVFvcyKz4zrs6p3q0aN6xNAjoR2nB8ASwCz/JBTWnCggp MQTvloiJaJXYED1854IWRIGSO9y1U7AiO5rLfdK7mzxzlkC2+34AX3LFf2E2+vB0Jcql hs1oRjuN0m3IrNax5ww89klejfY5X4v7iR7WQt+yc+ma6Kd+V31ZgDLWELYQF06AdOBP U/GQ== X-Gm-Message-State: AOJu0Yy3CXk34P5F4kujh0Tv+AxYWTUcYrp76/rkVylOXRlRU8lb1TuW VqC85JQnpHQ/NYKUWTU/ljXJ4k2GOa7Wq5fIyuQ5BI4ek5G27V1YbrMVy6XJrnT2aaLMqPcBV3X qrdmK5aA50x4B426HtvIDjNMMqjZ7FrOz2pUxrHrpxyKFMom6Nt48UWRRmuIoXQ== X-Gm-Gg: ASbGnctcrl8ai8vygBLV4HhTC86kfENhoIVU9YjTIyhNKaG0FtwR3f0CgDzWTTcDaLb CuL3YRCrh25nSMnl4Emac/lhr1GIQiba5vjbREeuQaShxxMp+Hzr2FYC5il/Jgd5YyhGhwUSrNR NPiLBbwtJK/y07JtSVfcHiyZpjtUt63mUoiPTD4Q7LQo2SsiGxJfs16/5f+bK2NN6rcG+/pvdug c9ky6UcHVHXTR7r5OvWp0eSj0WdDB+XD7Zep2Lq9DAMGWzT0UxdFWgwaTL/k1uYEcIE1dEl6nuo n5vWqhyZV0pFdXPCjYKHsXpibrXTqVkXJUjo3YKxRhg1CSlEDgof5uOQVZBPDzR9 X-Received: by 2002:a17:90b:1e44:b0:2ee:5edc:4b2 with SMTP id 98e67ed59e1d1-2febab78d59mr10304774a91.20.1740806977105; Fri, 28 Feb 2025 21:29:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6XvohxLjysGis56/138znIkTak748BqIdTHxJNjdxxV0YxnGROxAzPXnTDe/Y/kk0bKWlMg== X-Received: by 2002:a17:90b:1e44:b0:2ee:5edc:4b2 with SMTP id 98e67ed59e1d1-2febab78d59mr10304759a91.20.1740806976786; Fri, 28 Feb 2025 21:29:36 -0800 (PST) From: Brian Cain To: qemu-devel@nongnu.org Cc: brian.cain@oss.qualcomm.com, richard.henderson@linaro.org, philmd@linaro.org, quic_mathbern@quicinc.com, ale@rev.ng, anjo@rev.ng, quic_mliebel@quicinc.com, ltaylorsimpson@gmail.com, alex.bennee@linaro.org, quic_mburton@quicinc.com, sidneym@quicinc.com, Brian Cain Subject: [PATCH 36/39] target/hexagon: Add TCG overrides for transfer insts Date: Fri, 28 Feb 2025 21:28:42 -0800 Message-Id: <20250301052845.1012069-37-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250301052845.1012069-1-brian.cain@oss.qualcomm.com> References: <20250301052845.1012069-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: eSEbXkvoWBtT4-dv6A0kIkv6wnjEtJ7_ X-Proofpoint-GUID: eSEbXkvoWBtT4-dv6A0kIkv6wnjEtJ7_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-01_01,2025-02-28_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxlogscore=551 mlxscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 spamscore=0 adultscore=0 impostorscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2503010040 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=205.220.168.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 @qualcomm.com) X-ZM-MESSAGEID: 1740807051655019000 From: Brian Cain Signed-off-by: Brian Cain Reviewed-by: Taylor Simpson --- target/hexagon/gen_tcg_sys.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/target/hexagon/gen_tcg_sys.h b/target/hexagon/gen_tcg_sys.h index 6d73a18db4..e56553462f 100644 --- a/target/hexagon/gen_tcg_sys.h +++ b/target/hexagon/gen_tcg_sys.h @@ -81,6 +81,31 @@ gen_helper_stop(tcg_env); \ } while (0) =20 +#define fGEN_TCG_Y2_tfrscrr(SHORTCODE) \ + tcg_gen_mov_tl(RdV, SsV) + +#define fGEN_TCG_Y2_tfrsrcr(SHORTCODE) \ + tcg_gen_mov_tl(SdV, RsV) + +#define fGEN_TCG_Y4_tfrscpp(SHORTCODE) \ + tcg_gen_mov_i64(RddV, SssV) + +#define fGEN_TCG_Y4_tfrspcp(SHORTCODE) \ + tcg_gen_mov_i64(SddV, RssV) + +#define fGEN_TCG_G4_tfrgcrr(SHORTCODE) \ + tcg_gen_mov_tl(RdV, GsV) + +#define fGEN_TCG_G4_tfrgrcr(SHORTCODE) \ + tcg_gen_mov_tl(GdV, RsV) + +#define fGEN_TCG_G4_tfrgcpp(SHORTCODE) \ + tcg_gen_mov_i64(RddV, GssV) + +#define fGEN_TCG_G4_tfrgpcp(SHORTCODE) \ + tcg_gen_mov_i64(GddV, RssV) + + /* * rte (return from exception) * Clear the EX bit in SSR --=20 2.34.1