From nobody Sun Jul 26 14:10:25 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=1781156276; cv=none; d=zohomail.com; s=zohoarc; b=SvaZCCZYXJZ2mz1l3totioFZYZa8BJ8jYYNDdCCYojBXbA8vk8U6wc+zYDuTlw4jGQEDvJUVZBT2jlkgg+pmzvLZFpbVTYhakNEgLiVb+A+KBFLhPVhNrxx949c0YsBz/Tl61bleIUuyEs9Nxh1ls+mGsNYwXCG/ltGT3+neJv8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781156276; 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=mUbwH39pJvroWXvtk/P0f2uJ0g92UP/uywt2v4xWgns=; b=LK5ChYb0w1fqaI4DsccnZIY51gwgsaQBkEvzLnqsC335WAElDBV2ZuQnPLQqKhgQlxxRcdROrdRQuv6hBz+aPyYEwGlTo6R8fP+ZgFjwGG5yH4TAEYulki4i/hqPANQ/62XA5ak6l+e0bC89Le9eeQua1v1w261iL7sJMQ+vqIQ= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1781156276522625.7693760871152; Wed, 10 Jun 2026 22:37:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wXY2T-0000e5-J6; Thu, 11 Jun 2026 01:33:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wXY2L-0008N2-R9 for qemu-devel@nongnu.org; Thu, 11 Jun 2026 01:33:05 -0400 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 1wXY2J-0002Ps-C1 for qemu-devel@nongnu.org; Thu, 11 Jun 2026 01:33:04 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65B5GJpH2247966 for ; Thu, 11 Jun 2026 05:33:00 GMT Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eqe79hrhk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 11 Jun 2026 05:33:00 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-304f1820babso9682509eec.1 for ; Wed, 10 Jun 2026 22:33:00 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30806ee207asm720800eec.29.2026.06.10.22.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 22:32:58 -0700 (PDT) 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= mUbwH39pJvroWXvtk/P0f2uJ0g92UP/uywt2v4xWgns=; b=LAT0AeLlWUSshXcL KqII/Mmxjjh8Pu294HxgYPuBkoX7mzaZIOvUejWIc9c4iVjx9Ih3pPgJVRKGKK4T NvhjLiStoP+VEPhJq+yDSxr7H22Jy233dCp5EAHLiI23hqyLqBdplKOwVw1wTLy0 1c1KN3j+BpjQGW+tSOZyRq8PF2AaSNDG58VUTBVTCzobO/dQtGqMXCDUdkrRyURm Xjfo3WLEhH9frpBu/d1788QeC1dAKajrZMj7+5k2Bq+CvxrX1G01d0g242jq7Kq7 w4+QLLiAjnkkiEe/9nHrPC8YdabR5YkNq9q5gTJsYDDJGFCpvHpfxJpzNJuJS8fj fMgjeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781155980; x=1781760780; 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=mUbwH39pJvroWXvtk/P0f2uJ0g92UP/uywt2v4xWgns=; b=ZSZie5C2ARnmx3PgEn03vX5F5ORf4uDesVXDHvOQSz1+az6JlDYaFtmQpbVJ+3y/eY PrKf+aQncr58W/Fogi/tGJ22fI0n/Z6O1RVWKSoFDCj4OkXCd5tnkSOjRr3INRSpRjOz 5nj5HfM+UDybgMUxW/7Jz+JnvfNfFQXx+QdXIqnRbDhdSzwCkVaVJt8Rvyy6mzahBZzM usyjEaaU54eiapLM3IOcnRO7hI0b9ENCSP1gAzTn2kBX19QelkG57jRw+kBtomCZp/lh ygSBhNAzZgUuueOZR9X7rFNVPPwFSRnEQc8EQKymcf7+inuyW5eDt0FNOycD6I62aBuV /eFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781155980; x=1781760780; 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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 X-Received: by 2002:a05:7300:72c1:b0:304:d82f:c2da with SMTP id 5a478bee46e88-308047cfd83mr1066046eec.8.1781155979859; Wed, 10 Jun 2026 22:32:59 -0700 (PDT) X-Received: by 2002:a05:7300:72c1:b0:304:d82f:c2da with SMTP id 5a478bee46e88-308047cfd83mr1066021eec.8.1781155979334; Wed, 10 Jun 2026 22:32:59 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: brian.cain@oss.qualcomm.com, matheus.bernardino@oss.qualcomm.com, pierrick.bouvier@oss.qualcomm.com, ltaylorsimpson@gmail.com, philmd@mailo.org, philmd@oss.qualcomm.com, Brian Cain Subject: [PATCH v6] target/hexagon: Implement {c,}swi helpers Date: Wed, 10 Jun 2026 22:32:22 -0700 Message-Id: <20260611053249.3918491-2-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260611053249.3918491-1-brian.cain@oss.qualcomm.com> References: <20260611053249.3918491-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: Tv-3jqJHZ-AoHajH6wRQW4QbykH4ychr X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjExMDA1MSBTYWx0ZWRfX1UepBxX/NPVf krlzqYx4mHRdJUMphdlBk58q2UAunnIjFnOJAi6vLwknYm07RCvlEOuuWvc/HlmaH9fbgJrxRMD GeygPpZf6C/psVuh3uGjC+TULYvFqxjiLSETfYwr0+Uxo4aKXC+oRBCbc0xXpFJr6PlSIMeAH3F IcSefX3cmo9+mtzSoMSMBXZtgQYnOhWZblJ0haiZd/dJSt8RWYL32RlaL2wJrH8TE5YzEu8LgMY OnAJ0ImVgyMDAjgV+DErdvJoHGs7khEc5G6M3e5CKytoJBHPDOLXx6+Jl1pYaMxWQxHUEUONBZm R8AyyVPKOW/JoH2/EAfw2a8KAJ5bd/UMC1jWY2YnGdr7DJhnUmlpEAhoaKkO1clMh+YEYtWTICf raciug2pXzjDyR29xtvhhLDTwYGZOGNkLDlVPcIvXlQFkp4TS+7bUSmHyB092GJEYIlRKNFSEOY xrh0f0xOcxZQt6TSfIQ== X-Proofpoint-GUID: Tv-3jqJHZ-AoHajH6wRQW4QbykH4ychr X-Authority-Analysis: v=2.4 cv=fbydDUQF c=1 sm=1 tr=0 ts=6a2a488c cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=KN34Fzpn9o_w8YhA2GgA:9 a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNjExMDA1MSBTYWx0ZWRfX3fwbPzHopM87 cRTVBjnkL64bp3waZKq6U55by0R7fKpzPIhfOb1lT3dcOLwtrUvsh6XFBn5AQgQ6HIFp/dwxDAc njfjaYjYc/HbBypx473vdT2oRrhnqRU= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-11_01,2026-06-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 spamscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606110051 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=lists1p.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: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_MSPIKE_H2=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: 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: 1781156276840158500 From: Brian Cain {c,}swi are the "software interrupt"/"Cancel pending interrupts" instructio= ns. Reviewed-by: Taylor Simpson Signed-off-by: Brian Cain --- target/hexagon/op_helper.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 706cb0a5d9f..e50b770d695 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -23,6 +23,7 @@ #include "cpu.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" +#include "exec/cpu-interrupt.h" #include "internal.h" #include "macros.h" #include "sys_macros.h" @@ -35,6 +36,7 @@ #include "cpu_helper.h" #include "translate.h" #ifndef CONFIG_USER_ONLY +#include "hex_interrupts.h" #include "hexswi.h" #endif =20 @@ -1402,12 +1404,14 @@ void HELPER(siad)(CPUHexagonState *env, uint32_t ma= sk) =20 void HELPER(swi)(CPUHexagonState *env, uint32_t mask) { - g_assert_not_reached(); + BQL_LOCK_GUARD(); + hex_raise_interrupts(env, mask, CPU_INTERRUPT_SWI); } =20 void HELPER(cswi)(CPUHexagonState *env, uint32_t mask) { - g_assert_not_reached(); + BQL_LOCK_GUARD(); + hex_clear_interrupts(env, mask, CPU_INTERRUPT_SWI); } =20 void HELPER(iassignw)(CPUHexagonState *env, uint32_t src) --=20 2.34.1