From nobody Sun Jul 26 14:10:50 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=1781155967; cv=none; d=zohomail.com; s=zohoarc; b=BuQuuD3nqVD8nJxU1+f5KjiElmRW/nYkMr2t1TRL54rHVu5M0EhKcf//azsG3LWW0swisrBi3iyVLVcqczMeTleubQcE9TT7JOVuSKbfFxK8ThzSzIo5vnM6CzbLt40HUHiypH5esPBNR1NCmJnRoEouXXioofxECUood2dejQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781155967; 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=3X8bvXVW52I3fn1FyNjUiMXuaCQjKXZ/zTx+8O5PNqc=; b=NGBkLHnKEv2v5q19HgRHF9mR/th2p4MKYdq5LzDV/6eDKtx+fLk+8W9W6n1RGNeoiEISBDo6SEBYc7BOI0DaW7qYzYt8ezI9kmVO7yMyo4d2OMbTxsA8am/bw8VjCGhDpS173CPjJcPB7V1uvqfkoHFaH5Ugx8uraB4WSsU1Z3Q= 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 178115596742723.59967750087526; Wed, 10 Jun 2026 22:32:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wXXz8-0007mG-Se; Thu, 11 Jun 2026 01:29:46 -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 1wXXz7-0007lc-Fk for qemu-devel@nongnu.org; Thu, 11 Jun 2026 01:29:45 -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 1wXXz5-0000qn-T3 for qemu-devel@nongnu.org; Thu, 11 Jun 2026 01:29:45 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65B5GLNX3724999 for ; Thu, 11 Jun 2026 05:29:32 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 4eqe6v9qbm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 11 Jun 2026 05:29:32 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-304df51ff3eso8597497eec.0 for ; Wed, 10 Jun 2026 22:29:32 -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-30806e8a402sm880475eec.17.2026.06.10.22.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 22:29:29 -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= 3X8bvXVW52I3fn1FyNjUiMXuaCQjKXZ/zTx+8O5PNqc=; b=SXRpd2PNjvTIepU2 9o+qHQ9T5JbRTBWwuXakFKS1GK3ecZDx99IH/iM+RiU+EznbzNief5wRKa8KXa4l dc52/K/hgOToDyH+RDZAajVecfOWWcox4PBWkXDYGqRLVa7IXnD2WNSQsNBSQcc8 5gjDVdd98l+bgxguHvtLJ8mLQCy3cj2W7XkX8sxOoZKFmBgYKyp2/QKOU9+xk+6a nCQ4460tmw34gBWICiWuDYSOfHcz7/ImDDnjvoy0W3YNsr/9aaPevMpeikzfCzja gjX/kBMEikaHqOTsEeLoUprJglemG7WkbP9GqrBX2DEWTvXwCwvE7l4KDA3x5wYC FVFRxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781155771; x=1781760571; 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=3X8bvXVW52I3fn1FyNjUiMXuaCQjKXZ/zTx+8O5PNqc=; b=MXCczm2iNGQxvDxejIosxcm5pnETUOjAYx7Tkv4kgtBXXmUVwMgy07xXwI+vQ5ji49 yIcxft+51sFhgtgcUxTPIH+vkKMJVvGsv+IBUOQlHLlehVHfUdY2axrRu7PttpIqJrZO kLCY+cnM9EzFCXOlWGb9vfYwq5Li3LmD8RR3Wf2RXLQn8eNStCK+X6o8ot2uTGsc8FN/ V6QeOnDfqqJmIgtblWv1HitVzb1KRhAESbx6cdKoQ6W6nKesnFIByrH5sB2UxIkfkxrM 7m/eVCm2XwPz+IwwLwExA2fF3c+IjlKqF5zHSq8hmasmRr67GAnxxR3SpkPOUAxFoHbm mhXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781155771; x=1781760571; 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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k9QeV X-Received: by 2002:a05:7300:434c:b0:2f0:5605:466e with SMTP id 5a478bee46e88-3080476c089mr1040312eec.9.1781155771545; Wed, 10 Jun 2026 22:29:31 -0700 (PDT) X-Received: by 2002:a05:7300:434c:b0:2f0:5605:466e with SMTP id 5a478bee46e88-3080476c089mr1040287eec.9.1781155771011; Wed, 10 Jun 2026 22:29:31 -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 v8] target/hexagon: Add placeholder greg/sreg r/w helpers Date: Wed, 10 Jun 2026 22:28:38 -0700 Message-Id: <20260611052857.3911981-18-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260611052857.3911981-1-brian.cain@oss.qualcomm.com> References: <20260611052857.3911981-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: dTXmLbMfK1eLh_k5dTW_VFVKsWYFwffy X-Proofpoint-Spam-Info: AW1haW4tMjYwNjExMDA1MSBTYWx0ZWRfX1XOfCUYVvSVh 1ZveUbO5Vt0+LhoHe/kheZRlXTh846iO3LFGXlDy6CLvCYpXR93aHzeFlUDcDCu6s/CgyeeTUKB XCC0VMmGwhD53pbTdllPX+gS5FE62J0= X-Proofpoint-GUID: dTXmLbMfK1eLh_k5dTW_VFVKsWYFwffy X-Authority-Analysis: v=2.4 cv=UsRT8ewB c=1 sm=1 tr=0 ts=6a2a47bc 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=_K5XuSEh1TEqbUxoQ0s3:22 a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=wA0rHRt5QP8iJxr38i8A:9 a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjExMDA1MSBTYWx0ZWRfXx/tkNDczie4w INqwTyUKulmbpVipWlAE3SloQD/quBhKVo88PrObROv+2PP9GgrMLW2bpXV3PL/jRejB0ocFQEl dQWrq2PcG8PaeGDTaMo9llw1tOE5/qWHkgweKcJFy5Lu7XJqb6r2s+vt4mSyrVCEXO8oXZLB4nC JCPVidL4EErrUJpZcRp1+acCXJt5ewwFaX918mSn8dkvqlr8y4vnJs4VekevsbwUUrgY6dlXDz7 4Vloj4pmBLvraIFkfiqQWhQBkD3weMvgbOUAxb0azSD5jIspg38/9fmLnfvtXEN7D7yjXib6gri 6zdFbcerIgcmb6iHHpMJDcIuViZvOA6pvnreZ2ZZbAIZG+LpY9VJuxJe0IwvuNw231f73cdCi8D a7FvYM1LTvXfRUTehGlAZ6llfnKct9kUUJtvx7RXBhJ/kyrLJGxFTEC8mzKfHv1fgpG4s4BkueF FVdfi+/nuFwnUfPk60w== 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 priorityscore=1501 phishscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 adultscore=0 bulkscore=0 suspectscore=0 impostorscore=0 malwarescore=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: 1781155969277158500 From: Brian Cain Reviewed-by: Taylor Simpson Signed-off-by: Brian Cain --- target/hexagon/helper.h | 8 ++++++++ target/hexagon/op_helper.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/target/hexagon/helper.h b/target/hexagon/helper.h index 64456822bc1..28b9b59e0f2 100644 --- a/target/hexagon/helper.h +++ b/target/hexagon/helper.h @@ -107,3 +107,11 @@ DEF_HELPER_4(probe_noshuf_load, void, env, i32, int, i= nt) DEF_HELPER_2(probe_pkt_scalar_store_s0, void, env, int) DEF_HELPER_2(probe_hvx_stores, void, env, int) DEF_HELPER_2(probe_pkt_scalar_hvx_stores, void, env, int) + +#if !defined(CONFIG_USER_ONLY) +DEF_HELPER_2(sreg_read, i32, env, i32) +DEF_HELPER_2(sreg_read_pair, i64, env, i32) +DEF_HELPER_2(greg_read, i32, env, i32) +DEF_HELPER_2(greg_read_pair, i64, env, i32) +DEF_HELPER_3(sreg_write_masked, void, env, i32, i32) +#endif diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 53898db815b..359bf12f1f2 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -1373,6 +1373,34 @@ void HELPER(vwhist128qm)(CPUHexagonState *env, int32= _t uiV) } } =20 +#ifndef CONFIG_USER_ONLY +void HELPER(sreg_write_masked)(CPUHexagonState *env, uint32_t reg, uint32_= t val) +{ + g_assert_not_reached(); +} + +uint32_t HELPER(sreg_read)(CPUHexagonState *env, uint32_t reg) +{ + g_assert_not_reached(); +} + +uint64_t HELPER(sreg_read_pair)(CPUHexagonState *env, uint32_t reg) +{ + g_assert_not_reached(); +} + +uint32_t HELPER(greg_read)(CPUHexagonState *env, uint32_t reg) +{ + g_assert_not_reached(); +} + +uint64_t HELPER(greg_read_pair)(CPUHexagonState *env, uint32_t reg) +{ + g_assert_not_reached(); +} +#endif + + /* These macros can be referenced in the generated helper functions */ #define warn(...) /* Nothing */ #define fatal(...) g_assert_not_reached(); --=20 2.34.1