get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2218621/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2218621,
    "url": "http://patchwork.ozlabs.org/api/patches/2218621/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260401152657.314902-25-brian.cain@oss.qualcomm.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260401152657.314902-25-brian.cain@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-01T15:26:44",
    "name": "[v6,24/37] target/hexagon: Add sysemu TCG overrides",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d2d573e87ee50e9efb1acf20c0e0c8adf827f692",
    "submitter": {
        "id": 89839,
        "url": "http://patchwork.ozlabs.org/api/people/89839/?format=api",
        "name": "Brian Cain",
        "email": "brian.cain@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260401152657.314902-25-brian.cain@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 498350,
            "url": "http://patchwork.ozlabs.org/api/series/498350/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498350",
            "date": "2026-04-01T15:26:45",
            "name": "Hexagon system emulation - Part 1/3",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/498350/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218621/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218621/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=OKlrgsaj;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=YyX+q/ID;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fm85z6S9Wz1yFv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 02:28:55 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w7xUV-0000q4-Bq; Wed, 01 Apr 2026 11:28:23 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <brian.cain@oss.qualcomm.com>)\n id 1w7xUQ-0000pU-Qo\n for qemu-devel@nongnu.org; Wed, 01 Apr 2026 11:28:18 -0400",
            "from mx0b-0031df01.pphosted.com ([205.220.180.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <brian.cain@oss.qualcomm.com>)\n id 1w7xUP-00084v-2C\n for qemu-devel@nongnu.org; Wed, 01 Apr 2026 11:28:18 -0400",
            "from pps.filterd (m0279871.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 631CiOf41285864\n for <qemu-devel@nongnu.org>; Wed, 1 Apr 2026 15:28:15 GMT",
            "from mail-dy1-f198.google.com (mail-dy1-f198.google.com\n [74.125.82.198])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d8xm3t2vw-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Wed, 01 Apr 2026 15:28:14 +0000 (GMT)",
            "by mail-dy1-f198.google.com with SMTP id\n 5a478bee46e88-2c68a134df8so3031479eec.1\n for <qemu-devel@nongnu.org>; Wed, 01 Apr 2026 08:28:13 -0700 (PDT)",
            "from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2ca78df3b84sm38491eec.5.2026.04.01.08.28.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2026 08:28:07 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n gV3f0fC/OnI2E29rr7ffGJixQTkU/4Nd4drci+xToYI=; b=OKlrgsajEBflc6Yl\n kRw1sIuO4pHKWLgLvioFuFWlDyaSovKsHX+yOGPEB3w/EKQLmCXyCsBo/j0owPir\n 3tBuhbGkKuEeZ29WIBERuynvTilRlRSeouK5VnQMNXq5yZ1X3k8+xePkWrCRR5wG\n dLR377/lohRJKE4d+DXMj96ckWULPaS+mBByFObnZmJYfddJRbVBT2XRTEVd+Jye\n FQr3MYDClk4lj4Xn53/5HOfJx+vQiP7DyNTpVGbhjVau9/KUNxuKjz0nSrfdAGlM\n 0ODh/srNFkh2e/hoby3+hfsd/zUKVdCuvaasslJwTGGn8JfXv3vxdOxy5EIe/Bui\n 5Z11Hw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1775057288; x=1775662088; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=gV3f0fC/OnI2E29rr7ffGJixQTkU/4Nd4drci+xToYI=;\n b=YyX+q/IDpzoLaO8wAbwLRWihgSar0+ejQw7UnluhLLg7oxRpdkERinNJPtOz6mZXvX\n jp3DyXazLgzdfIuDrCvHuYL/IFlbanwCrEhxN6GTq4uAU5zrbWbMnqPccqYrmsrgxeI2\n +03VLNTxMbyrRQ628snTBqaDYambElNwnxwZm/Ynwkl8N/tBpueo7TpzS1xyEkdCAKUz\n Knv5PJDAcYI/afqkJgjktHVqiiAgB+LQLTuBLbGfgKOwpo5+TpvoWi1st7fZOM7+IU0v\n ym7hISGInCJ1/nUTnzLEBNbdDF7O1sZJxe4hTdPsZKp2LQGpPr2RvTk8kxHtcoSgAkWh\n SVIA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775057288; x=1775662088;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=gV3f0fC/OnI2E29rr7ffGJixQTkU/4Nd4drci+xToYI=;\n b=A+KaQEIuaN10DvC44Kc7eGzsdTMj2ALEkBu5aHdtxm8Ow02lN1hwB4tfvcDZtpQvBc\n qn5+orug9Rl4NotSpYuvtxRhv2fnn3uHAkxZ15rB/cTkHqnBSwzPqd/R/MnswB1FukBw\n HHFXPDIvePzV359yaejtUNdbOlbKZz4mB4KR47npJ8AuXbYhguphrwwXYQUKB7tvyFW/\n PK+8S+ZE/fuWz2Fx2VgAp+lYjFXS2OID2dIDEA4QM1+BHCmyldDoh4MU1h5LfsrKF8H8\n tqf9tbBxOrCwNK0f0AiJUeYhVPv5nSGd4kHWTLRvx5xq3wo19M1Fw7xnFbegEfpNp/n6\n 5K2Q==",
        "X-Gm-Message-State": "AOJu0YzsUh/T30Cv0kWgsd61l99Guia6ldZBs1aghOaTVkrnyTTphVAA\n FN9cJrqPA1fqXsCu1dcKeURaXaobQSDyE2YLaM/Wtqus7k8ngyfPxFi3ay3Yh7qmL/C8Ecsq+FH\n CL/T2fKmDpT9IQHdmoM3MPvzGclv7/RmH8K7qKr0RP7IuVYlNQuOxXED3EUiqqAHrmg==",
        "X-Gm-Gg": "ATEYQzwax1ZnG6r/YVQ6COQ19CiXRIZkEIZdAuglNedm1xs+U8AP2jgyVe1nhTDpst8\n E30Anxz+4fq3BBVHeMibu7db0hKQs7tNowzipsMGDbavBrnC0QHgCMdhlE0qZJPBb+GDqewAAG9\n 9Dw6ZYHbX/oMV5ziVOL1XRQteqexbpmFmZysHt2mWGfKH0xEDeEq46E7UCJX+91mYNAUHk6uPnY\n d6dfK3lhwBCs9Zw1/lDabX5ub3JAhHT+IgPll4IdFTe2aa6N3eBpe5+QXfIzchokWjCRpqWj6EA\n jszI+JMgcmCCoNGw4DDMLAl+r/TcSsxW0bzI+wfNttn5egYWzEU+3DLJPRVE+syJzp+dofYDAS4\n 2VUkbSZHdWBc4To0hQWWP2xVg+EmBHzlZjVJiaizgsAW4y0vDAdWQfdi6IWnbHCdq9aYu0g==",
        "X-Received": [
            "by 2002:a05:7300:2202:b0:2c4:b8d6:45cf with SMTP id\n 5a478bee46e88-2c93138464amr2399909eec.9.1775057288188;\n Wed, 01 Apr 2026 08:28:08 -0700 (PDT)",
            "by 2002:a05:7300:2202:b0:2c4:b8d6:45cf with SMTP id\n 5a478bee46e88-2c93138464amr2399874eec.9.1775057287602;\n Wed, 01 Apr 2026 08:28:07 -0700 (PDT)"
        ],
        "From": "Brian Cain <brian.cain@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "brian.cain@oss.qualcomm.com, philmd@linaro.org, ltaylorsimpson@gmail.com,\n matheus.bernardino@oss.qualcomm.com, marco.liebel@oss.qualcomm.com,\n quic_mburton@quicinc.com, sid.manning@oss.qualcomm.com, ale@rev.ng,\n anjo@rev.ng, Brian Cain <bcain@quicinc.com>",
        "Subject": "[PATCH v6 24/37] target/hexagon: Add sysemu TCG overrides",
        "Date": "Wed,  1 Apr 2026 08:26:44 -0700",
        "Message-Id": "<20260401152657.314902-25-brian.cain@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260401152657.314902-1-brian.cain@oss.qualcomm.com>",
        "References": "<20260401152657.314902-1-brian.cain@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "X-Authority-Analysis": "v=2.4 cv=L90QguT8 c=1 sm=1 tr=0 ts=69cd398f cx=c_pps\n a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22\n a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=c-qlsedbFlXwKLHGPykA:9\n a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt:22 a=TjNXssC_j7lpFel5tvFf:22",
        "X-Proofpoint-ORIG-GUID": "bPvoHNlTCgGX65FVE6V_JzD6OiqXQG7h",
        "X-Proofpoint-GUID": "bPvoHNlTCgGX65FVE6V_JzD6OiqXQG7h",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDAxMDE0NCBTYWx0ZWRfXyq+SCKwAZ4ud\n 8lmRd1GmXicRdbO4dIxer9jOnSi3/Sww1mnNFADlL1uRqc+iIvRTtAPuSdC/pIh4G0etENEVh3z\n syl9AmFMH36K7Hui5/jg1V8bcOO4a+D2vqACjofO1MfYgD5gL8dJH5o1d8o6W91cJ+SgHrB6fqR\n ZXH8J/TAB+sWiaRyC3UzhOjoqWMJIddPwJO1qsoOe6L8GVUw1Ky2m6t4regmfIyAT+Upoge4YkN\n bdF20U+Rx4CCLmOlwBAZf2ZGCIjgq/24QRkiWMNra4WNiKdJWQFndLFepeFUyplWRB2LDMF/Et+\n J/E9yY+dNX7RBZa6STuWTkrzaFOSZztvyGCHsXJGZil4oFQgDAt5ae5+77IogvfBXG/cMuA72qE\n 2m73mrkKtPF3cCcmCjxUTWxQj5T952663DfOTMIcZZc2X2y1YaSo0hMDcDIZ/7XwME15Z6/8ixW\n 771z2Hy0PHMrUqSXC4A==",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-01_04,2026-04-01_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n adultscore=0 suspectscore=0 phishscore=0 clxscore=1015 priorityscore=1501\n spamscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604010144",
        "Received-SPF": "pass client-ip=205.220.180.131;\n envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com",
        "X-Spam_score_int": "-7",
        "X-Spam_score": "-0.8",
        "X-Spam_bar": "/",
        "X-Spam_report": "(-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=1,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=1, SPF_HELO_NONE=0.001,\n 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 <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: Brian Cain <bcain@quicinc.com>\n\nDefine TCG overrides for setprio(), crswap(,sgp{0,1,1:0}).\n\nReviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>\nSigned-off-by: Brian Cain <brian.cain@oss.qualcomm.com>\n---\n target/hexagon/cpu_helper.h  | 18 ++++++++++++++++\n target/hexagon/gen_tcg_sys.h | 40 ++++++++++++++++++++++++++++++++++++\n target/hexagon/helper.h      |  1 +\n target/hexagon/genptr.c      |  4 ++++\n target/hexagon/op_helper.c   |  9 +++++++-\n target/hexagon/hex_common.py |  2 ++\n target/hexagon/meson.build   | 13 ++++++------\n 7 files changed, 80 insertions(+), 7 deletions(-)\n create mode 100644 target/hexagon/cpu_helper.h\n create mode 100644 target/hexagon/gen_tcg_sys.h",
    "diff": "diff --git a/target/hexagon/cpu_helper.h b/target/hexagon/cpu_helper.h\nnew file mode 100644\nindex 00000000000..75a28fc10f9\n--- /dev/null\n+++ b/target/hexagon/cpu_helper.h\n@@ -0,0 +1,18 @@\n+/*\n+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+\n+#ifndef HEXAGON_CPU_HELPER_H\n+#define HEXAGON_CPU_HELPER_H\n+\n+uint32_t hexagon_get_pmu_counter(CPUHexagonState *cur_env, int index);\n+uint64_t hexagon_get_sys_pcycle_count(CPUHexagonState *env);\n+uint32_t hexagon_get_sys_pcycle_count_high(CPUHexagonState *env);\n+uint32_t hexagon_get_sys_pcycle_count_low(CPUHexagonState *env);\n+void hexagon_set_sys_pcycle_count_high(CPUHexagonState *env, uint32_t val);\n+void hexagon_set_sys_pcycle_count_low(CPUHexagonState *env, uint32_t val);\n+void hexagon_set_sys_pcycle_count(CPUHexagonState *env, uint64_t val);\n+\n+#endif\ndiff --git a/target/hexagon/gen_tcg_sys.h b/target/hexagon/gen_tcg_sys.h\nnew file mode 100644\nindex 00000000000..04549831ea5\n--- /dev/null\n+++ b/target/hexagon/gen_tcg_sys.h\n@@ -0,0 +1,40 @@\n+/*\n+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+\n+#ifndef HEXAGON_GEN_TCG_SYS_H\n+#define HEXAGON_GEN_TCG_SYS_H\n+\n+#define fGEN_TCG_Y2_setprio(SHORTCODE) \\\n+    gen_helper_setprio(tcg_env, PtV, RsV)\n+\n+#define fGEN_TCG_Y2_crswap0(SHORTCODE) \\\n+    do { \\\n+        TCGv_i32 tmp = tcg_temp_new_i32(); \\\n+        tcg_gen_mov_tl(tmp, RxV); \\\n+        tcg_gen_mov_tl(RxV, hex_t_sreg[HEX_SREG_SGP0]); \\\n+        tcg_gen_mov_tl(ctx->t_sreg_new_value[HEX_SREG_SGP0], tmp); \\\n+    } while (0)\n+\n+#define fGEN_TCG_Y4_crswap1(SHORTCODE) \\\n+    do { \\\n+        TCGv_i32 tmp = tcg_temp_new_i32(); \\\n+        tcg_gen_mov_tl(tmp, RxV); \\\n+        tcg_gen_mov_tl(RxV, hex_t_sreg[HEX_SREG_SGP1]); \\\n+        tcg_gen_mov_tl(ctx->t_sreg_new_value[HEX_SREG_SGP1], tmp); \\\n+    } while (0)\n+\n+#define fGEN_TCG_Y4_crswap10(SHORTCODE) \\\n+    do { \\\n+        TCGv_i64 tmp = tcg_temp_new_i64(); \\\n+        tcg_gen_mov_i64(tmp, RxxV); \\\n+        tcg_gen_concat_i32_i64(RxxV, \\\n+                               hex_t_sreg[HEX_SREG_SGP0], \\\n+                               hex_t_sreg[HEX_SREG_SGP1]); \\\n+        tcg_gen_extrl_i64_i32(ctx->t_sreg_new_value[HEX_SREG_SGP0], tmp); \\\n+        tcg_gen_extrh_i64_i32(ctx->t_sreg_new_value[HEX_SREG_SGP1], tmp); \\\n+    } while (0)\n+\n+#endif\ndiff --git a/target/hexagon/helper.h b/target/hexagon/helper.h\nindex 28b9b59e0f2..5405342f798 100644\n--- a/target/hexagon/helper.h\n+++ b/target/hexagon/helper.h\n@@ -114,4 +114,5 @@ DEF_HELPER_2(sreg_read_pair, i64, env, i32)\n DEF_HELPER_2(greg_read, i32, env, i32)\n DEF_HELPER_2(greg_read_pair, i64, env, i32)\n DEF_HELPER_3(sreg_write_masked, void, env, i32, i32)\n+DEF_HELPER_3(setprio, void, env, i32, i32)\n #endif\ndiff --git a/target/hexagon/genptr.c b/target/hexagon/genptr.c\nindex d71fa578b6f..63cbb7edbbc 100644\n--- a/target/hexagon/genptr.c\n+++ b/target/hexagon/genptr.c\n@@ -31,6 +31,10 @@\n #undef QEMU_GENERATE\n #include \"gen_tcg.h\"\n #include \"gen_tcg_hvx.h\"\n+#ifndef CONFIG_USER_ONLY\n+#include \"gen_tcg_sys.h\"\n+#endif\n+\n #include \"genptr.h\"\n \n TCGv gen_read_reg(TCGv result, int num)\ndiff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c\nindex 327c233c01b..ed43258cd91 100644\n--- a/target/hexagon/op_helper.c\n+++ b/target/hexagon/op_helper.c\n@@ -19,9 +19,9 @@\n #include \"qemu/log.h\"\n #include \"accel/tcg/cpu-ldst.h\"\n #include \"accel/tcg/probe.h\"\n+#include \"cpu.h\"\n #include \"exec/helper-proto.h\"\n #include \"fpu/softfloat.h\"\n-#include \"cpu.h\"\n #include \"internal.h\"\n #include \"macros.h\"\n #include \"sys_macros.h\"\n@@ -31,6 +31,7 @@\n #include \"mmvec/mmvec.h\"\n #include \"mmvec/macros.h\"\n #include \"op_helper.h\"\n+#include \"cpu_helper.h\"\n #include \"translate.h\"\n #ifndef CONFIG_USER_ONLY\n #include \"hexswi.h\"\n@@ -1412,6 +1413,12 @@ uint64_t HELPER(greg_read_pair)(CPUHexagonState *env, uint32_t reg)\n {\n     g_assert_not_reached();\n }\n+\n+void HELPER(setprio)(CPUHexagonState *env, uint32_t thread, uint32_t prio)\n+{\n+    g_assert_not_reached();\n+}\n+\n #endif\n \n \ndiff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py\nindex f7ca4986ca8..3ba1a4523f1 100755\n--- a/target/hexagon/hex_common.py\n+++ b/target/hexagon/hex_common.py\n@@ -1369,6 +1369,7 @@ def parse_common_args(desc):\n     parser.add_argument(\"semantics\", help=\"semantics file\")\n     parser.add_argument(\"overrides\", help=\"overrides file\")\n     parser.add_argument(\"overrides_vec\", help=\"vector overrides file\")\n+    parser.add_argument(\"overrides_sys\", help=\"system overrides file\")\n     parser.add_argument(\"out\", help=\"output file\")\n     parser.add_argument(\"--idef-parser\",\n                         help=\"file of instructions translated by idef-parser\")\n@@ -1376,6 +1377,7 @@ def parse_common_args(desc):\n     read_semantics_file(args.semantics)\n     read_overrides_file(args.overrides)\n     read_overrides_file(args.overrides_vec)\n+    read_overrides_file(args.overrides_sys)\n     if args.idef_parser:\n         read_idef_parser_enabled_file(args.idef_parser)\n     calculate_attribs()\ndiff --git a/target/hexagon/meson.build b/target/hexagon/meson.build\nindex d169cf71b2f..528beca3cd0 100644\n--- a/target/hexagon/meson.build\n+++ b/target/hexagon/meson.build\n@@ -20,6 +20,7 @@ hexagon_ss = ss.source_set()\n hex_common_py = 'hex_common.py'\n gen_tcg_h = meson.current_source_dir() / 'gen_tcg.h'\n gen_tcg_hvx_h = meson.current_source_dir() / 'gen_tcg_hvx.h'\n+gen_tcg_sys_h = meson.current_source_dir() / 'gen_tcg_sys.h'\n idef_parser_dir = meson.current_source_dir() / 'idef-parser'\n \n #\n@@ -337,12 +338,12 @@ if idef_parser_enabled and 'hexagon-linux-user' in target_dirs\n     # Setup input and dependencies for the next step, this depends on whether or\n     # not idef-parser is enabled\n     helper_dep = [semantics_generated, idef_generated_tcg_c, idef_generated_tcg]\n-    helper_in = [semantics_generated, gen_tcg_h, gen_tcg_hvx_h, '--idef-parser', idef_generated_list]\n+    helper_in = [semantics_generated, gen_tcg_h, gen_tcg_hvx_h, gen_tcg_sys_h, '--idef-parser', idef_generated_list]\n else\n     # Setup input and dependencies for the next step, this depends on whether or\n     # not idef-parser is enabled\n     helper_dep = [semantics_generated]\n-    helper_in = [semantics_generated, gen_tcg_h, gen_tcg_hvx_h]\n+    helper_in = [semantics_generated, gen_tcg_h, gen_tcg_hvx_h, gen_tcg_sys_h]\n endif\n \n #\n@@ -356,7 +357,7 @@ helper_protos_generated = custom_target(\n     'helper_protos_generated.h.inc',\n     output: 'helper_protos_generated.h.inc',\n     depends: helper_dep,\n-    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h],\n+    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h, gen_tcg_sys_h],\n     command: [python, files('gen_helper_protos.py'), helper_in, '@OUTPUT@'],\n )\n hexagon_ss.add(helper_protos_generated)\n@@ -365,7 +366,7 @@ helper_funcs_generated = custom_target(\n     'helper_funcs_generated.c.inc',\n     output: 'helper_funcs_generated.c.inc',\n     depends: helper_dep,\n-    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h],\n+    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h, gen_tcg_sys_h],\n     command: [python, files('gen_helper_funcs.py'), helper_in, '@OUTPUT@'],\n )\n hexagon_ss.add(helper_funcs_generated)\n@@ -374,7 +375,7 @@ tcg_funcs_generated = custom_target(\n     'tcg_funcs_generated.c.inc',\n     output: 'tcg_funcs_generated.c.inc',\n     depends: helper_dep,\n-    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h],\n+    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h, gen_tcg_sys_h],\n     command: [python, files('gen_tcg_funcs.py'), helper_in, '@OUTPUT@'],\n )\n hexagon_ss.add(tcg_funcs_generated)\n@@ -383,7 +384,7 @@ analyze_funcs_generated = custom_target(\n     'analyze_funcs_generated.c.inc',\n     output: 'analyze_funcs_generated.c.inc',\n     depends: helper_dep,\n-    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h],\n+    depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h, gen_tcg_sys_h],\n     command: [python, files('gen_analyze_funcs.py'), helper_in, '@OUTPUT@'],\n )\n hexagon_ss.add(analyze_funcs_generated)\n",
    "prefixes": [
        "v6",
        "24/37"
    ]
}