From nobody Fri Apr 4 05:49:02 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=1740807328; cv=none; d=zohomail.com; s=zohoarc; b=nxHPFz2FrX405d5dh/m9abtmR132X15Uc5+JDn8F0kxkLouLXnRB8BxcPzkZJlmoiTyQk8FGDojBO3VfBcqM7692Zu3yOp8Y93oQvtKnKaPYFHsOsXMxp4CaTOTEEz4kCBJM43RWEL7AYW0oG9KTjVGkc638VyXjbZpa07h2SA0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1740807328; 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=mfB0EeKRtw26M5FNaa9ijXS/lZpdTLSQs/8nX4DbdCY=; b=TGDjRb8u3NWYyiG8Z3YA9dLxOW4Od5+Hi3a2exANb1DvC+kWDvAIBJlPevT3JIlbu+a83mVweaNCpiiRX+vDVJq7raGcVWWThRBigPklNMwBA1fb98TfmQozU2C5SDiLy8iNzxEVanzbPNysF+mIIsbFScwAFb52gHtUxJ9xErI= 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 1740807328574695.1086628633652; Fri, 28 Feb 2025 21:35:28 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1toFPo-0001LS-PB; Sat, 01 Mar 2025 00:29: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 1toFPm-0001Bb-Q7 for qemu-devel@nongnu.org; Sat, 01 Mar 2025 00:29:31 -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 1toFPk-0008Pg-4R for qemu-devel@nongnu.org; Sat, 01 Mar 2025 00:29:30 -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 5213MR3S026429 for ; Sat, 1 Mar 2025 05:29:17 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 453t9905rg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 01 Mar 2025 05:29:16 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-2fe8de1297eso5818599a91.0 for ; Fri, 28 Feb 2025 21:29:16 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2025 21:29:15 -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= mfB0EeKRtw26M5FNaa9ijXS/lZpdTLSQs/8nX4DbdCY=; b=LuXyX4XVPmwkz5Iq gObBoJlUew59cZysncXkHORZl/xNb0jmz6FLFHSh43rhHMdEgOCsPPMvs1oLBRu3 3/aEpb7vlvGNVsfH9UvpScxpWC2VWKV84DFN5Qs12muGmp04xqFe5Y2B5+ArKmOw qi8ynMZlyYt+etnQ4nbsDP/0B2x261XH4NldEX/DA2rEkEe8HCIwMW1QEIkF5N1k nxjnrGWEVuSy7aEgLLC9STnBLqxmWhTxyJivYWy58tcVCC9GXdS9G6LbRvXAUQTz h+PLixOuArNyaR94qIc8WkU2wYeQ6UIpFsObSI6wfXG/RIodAkC76AdCf8kXZzGT OPNyNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740806956; x=1741411756; 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=mfB0EeKRtw26M5FNaa9ijXS/lZpdTLSQs/8nX4DbdCY=; b=bF/17LT71NctG/Thy1CGZN1EjOCwAieZQCYlOXcuhn0M9Ab7hmEOkV/PH+lgNvf7TQ oIY/GBT8nYB/ZGbHgB4sR8XwV7d7UEzhpYBVklJ+XFAMKoT59uykynV1t1jIA1qrCMWv G5SWPQODY0HzenPeOl609yWZTFiYBmNp1hFMgwkfhYRg5onqUiwlGUnz5vUhoJksmntx ljCLkM6feoY1jaex7dYo7jhg0/023OxbS7chqrmbcBfERXiZr/bMLU8TxKpW1EsBW+vO VX7FNAcW1LYtmtTgJCiGy8NBXRivLUZI8Jf26P0xzUFDLHq9TW9FKlkfF4ivcxVI90Pu emLw== X-Gm-Message-State: AOJu0YwvIpZwC4LA6UF5Qm9vvniyUGjaBlQSRo3yTJe50fTFLoCM/vn6 L8breo43dbtYgxgInrOqiDpr1gS3QW1ocFEXVSLwsgMOeiT57lPzywYyNEw/fXSKm52rLXLjvwI T96nmJH3VY1QI7vqdrnSWdsesJomFINsvkvgfhaHNAAkiYWCtNlkxnswpcfVdOQ== X-Gm-Gg: ASbGncshRWVEX5b93FLVuBV5Gp1qIk9g1WxhLGflTR86UOtixAFC0m0tWPxF3Wd3izP rBJZLBEUqhm/uPlx59aOLiqGvx2MWqBfKu2R9tDmg6OSt1DTqM8xg+/mjR2GB4NMYZQPC4tp6vP Zi/5JORvmdxWRA/JXOk63VAmOij8yEh+vHDFmuBV5JmtYW5yOy1SJqYJo7/mNNFzJ1DUid7ibuE j44r7JmU2GXY5FyuVO3J44JuYDfiSLSDnB8tHo1ec7AHnF5/y3aJDbMy76hTCexAxZKR77+5aeR KZOzq9YGGtlUNhXpSJHS1gtSxWYSyp98IdBmrFeE4cjK83NdLnFiwIa6xBZ9cAAB X-Received: by 2002:a17:90a:ec86:b0:2fa:562c:c1cf with SMTP id 98e67ed59e1d1-2fea12683d9mr16744219a91.1.1740806955910; Fri, 28 Feb 2025 21:29:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEM0c/Va/LvuaBluLZn3X6d4Tfo6FzPCf1yn791KCrOYGs+bpLxRumfEdRTazkPs3CxSSPfEQ== X-Received: by 2002:a17:90a:ec86:b0:2fa:562c:c1cf with SMTP id 98e67ed59e1d1-2fea12683d9mr16744197a91.1.1740806955547; Fri, 28 Feb 2025 21:29:15 -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 20/39] target/hexagon: Implement siad inst Date: Fri, 28 Feb 2025 21:28:26 -0800 Message-Id: <20250301052845.1012069-21-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: E4b8Znse9Ueex9CD00m0kjqaxp4mLEhX X-Proofpoint-GUID: E4b8Znse9Ueex9CD00m0kjqaxp4mLEhX 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=380 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: 1740807328768019000 From: Brian Cain siad is the 'Set interrupt auto disable' instruction. Signed-off-by: Brian Cain Reviewed-by: Taylor Simpson --- target/hexagon/op_helper.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 687e7f45c2..118f112487 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -1378,7 +1378,15 @@ void HELPER(ciad)(CPUHexagonState *env, uint32_t mas= k) =20 void HELPER(siad)(CPUHexagonState *env, uint32_t mask) { - g_assert_not_reached(); + uint32_t ipendad; + uint32_t iad; + + BQL_LOCK_GUARD(); + ipendad =3D READ_SREG(HEX_SREG_IPENDAD); + iad =3D fGET_FIELD(ipendad, IPENDAD_IAD); + fSET_FIELD(ipendad, IPENDAD_IAD, iad | mask); + arch_set_system_reg(env, HEX_SREG_IPENDAD, ipendad); + hex_interrupt_update(env); } =20 void HELPER(swi)(CPUHexagonState *env, uint32_t mask) --=20 2.34.1