get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218630,
    "url": "http://patchwork.ozlabs.org/api/patches/2218630/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260401152657.314902-28-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-28-brian.cain@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-01T15:26:47",
    "name": "[v6,27/37] target/hexagon: Add TCG overrides for thread ctl",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "40685a29cce971b73ecf9b927fdda23cf02cbb20",
    "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-28-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/2218630/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218630/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=OMFngF1W;\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=Ttaqy1Xt;\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 4fm87644t5z1yFv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 02:29:54 +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 1w7xUl-00014J-45; Wed, 01 Apr 2026 11:28:39 -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 1w7xUU-0000q6-Kt\n for qemu-devel@nongnu.org; Wed, 01 Apr 2026 11:28:23 -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 1w7xUT-00086Q-5d\n for qemu-devel@nongnu.org; Wed, 01 Apr 2026 11:28:22 -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 631CTJVj1285924\n for <qemu-devel@nongnu.org>; Wed, 1 Apr 2026 15:28:20 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 4d8xm3t2wu-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:17 +0000 (GMT)",
            "by mail-dy1-f198.google.com with SMTP id\n 5a478bee46e88-2bdf6fe90a9so6985492eec.1\n for <qemu-devel@nongnu.org>; Wed, 01 Apr 2026 08:28:14 -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.09\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2026 08:28:09 -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 pKqI6/6w8auvuZzpUaRDsKPpNshETe3zqMoFX1J9MWU=; b=OMFngF1WG8M/HoQF\n DV6RntR6du2nfKo+bkerk9t1WJh2VZqt5qnoIryGIy7GyvCTG5a3yx7wLI5NciyA\n nQ32dCfY403suTa/4UQclaUqr0N8GXo22A5TZv4/+TF6asErgAtrTThdx71b+mFL\n Jcvhx61c/MqjUiZTpaP5/rcbt2gQtTwklsEOAU90prDMSIJOY6ydLhjj38Qxkzol\n RKJe4pqMac0wlGBvfc2rxaFhQ8dGTJVoWsWLsEMx5jo57yWLejx3Qin8hR/Ec8b9\n SGeJAIFOqYLMBLILrLwXTX+It/zSret6p3RV3Ocsn6oRhI0gjRZIGLqXUtyYv5OQ\n tKGuow==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1775057291; x=1775662091; 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=pKqI6/6w8auvuZzpUaRDsKPpNshETe3zqMoFX1J9MWU=;\n b=Ttaqy1XtzJJBtqoEaTzK46mBYHzSUmZ4zd9ucBXRALCoIfVQ5n5SAP+DS/vgXBPMrh\n /nZ55LSCx2Jx48jNAsVS/WkAeDu+C9VIcHFVdLrjOviv5tRiAlH6qDoexuIRtbsewtZI\n EwCSJ/fAofk6ETAq9J8M/ueqniYJ5NUpaOtiVH7IN1ryEaBDvRWHRzBnLnzDq0V5A4Up\n daY27ZI/kHa5sQb55kNa9M7+31Yz5QSuzI6fOefuj1OS6+GQlZQPSVn4TTKb1zQf6C4y\n Gy2fz6iOO8ZlCSRt+UzoQULAPQLb3m0s2B4ZXQILXmAmeGRSu1eWmEaR9PiSD8HOgcdB\n 6GIw=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775057291; x=1775662091;\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=pKqI6/6w8auvuZzpUaRDsKPpNshETe3zqMoFX1J9MWU=;\n b=gAWrf5LWsofHErTUXiunluTFfFo2RY4fm87FysoY+eukrtDuT3Mq7WvuLIQteLZ8gC\n dHyWugaIeMuJzgim8l9TM8nda0S/yIQbi9RIgYnuU6ehcSvO74Axq3usebpbfazyk6G3\n 02GjmtzBMQiM+c0o4O6EzygFV8upIA721HKBPVjau6OAhN9XRuV+qmuss+YH+AMMmvoS\n 7phXDIKgf6QBHmkCNDf53ekXR2E87TC1GjMJETCd57eX9sYZSOzIjdD2J/7HyZscsYii\n K/PLh9ylg2y9kQr+y6/SbbNrVdHpJciF0upSTO6X9aw+GyBtwKSRBT5snNNRUFLGE0Vf\n grlw==",
        "X-Gm-Message-State": "AOJu0Ywi1azCHTzw4HwdtOUQsuSNW7F9zar7VTQEoLXkYCzdmq3vh70s\n IqG/7y7Umw94YMu5vZRJjFyLnqYqgb6LsmI3DYKil3s5Cw0dB+FAE6CCqcQYUwPAIsgrqmztlK0\n tsrLilmG0vobZajc86/mgtP5m14vcKWMw2lwpzzH8MCAboyvtAN6up7x+nCSgtSiFHA==",
        "X-Gm-Gg": "ATEYQzw1/CjJbbhALaz8CR3X10uS3LdhHzMkrt5oQZ7mx1gxr0qa2gK8ZU31SJqIf23\n 3e5tKnHeAwDzYlFeqx3PoEJPxLh+7F3YwMkWvPmYLzfyrOOSnR1bmA06bAE5PXna5S5A5KTJI6+\n x+e8RB+S2lkWi9TqwSMfCYwZASR/FLLecCWvKUZYqtNSL8Kj/os0s8hPqSZkuItbSBYWqPgf1As\n rbs+KQVsJfKD3q23o3ilVG/nXhLydmQGXvo0UgHJsESZmC50EKTCl8Wb0tqxmSNrQuCzXBWKn+m\n 2VBkLixssbMYmHglkSJKpRezVczd6CqDFM5Qra7r/nSowsvtCpmXUwxEggbkrLyzoVPgytnTtTa\n w1Ytt6W6fZiT1wyVg2/PBx3lw/p+SzVhuD9LzfyM/h/LQuVXvAcCbDtKnU6C9hAXUlC+0XA==",
        "X-Received": [
            "by 2002:a05:7301:fa0d:b0:2c4:a862:2372 with SMTP id\n 5a478bee46e88-2c931165e5fmr2058705eec.9.1775057290661;\n Wed, 01 Apr 2026 08:28:10 -0700 (PDT)",
            "by 2002:a05:7301:fa0d:b0:2c4:a862:2372 with SMTP id\n 5a478bee46e88-2c931165e5fmr2058676eec.9.1775057290137;\n Wed, 01 Apr 2026 08:28:10 -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 27/37] target/hexagon: Add TCG overrides for thread ctl",
        "Date": "Wed,  1 Apr 2026 08:26:47 -0700",
        "Message-Id": "<20260401152657.314902-28-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=69cd3992 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=t9Y8JitlK4h6-XB8aEcA:9\n a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt:22 a=TjNXssC_j7lpFel5tvFf:22",
        "X-Proofpoint-ORIG-GUID": "8FnppmVfI74T_ljyO2pb0m6xGhR1nO3O",
        "X-Proofpoint-GUID": "8FnppmVfI74T_ljyO2pb0m6xGhR1nO3O",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDAxMDE0NCBTYWx0ZWRfXz60awt4tObeC\n abVOHPANy6myqV9+/UDXEiovPW2TuUAYgKSQWbjvjzEl98BsJybTGMH6kbYCNzNXgEYHvL1tPwA\n kukoSCqVB1uNqHx0YAkJw7UIVcX90TozGnwIXYuEU98oUy/2joySw9Lj1Pn6sEAhOTlINQuUZlO\n 6ph4GBpah96tm60S02tF8q68X+tEQkRDjWYyuU3994DpAsKigjK6VRrL5jNrEjHMk3+McKMAbEc\n 2T/FpxNYAzz1vRMYL/XtPxQQjdojBat7OjBM4jqB7prqUOF085y6K14safBYqsAOkWb5Kx41hIu\n MKrhGQLYh+3F54PWu+sr2Uh0FrG8XwYAF83NABLGlWWQ8K8lHRljznIi5nmRXQQinaXogeilIFW\n HYO86QGiqlwzj8NMD0vkXyK6vR4S3V4rwx/mwedRRWIHP2MF6CaysZPAzcMAEWPLP8/17T6NDFa\n PcxVReNmhdMjNoRF+pA==",
        "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 start, stop, wait, resume instructions.\n\n\nReviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>\nSigned-off-by: Brian Cain <brian.cain@oss.qualcomm.com>\n---\n target/hexagon/gen_tcg_sys.h | 18 ++++++++++++++++++\n target/hexagon/helper.h      |  4 ++++\n target/hexagon/op_helper.c   | 20 ++++++++++++++++++++\n 3 files changed, 42 insertions(+)",
    "diff": "diff --git a/target/hexagon/gen_tcg_sys.h b/target/hexagon/gen_tcg_sys.h\nindex cc72ca86db8..739e95ea60b 100644\n--- a/target/hexagon/gen_tcg_sys.h\n+++ b/target/hexagon/gen_tcg_sys.h\n@@ -62,4 +62,22 @@\n         tcg_gen_extrh_i64_i32(ctx->t_sreg_new_value[HEX_SREG_SGP1], tmp); \\\n     } while (0)\n \n+#define fGEN_TCG_Y2_wait(SHORTCODE) \\\n+    do { \\\n+        RsV = RsV; \\\n+        gen_helper_wait(tcg_env, tcg_constant_tl(ctx->pkt->pc)); \\\n+    } while (0)\n+\n+#define fGEN_TCG_Y2_resume(SHORTCODE) \\\n+    gen_helper_resume(tcg_env, RsV)\n+\n+#define fGEN_TCG_Y2_start(SHORTCODE) \\\n+    gen_helper_start(tcg_env, RsV)\n+\n+#define fGEN_TCG_Y2_stop(SHORTCODE) \\\n+    do { \\\n+        RsV = RsV; \\\n+        gen_helper_stop(tcg_env); \\\n+    } while (0)\n+\n #endif\ndiff --git a/target/hexagon/helper.h b/target/hexagon/helper.h\nindex 955287133e4..682f0c6c26e 100644\n--- a/target/hexagon/helper.h\n+++ b/target/hexagon/helper.h\n@@ -123,4 +123,8 @@ 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+DEF_HELPER_2(start, void, env, i32)\n+DEF_HELPER_1(stop, void, env)\n+DEF_HELPER_2(wait, void, env, i32)\n+DEF_HELPER_2(resume, void, env, i32)\n #endif\ndiff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c\nindex ee282e66e86..da00dfd65c3 100644\n--- a/target/hexagon/op_helper.c\n+++ b/target/hexagon/op_helper.c\n@@ -1419,6 +1419,26 @@ uint32_t HELPER(iassignr)(CPUHexagonState *env, uint32_t src)\n     g_assert_not_reached();\n }\n \n+void HELPER(start)(CPUHexagonState *env, uint32_t imask)\n+{\n+    g_assert_not_reached();\n+}\n+\n+void HELPER(stop)(CPUHexagonState *env)\n+{\n+    g_assert_not_reached();\n+}\n+\n+void HELPER(wait)(CPUHexagonState *env, target_ulong PC)\n+{\n+    g_assert_not_reached();\n+}\n+\n+void HELPER(resume)(CPUHexagonState *env, uint32_t mask)\n+{\n+    g_assert_not_reached();\n+}\n+\n uint32_t HELPER(getimask)(CPUHexagonState *env, uint32_t tid)\n {\n     g_assert_not_reached();\n",
    "prefixes": [
        "v6",
        "27/37"
    ]
}