get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2202551,
    "url": "http://patchwork.ozlabs.org/api/patches/2202551/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260227203627.932864-26-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": "<20260227203627.932864-26-brian.cain@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-02-27T20:36:15",
    "name": "[v3,25/37] target/hexagon: Add sysemu TCG overrides",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c97334524067edecfacdba75252307fdb1e82855",
    "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/20260227203627.932864-26-brian.cain@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 493813,
            "url": "http://patchwork.ozlabs.org/api/series/493813/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=493813",
            "date": "2026-02-27T20:35:57",
            "name": "Hexagon system emulation - Part 1/3",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/493813/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2202551/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2202551/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=pzR7/HfJ;\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=kZbGecxk;\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 4fN0XD624Zz1xph\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Feb 2026 07:38:20 +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 1vw4aH-0007Gs-DQ; Fri, 27 Feb 2026 15:37:14 -0500",
            "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 1vw4aD-00079b-LS\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:09 -0500",
            "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 1vw4aB-0006sJ-QU\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:09 -0500",
            "from pps.filterd (m0279869.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61RH0Gut1912472\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 20:37:07 GMT",
            "from mail-oo1-f69.google.com (mail-oo1-f69.google.com\n [209.85.161.69])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cjuur4gjt-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 20:37:06 +0000 (GMT)",
            "by mail-oo1-f69.google.com with SMTP id\n 006d021491bc7-679ca40278bso48186255eaf.3\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 12:37:06 -0800 (PST)",
            "from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-4160cbd405fsm5762935fac.0.2026.02.27.12.37.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 27 Feb 2026 12:37:05 -0800 (PST)"
        ],
        "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 Sc+77wZ/sf9ek0m639yFvgRDrEV2SKXcXMDFUgtX5RM=; b=pzR7/HfJgvXEmePO\n 02UUFLg3c3us9s3nbPRG9FP8aOqaXwDVzQCZ5cyzEs3UAMWm0e3hzigUga/L7hKp\n 482iGr8YNmBC9Nldm79XT6KMJcKRTeWb7Q0h3CvB8ySV8EGjlaXxIQTwC3Tb2YWu\n YbA8nZlpaTloN4vQnke/0LTz8hV/yDrMUfUC2ehWaa3P8tkWOrTOV3jzPg6Wzfgv\n 8Gfz3at0Es83elEHtUsJdEfNibxC8AL1q7NvCSIQG7V0pMGC00NcxVfhAtUwp6Z2\n NjGc1MjsjG2FyOsqvoAqFqkkOXUIYyj6t5/5D+PwrKO7Qs7eEyy91+MK68DSizoz\n XLSvpA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1772224626; x=1772829426; 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=Sc+77wZ/sf9ek0m639yFvgRDrEV2SKXcXMDFUgtX5RM=;\n b=kZbGecxkOUfMutjQMAnzlCfA0lohpMF+szbL4+c2HQoLsKy89pJaJNzdbtJeSLrOwM\n vKcSJs2Z25S0FuQ64j+UjBsjv0eKJ/xthv8H77lpEpXye700PbMjZliuka9fJWrCtx21\n IWj9r3P62BEf6qU99vjnqg9RYhYkg1Ct8xVb5kUee2PM/NlrRPxQghs2jqs6jl0oXEQV\n 4te4QT1JFU70dmFJsJ0gz6Foayb4OokrgGIb6XZCo673OVfaSssNiTl7JyaJ06dkIaHH\n LoENhjAaWfNRw2MKE/lAFwsx4geIUeLe0hsLq9MgGGTK/y1fjzJxbYmI683NFVq8ewl2\n j0nQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1772224626; x=1772829426;\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=Sc+77wZ/sf9ek0m639yFvgRDrEV2SKXcXMDFUgtX5RM=;\n b=cz45kia3fgiz4EmtPfoejgqejQwLTSbN6qYqcuOr5TtDCEgLNubOWd7XmATPKucDDh\n kPEBp0xyb49UCcyZtIWDIK9oFM30tU3RByCgHFw5/G3o4KMoo8npTnaHdEeVCxcH21m4\n VQEJMf9Fi/0yahpkDogRDjuvbz+1CfkiRhj54RzehD09napLsQOatQqX7vI7BtaFS4vW\n GZf2qt1Op5bjlb/9qo37YvnVB9TqIC328IL/U3v7A9aMVXbC7zPag3xgqO7RsjPmTw5x\n 4TJ3W4l/I/utWvcKl0LUYPnvAjxPXsvpTRfskjvFZ33MKd7bhc64wUAkuNgQe0ac6Hzn\n 7PBQ==",
        "X-Gm-Message-State": "AOJu0YwIV9EVLsTD41kljUmEVfK8y8rdXTHTLHYXT0M4LCjE4I14dy/B\n zg8VOSOr1RFkGTurmXvRKEz2XOzcmYqYAho4gdJsLL8mJJAn/gcPb8iVvpRVU41D/f3tPfPA5tp\n zkSSijKh4qY0v9IMCFjPV6D/wtZv2DY3lCSC1BblXj24Ephz8xFxDtWBBQQGf9f26lQ==",
        "X-Gm-Gg": "ATEYQzwC1cLxGHtvPZiKZnCiqTcG354JvNiDTgLl0Pbrl1xq7v5QqCGoMi5vX0mfKLs\n cVgHQMpZMHnAChEuQPMh3SJQh0b5lZXEAlTu7sKOwWA4DQWAHyxxsIYScNXzF+GthtHv6i8pSyJ\n mKctkTGVoSwNeavJHlfRxGidkNEsHOuf3GuuQNDBqNpVeJZp+h1gpEJcXAQrYrVAh/wrSADAI88\n fb9OCtx66TIZfkZpLb5IVYym6EviFp//RPammgdXjvtQJHni3UUdCMPl4uSZG3UhwVFXeSsCO7D\n 67xqtB649DNB+e1mNzgpmxLvjBs41eJFilngp62ynCGn7FIEA9S5FPca00UJCAQseZofJWKtThp\n JByEkE/CnYiPJf5M5zAY6Wlt/3ahLfwJZzVEgMBBeZYW4BqktesbJ/rdwy6r6R/3urgEwiw==",
        "X-Received": [
            "by 2002:a05:6871:726:b0:402:17a4:96b7 with SMTP id\n 586e51a60fabf-41626e056b5mr2331322fac.22.1772224626060;\n Fri, 27 Feb 2026 12:37:06 -0800 (PST)",
            "by 2002:a05:6871:726:b0:402:17a4:96b7 with SMTP id\n 586e51a60fabf-41626e056b5mr2331301fac.22.1772224625541;\n Fri, 27 Feb 2026 12:37:05 -0800 (PST)"
        ],
        "From": "Brian Cain <brian.cain@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "brian.cain@oss.qualcomm.com, 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 v3 25/37] target/hexagon: Add sysemu TCG overrides",
        "Date": "Fri, 27 Feb 2026 12:36:15 -0800",
        "Message-Id": "<20260227203627.932864-26-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": "base64",
        "X-Proofpoint-GUID": "mpcSnb0kbOGfuYBnFilYhteD5nYSGkBY",
        "X-Authority-Analysis": "v=2.4 cv=PN8COPqC c=1 sm=1 tr=0 ts=69a20072 cx=c_pps\n a=lVi5GcDxkcJcfCmEjVJoaw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22\n a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=pmPLFm_we90XqOt_wqUA:9 a=QEXdDO2ut3YA:10\n a=rBiNkAWo9uy_4UTK5NWh:22 a=TjNXssC_j7lpFel5tvFf:22",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjI3MDE4MSBTYWx0ZWRfX57EnjnwmRNIi\n EEEctyd2y83MxcjjspLzC8432IxRUU+6Rc5A13ioQNeqQbsUZbCRNALSzEQkjyEVlyU/5rFAoMz\n DtmH7Hyo9Q+0u+AGU3PjFac8j0wwN3D0G7zhponVLsfbJZ9J7kvunReloBU7GYJgKTQOeScNsx3\n 3EOojlt/tuFNKQrzJdwIFjNWC63kXBTVBFXTE/HF1jzDGVTrVtFXOzvYUDEEjasUHtCaCPcrylB\n W/b2/a6KLctawMt+RtOC22evFxmQJ9KG2vdhEFgFTY6PFQnZaQN1JPuXd1HWU54fPHL+DcmPoBb\n AQq+9VEdWwaLQJcmnIVPKGECA0CXqlKu9m5ajgMln2QhaaINhqMph4M42wqY1UYNvpbxRg+n5bY\n y8KP3Y5HdHRH91zKSoFGSlk3vX3cEG1PAvEqSnSLyB4y8JIOy3YmWWgkrSRbv6yYx5TXBTV1KAh\n YSDITPjVE8FGac0AMCA==",
        "X-Proofpoint-ORIG-GUID": "mpcSnb0kbOGfuYBnFilYhteD5nYSGkBY",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-27_04,2026-02-27_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 impostorscore=0 clxscore=1015 lowpriorityscore=0\n adultscore=0 spamscore=0 phishscore=0 suspectscore=0 bulkscore=0\n malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000\n definitions=main-2602270181",
        "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": "-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,\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=0.706,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, 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\nSigned-off-by: Brian Cain <brian.cain@oss.qualcomm.com>\n---\n target/hexagon/cpu_helper.h  | 34 ++++++++++++++++++++++++++++++\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   |  7 +++++++\n target/hexagon/hex_common.py |  2 ++\n target/hexagon/meson.build   | 13 ++++++------\n 7 files changed, 95 insertions(+), 6 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..8c79a4cea13\n--- /dev/null\n+++ b/target/hexagon/cpu_helper.h\n@@ -0,0 +1,34 @@\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+static inline void arch_set_thread_reg(CPUHexagonState *env, uint32_t reg,\n+                                       uint32_t val)\n+{\n+    g_assert(reg < TOTAL_PER_THREAD_REGS);\n+    g_assert_not_reached();\n+}\n+\n+static inline uint32_t arch_get_thread_reg(CPUHexagonState *env, uint32_t reg)\n+{\n+    g_assert(reg < TOTAL_PER_THREAD_REGS);\n+    g_assert_not_reached();\n+}\n+\n+static inline void arch_set_system_reg(CPUHexagonState *env, uint32_t reg,\n+                                       uint32_t val)\n+{\n+    g_assert_not_reached();\n+}\n+\n+static inline uint32_t arch_get_system_reg(CPUHexagonState *env, uint32_t reg)\n+{\n+    g_assert_not_reached();\n+}\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..2410ac82c96\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 tmp = tcg_temp_new(); \\\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 tmp = tcg_temp_new(); \\\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 85dba2f4291..a18cb9f79ad 100644\n--- a/target/hexagon/helper.h\n+++ b/target/hexagon/helper.h\n@@ -115,4 +115,5 @@ DEF_HELPER_2(greg_read, i32, env, i32)\n DEF_HELPER_2(greg_read_pair, i64, env, i32)\n DEF_HELPER_3(sreg_write, void, env, i32, i32)\n DEF_HELPER_3(sreg_write_pair, void, env, i32, i64)\n+DEF_HELPER_3(setprio, void, env, i32, i32)\n #endif\ndiff --git a/target/hexagon/genptr.c b/target/hexagon/genptr.c\nindex 908f7e5e2e5..f86bba4f08e 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 54b22f2fee4..8d60610b3f9 100644\n--- a/target/hexagon/op_helper.c\n+++ b/target/hexagon/op_helper.c\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 \n #define SF_BIAS        127\n@@ -1420,6 +1421,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 ec504389faf..ad60e978685 100755\n--- a/target/hexagon/hex_common.py\n+++ b/target/hexagon/hex_common.py\n@@ -1364,6 +1364,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@@ -1371,6 +1372,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": [
        "v3",
        "25/37"
    ]
}