From nobody Mon Mar 2 10:42:20 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=1772224851; cv=none; d=zohomail.com; s=zohoarc; b=M4asAZgbXIWjR/X9kJw5CBXnRUB4K/+Y7Ti3JXgXH+GV8IXbSvgJjQZ/C4E4UQSoDxomRwOiblukA4HqgqpcuqIaaRbVcESoZduwENdfKIQgXtC6L+2fhqoQWIMC5FF70qbOiN45ga7u74rl2uvHdcttcBNpsoGnjpH1r17TsgM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772224851; 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=uOmQcfvtUBhmLpHpjOqkH06FAc9fEZSVWLmdbdFVvs0=; b=MMreKJnK/q2wETOng8Pm4itQJjp2hEhwOv6LoVRW+rOPBvo3IDMXGn1XRGnqcPc2nJLy6uoyE9Z82iAoSSPZFeseYyiihudBJdjc7hmjfMkxFs/D6Y8W/ZuMauZ+Z1kW04l1UkM1+susu17Nz++zI1oJYcekOE6/xsTPP4rHPuA= 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 1772224851454423.3625046396827; Fri, 27 Feb 2026 12:40:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw4aY-0007qD-8Q; Fri, 27 Feb 2026 15:37:32 -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-0007JP-Em for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:14 -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 1vw4aF-0006qy-9b for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:12 -0500 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61RIetZx373605 for ; Fri, 27 Feb 2026 20:37:00 GMT Received: from mail-oo1-f70.google.com (mail-oo1-f70.google.com [209.85.161.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ckgrtraur-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 27 Feb 2026 20:36:59 +0000 (GMT) Received: by mail-oo1-f70.google.com with SMTP id 006d021491bc7-679f6f264ceso30893228eaf.2 for ; Fri, 27 Feb 2026 12:36:59 -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.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 12:36:58 -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= uOmQcfvtUBhmLpHpjOqkH06FAc9fEZSVWLmdbdFVvs0=; b=IsEV7R197+GpRRLP N97TQ/vrdEoHGwb8qi12P04OwXtBB74JUwhuhCZ/pqOevnSrnYNHWGMz9xFjs1um oKhT380M3/Ehe3K+WHZEBEV8qIA/wA8GroCoaCrUZzFzmEIHIV3Z7vtWFPkbJdAi oFTinJj43eR3kCBIxXRw3SogKfGJLbta7Uky+2/dc1tVqiqcxyzSVGmqfpvK1Qkq JbMwKfwQoPK0ZII/+RG/IAQyd9QSvrLmnF1lHVuh25YMYZiHIHlmzvWdQPwU7ZdS 9fRh9cdkuyxplKRnjtQqNbzckpHyf3mC4uNGGS2tbBkPDtK7IFCA4/KsxnwpL5Yp bAlhBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1772224619; x=1772829419; 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=uOmQcfvtUBhmLpHpjOqkH06FAc9fEZSVWLmdbdFVvs0=; b=kawIVMv4pJya5Hghvu9jBSzmPvp52ZEAppVOhen7YV2AxUJ6iFrxLvUlpyxzRTwQlR 8J6NwmEpnMD3aVemPjManjdrVnw7dip4rJ70A4EafU6btn/+I7/SoweVvWtDrfQrQoGO v4SkYrCKjmbwHvTSHanBmjl9lpZOX77qYkyws+TiazSa/hfPfdzgaKqhKzHWR2P6q9wV +rbkDslO4C6HAhrgI45BnbrXVwQ3rSRANiMOiLQMkrIeX/GtnDoCc/SDRVBP1nOqSx5h 4uUK86r1Zz+yl/Wm+d88m9owhZ9eWwaPADinsVV4naXcgsqJw5l3lts1z4WjYJMzbGQp oRYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772224619; x=1772829419; 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:cc:sub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kvzw== X-Received: by 2002:a05:6820:8108:b0:659:9a49:904d with SMTP id 006d021491bc7-679fae0a4c4mr2964205eaf.24.1772224618825; Fri, 27 Feb 2026 12:36:58 -0800 (PST) X-Received: by 2002:a05:6820:8108:b0:659:9a49:904d with SMTP id 006d021491bc7-679fae0a4c4mr2964186eaf.24.1772224618446; Fri, 27 Feb 2026 12:36:58 -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 19/37] target/hexagon: Add placeholder greg/sreg r/w helpers Date: Fri, 27 Feb 2026 12:36:09 -0800 Message-Id: <20260227203627.932864-20-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-Authority-Analysis: v=2.4 cv=C8jkCAP+ c=1 sm=1 tr=0 ts=69a2006b cx=c_pps a=lkkFf9KBb43tY3aOjL++dA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=oSs-Am0MwCqMoGAbxz0A:9 a=QEXdDO2ut3YA:10 a=k4UEASGLJojhI9HsvVT1:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: Yb8-m1XRyau5QJqZl36D-cv-ByYbXvqB X-Proofpoint-ORIG-GUID: Yb8-m1XRyau5QJqZl36D-cv-ByYbXvqB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE4MSBTYWx0ZWRfXwVdbySPzoKzz TaNt3giFZaFzVHggmuJenWrpNi4P3jlvsENvYM/GURvoo150MZcDui+hJ7mDb9XbUS3a/uLamhd MyMp4ziUchweBzyERTzBj/caFtjv42j99vwStVW/0HzT79+wd365DTaNLUxl0KuY49TV2tbHkIL Kw2liV0KSjs7SPz32/C9Lgn2NDkcJt+6d3BRGVUeCYG1Hos/0LNqpqdEpD9+NgwmouSUWReowCw ILYRDrUCrwt9V5/4SaE+JCmgQ+pmN1GBoz9b0b6QwZ9QB+YpnYAVULO+OMEPzInV9W2p6KXT7tL TceMk3yTGzCOeMva4ekv6lrrcxYiDOV6PYG9k5CKRmeL5EzBFHqYYRribgF7W/mp4xGHlpQF1wY NsWY5HGL6aE9gzxF+bnQMQwRDRxA4XtKNSqGYGYHC4z6hzxSjsVcscbf//Ct4BoFbMaAcLpt0YC a3XXiUceMkyasH+YgRw== 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 lowpriorityscore=0 adultscore=0 impostorscore=0 spamscore=0 phishscore=0 malwarescore=0 clxscore=1015 bulkscore=0 suspectscore=0 priorityscore=1501 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.168.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0a-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: 1772224853246158500 From: Brian Cain Reviewed-by: Taylor Simpson Signed-off-by: Brian Cain --- target/hexagon/helper.h | 9 +++++++++ target/hexagon/op_helper.c | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/target/hexagon/helper.h b/target/hexagon/helper.h index 64456822bc1..85dba2f4291 100644 --- a/target/hexagon/helper.h +++ b/target/hexagon/helper.h @@ -107,3 +107,12 @@ 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, void, env, i32, i32) +DEF_HELPER_3(sreg_write_pair, void, env, i32, i64) +#endif diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 39f0c0445d6..13e3c2c3a41 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -1370,6 +1370,40 @@ void HELPER(vwhist128qm)(CPUHexagonState *env, int32= _t uiV) } } =20 +#ifndef CONFIG_USER_ONLY +void HELPER(sreg_write)(CPUHexagonState *env, uint32_t reg, uint32_t val) +{ + g_assert_not_reached(); +} + +void HELPER(sreg_write_pair)(CPUHexagonState *env, uint32_t reg, uint64_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