From nobody Mon Mar 2 10:41:34 2026 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=1772224836; cv=none; d=zohomail.com; s=zohoarc; b=DaOTvM3ZEyYwLK2TFsMS4i/Nf60qFMLkgQl3yuO39z3BFuBUDgGTkJhRdDVI5MGLK/uj6v02A2VphRfceLW8coULYJTCJ7c5OKNVOnPyCQKUNYSYUACmGlEtKuKxgoJpyToGeYY3yY2llKTj2Rw3RAS8r2Q3YnshAWvQXOJ9amQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772224836; 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=W7+bXpvCeyS6OfLlZNZAmQmj+Ty2xeRkND9UhhfsRJ8=; b=dwC1MXHtfBHSWOiIhPOgbT7xD/uVTWxxpQ1pbxGU1mntYN6W4nzGRuT77FdA9S+iY/q+KiHcGKi2Mkw79LPUyZOQj/6DLgRIQycq7WzCjVBwOy+K+XAKRX/7+jvo0bim+6/rjDSHdE2snWVrzL3go8nEYXHfUn9bb+v4aAj+MwU= 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 1772224836408142.44490256268068; Fri, 27 Feb 2026 12:40:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw4aS-0007ah-Rx; Fri, 27 Feb 2026 15:37:24 -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 1vw4aH-0007Jn-Qc for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:15 -0500 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vw4aG-0006tC-BW for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:13 -0500 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61RH0HnY527514 for ; Fri, 27 Feb 2026 20:37:11 GMT Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cjw23c93g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 27 Feb 2026 20:37:11 +0000 (GMT) Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-46393ffb94eso31428120b6e.0 for ; Fri, 27 Feb 2026 12:37:11 -0800 (PST) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4160cbd405fsm5762935fac.0.2026.02.27.12.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 12:37:10 -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= W7+bXpvCeyS6OfLlZNZAmQmj+Ty2xeRkND9UhhfsRJ8=; b=BvQKTxu0bkIL4o8w jtRN5lOcj64VF9qRpOqvwtiRSLomzCEqC2edQEf0lwOFaGhkLDZLE8VrmyX6nVsK Yl1w0nfseM4GZy7w8bXNGlr1ziMF1mS+79I5IIKKzj94VwsBROvICRWa65gWDpge h/qwuq1YSZHzc/XL+0d/iDjhzlp6bNFECV+Uxd07KezNbIv2hj92lh+srNJ1LbAT pYcBsP/zhzC60KCrMjl8O2Kx8elMGXS+WA3gZTvkdlPl/5Idf4quhbcRnoBNEUW6 1KVulByxrsEaqsTQohcPGL4SGBnomaKRDwuPz2nzrccEu42hQIPKqq/y4SOmYlcj bIcjdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1772224631; x=1772829431; 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=W7+bXpvCeyS6OfLlZNZAmQmj+Ty2xeRkND9UhhfsRJ8=; b=Q80h2UkhGjukoSJgiLvnk2kitFE4Z/jpByFmspmywQeu+bMmC5EIvVXJtmgln1krLA CHC+srTbljxBF0He/gTazm3WN96h/YbkaPv1NeVJAyaAhKyn1ZYqdK3X/WsHjyGTUQg5 RshVGnlUxLiLGYj76tRS5KBFVh2D398I+JlVz+57AIEKn8orcLMxLECHKjRp3fR8lxRK Q/p6dTFno73FKhSULy0J8KhTEevhJMFjs6JGL7Wx1bHPCNOkEA8YjuI2RaNzXgwU+8ep PqrcTxmt7FisqwnFfGPBYKc7D3cGoBpkHCn47WzQ6RPWxiM9EQVZmaY1ENH8inKcfYr0 AW1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772224631; x=1772829431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to: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Received: by 2002:a05:6808:1645:b0:45a:6adf:4d44 with SMTP id 5614622812f47-464a5dac614mr4128741b6e.12.1772224630745; Fri, 27 Feb 2026 12:37:10 -0800 (PST) X-Received: by 2002:a05:6808:1645:b0:45a:6adf:4d44 with SMTP id 5614622812f47-464a5dac614mr4128731b6e.12.1772224630379; Fri, 27 Feb 2026 12:37:10 -0800 (PST) From: Brian Cain To: qemu-devel@nongnu.org Cc: brian.cain@oss.qualcomm.com, ltaylorsimpson@gmail.com, matheus.bernardino@oss.qualcomm.com, marco.liebel@oss.qualcomm.com, quic_mburton@quicinc.com, sid.manning@oss.qualcomm.com, ale@rev.ng, anjo@rev.ng, Brian Cain Subject: [PATCH v3 29/37] target/hexagon: Add TCG overrides for rte, nmi Date: Fri, 27 Feb 2026 12:36:19 -0800 Message-Id: <20260227203627.932864-30-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260227203627.932864-1-brian.cain@oss.qualcomm.com> References: <20260227203627.932864-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: bBaJG8_RRodk_0Yk70hnJfJ0NxwZySaK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE4MSBTYWx0ZWRfXxtWe4nSApLBp w79RLtmK3Lk60jwZ4FTV3KedXlRzlVICzrrKLfQdNCgotZUPh4ISz7w4boM9h8pitOTFHQfgwxS AY3WUY/xvW5Bu0sGD022LEkFdfVzFoD200ptJw66862D87oSdm5aDM3FnJPTggUTljiLxHhgpu6 qKavrBvQJ7B/QbHSADKag5J0AQ/7UKAyqI+JPbv4QulnY0VYvk329VUevOnHiIcz98ICrnjLmgu d7odE+WgzBuUJ/0TkI0KejReL3uAUl7k97xI4CI7Mq6bhQxO66bAi58t/d8FK0VzB0VbRXq1F2v oOUxoRyfn7SeKsuIINvdBcxxX2XK753O/bptMUR70Pojx1PoCyelshC7QNwV4iYynJ6uWeyWw6X KPJe+Cl0sHsGkqLwDJeP8uAYAUU4nmXSrl0O2WOqjOyLoP2NOacpSg6SKSaPGheDxsBzSI2Sndr /aDlmCSWmmq6Ysa528g== X-Authority-Analysis: v=2.4 cv=cJHtc1eN c=1 sm=1 tr=0 ts=69a20077 cx=c_pps a=yymyAM/LQ7lj/HqAiIiKTw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=zRxYJKy5J8nCns2dKEsA:9 a=QEXdDO2ut3YA:10 a=efpaJB4zofY2dbm2aIRb:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: bBaJG8_RRodk_0Yk70hnJfJ0NxwZySaK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-27_04,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 spamscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2602270181 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.180.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 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_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.706, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1772224837180158500 From: Brian Cain Reviewed-by: Taylor Simpson Signed-off-by: Brian Cain --- target/hexagon/gen_tcg_sys.h | 19 +++++++++++++++++++ target/hexagon/helper.h | 1 + target/hexagon/op_helper.c | 4 ++++ 3 files changed, 24 insertions(+) diff --git a/target/hexagon/gen_tcg_sys.h b/target/hexagon/gen_tcg_sys.h index 0453e3bb2c4..85602f1e3fd 100644 --- a/target/hexagon/gen_tcg_sys.h +++ b/target/hexagon/gen_tcg_sys.h @@ -80,4 +80,23 @@ gen_helper_stop(tcg_env); \ } while (0) =20 +/* + * rte (return from exception) + * Clear the EX bit in SSR + * Jump to ELR + */ +#define fGEN_TCG_J2_rte(SHORTCODE) \ + do { \ + TCGv new_ssr =3D tcg_temp_new(); \ + tcg_gen_deposit_tl(new_ssr, hex_t_sreg[HEX_SREG_SSR], \ + tcg_constant_tl(0), \ + reg_field_info[SSR_EX].offset, \ + reg_field_info[SSR_EX].width); \ + gen_log_sreg_write(ctx, HEX_SREG_SSR, new_ssr); \ + gen_jumpr(ctx, hex_t_sreg[HEX_SREG_ELR]); \ + } while (0) + +#define fGEN_TCG_Y4_nmi(SHORTCODE) \ + gen_helper_nmi(tcg_env, RsV) + #endif diff --git a/target/hexagon/helper.h b/target/hexagon/helper.h index b2cce4b47ba..04c01649683 100644 --- a/target/hexagon/helper.h +++ b/target/hexagon/helper.h @@ -128,4 +128,5 @@ DEF_HELPER_2(start, void, env, i32) DEF_HELPER_1(stop, void, env) DEF_HELPER_2(wait, void, env, i32) DEF_HELPER_2(resume, void, env, i32) +DEF_HELPER_2(nmi, void, env, i32) #endif diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 689e79d83e7..6754c491ff5 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -1487,6 +1487,10 @@ void HELPER(setprio)(CPUHexagonState *env, uint32_t = thread, uint32_t prio) g_assert_not_reached(); } =20 +void HELPER(nmi)(CPUHexagonState *env, uint32_t thread_mask) +{ + g_assert_not_reached(); +} #endif =20 =20 --=20 2.34.1