get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2202572,
    "url": "http://patchwork.ozlabs.org/api/patches/2202572/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260227203627.932864-24-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-24-brian.cain@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-02-27T20:36:13",
    "name": "[v3,23/37] target/hexagon: Implement do_raise_exception()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "447ac1b50785dd5e55eb3c30b30a5c1f91420a39",
    "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-24-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/2202572/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2202572/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=QqxmdQn1;\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=BqyUBTUb;\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 4fN0Zw2cgBz1xxx\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Feb 2026 07:40:40 +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 1vw4ab-0007xr-Rn; Fri, 27 Feb 2026 15:37:33 -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 1vw4aN-0007QC-06\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:20 -0500",
            "from mx0a-0031df01.pphosted.com ([205.220.168.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 1vw4aJ-0006rp-Nl\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:17 -0500",
            "from pps.filterd (m0279862.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61RKEvX42595614\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 20:37:04 GMT",
            "from mail-oi1-f200.google.com (mail-oi1-f200.google.com\n [209.85.167.200])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ckj4xg1qr-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:04 +0000 (GMT)",
            "by mail-oi1-f200.google.com with SMTP id\n 5614622812f47-45f11f18a89so25104804b6e.2\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 12:37:04 -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.02\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 27 Feb 2026 12:37:02 -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 9RZyc2UsUqKVP+qIYyd0htB9SvGTLxy1o1epcMNgoWY=; b=QqxmdQn1qSlOY1+a\n FrmrYU9T0sLrPfIyNrpZgyMB20py32pQZsBFpNk0rcqP//xcgWTPqzGQQlojsV+L\n UWv3rqCTX+asxiWv44gHKma+CpzPzRvuUAqXufalzWcha+ehKj7+2sfmMbsy+nMd\n jMbGhMwjWChq4rfMJDEPAGUnhtS9WQDpDBN5sPUBu9CDom4Z89XrHTapcjyfRING\n K8pK+6+afBGq3TRPhk7xpYZcIAsU6LthqwOUH2Pd0rrBUkvFfm1NRpnYjArXyHe4\n sIf7Lon3zrwl4Njesv9Vr4yxYdZoT7+zqzfSFUYiyWkwGFo6dIgsJ/9p7bODREYL\n 8rxAtg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1772224623; x=1772829423; 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=9RZyc2UsUqKVP+qIYyd0htB9SvGTLxy1o1epcMNgoWY=;\n b=BqyUBTUbBHTlVos8c5kT1bexZtY6KAaziOGnXBSGMEdCvR8G/RVN6nBG5E09oX7ykA\n Z1R4GsvD29+aLo1pbbcwhVoso+kp/Xc5BNkfKpAbs9sGiqgtMaENyfD2Xj/39deIwfuy\n uHRog5f3z8YJc2nmLqBJdLc1cXkDzcgYtZY/jJVkxoJwWUu0lyQBh9Hj/b0Lk7Xkx3HW\n HpY3XfMIXe8HFagBHUvLCeeJD+aDoH4GOdtWpaQlB6vNksVEI2Xh7lQUHZDOrmiqElR3\n RfRBY3Bs8gC4RQJohVmQyXc1ULEtn+SKyv6Wn6Nbu5qtss4ky+qhHrmInCdofQ7m45i+\n JmHQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1772224623; x=1772829423;\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=9RZyc2UsUqKVP+qIYyd0htB9SvGTLxy1o1epcMNgoWY=;\n b=X03zD/qKesdYKYn0atS8167gosppWVJgVOqXgrFmA/LWyVICv2LuK9NlrURENz7I3j\n VFzcjAksRvxPHh0OcVHg2p0KR0QirwM/zxZRRR5RWSfv0uGEiDgNIc2lSN5DrYR0RXR2\n EmrrMibmhhPJgVNcvdmS7Ou5gb5pP3dtOEDzdTxIAdP9xQTyRY4BYQx7Zsa3tROuqxsb\n 64AdZ8ZwS00y5vm/EthG53ZyX4CVT00TX7G04E+9VmM4E0fTSx+KZTgNz1u9a42SNSdi\n 0zAmgCCetx9ZRiR5G9srdXbrgjH8imgJINdHnkCobcjMtmiwK8SzqmKjDIcllDQu1CCd\n Glnw==",
        "X-Gm-Message-State": "AOJu0YwdJ8pyFwOQ1wx1fiPOpowHkFrbJT0FSIcB1qjMZ9AuZk4wQCQn\n BpJXi9aBp9QVZKQufPj4Is1SCVKU4wBQBtgGav/CO68xZhYk0rquvO/COMOPnm4QO/+BZ0OT4SW\n hdkzHC44j6TM6SpqMaK9zAqTYldfkcWF9PIZS4RcHyTLgLo0slIN3rppJYfRqSZI1YA==",
        "X-Gm-Gg": "ATEYQzwjpEvSGl9xBfIfZMyBHzNDZjJBLBBDYXWjezyBgGsJAGbQBKmNrKmlzXlPEij\n xP93AfW5M8HWSrvcOCaVcMPnEFXNNIJRxfeGdvcKuucY11eRbbN14Y7MUrCi0s6E5U5+oP3A0BP\n dq6dVsWoSx5/oyHwbXamoY8MgwCqq7KaSGNlqqc8/MiscSD4Us6e/OW/lfBTh2Hhxaek3IpTOad\n AifgAGBc5pDL4fUZgPSdwTdiUNRDZ+itJEaGHjb3+D4v5MDVSt4c8vB4leYfoBTcQRL7AJQj5EF\n rG4mr4kQb+aAP3kdDfcGKy6BVWJGbqFpi3dmeCOZ1DeVFRqiGJI+YX+k+HihoMK9bE12UI5Xw9U\n riKu7hdeVkDjEfS6wQLsLU0cXAbbPsyMoSCoLlYsFFzcGDGTKRJ/COaoY4DVGbP9EQNm/qA==",
        "X-Received": [
            "by 2002:a05:6808:1a29:b0:462:dd4d:7679 with SMTP id\n 5614622812f47-464bea41239mr2371370b6e.7.1772224623509;\n Fri, 27 Feb 2026 12:37:03 -0800 (PST)",
            "by 2002:a05:6808:1a29:b0:462:dd4d:7679 with SMTP id\n 5614622812f47-464bea41239mr2371351b6e.7.1772224623146;\n Fri, 27 Feb 2026 12:37:03 -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 23/37] target/hexagon: Implement do_raise_exception()",
        "Date": "Fri, 27 Feb 2026 12:36:13 -0800",
        "Message-Id": "<20260227203627.932864-24-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-Spam-Details-Enc": "AW1haW4tMjYwMjI3MDE4MSBTYWx0ZWRfX1AMYVHDwNgl4\n Q3lOeZeo+Y5/erG84RRH9yVXx2+fGS01iaiYFCtpf82MinEWWye+yyCACahYVqJCReyx0prfKKO\n RpL0R+R+WK2YOK9CkoMUpDCkBu9n8PaXzDDCWrnylsjY71TP/Tf4k8Le4xUT/0HwNcAOV4mzp/4\n 5DORMc9Bv7DJgT5JTEMiLLqxEZzyFKaaMqM2ol6mx1kM52udA2tN5wHQl/QS4vtGVLVdMY14FVg\n RJpP+9VKc2GKmA7oKApbhlX/tcesV/TwNYiCvidadWHyfo5ybMvl2BL27flK46xWVMMAyFywmFQ\n smvGPo7gEKay16YKDcqmpNmJedX2hsCZQFNOZ7KuLQLxN313zzsZ0W5pIy3rX7gDs0yJuydKDYY\n N2culCuoUigcZfxXYeCST2gQyYejL44AIb5w2y+K29eNDP0SMrbQUSZcLfvVpS4hWTwBqfrl/Nt\n c0wNiu4WIcb9dmr/uwg==",
        "X-Authority-Analysis": "v=2.4 cv=QppTHFyd c=1 sm=1 tr=0 ts=69a20070 cx=c_pps\n a=AKZTfHrQPB8q3CcvmcIuDA==: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=_K5XuSEh1TEqbUxoQ0s3:22\n a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=hK29HtBGQMdOITfcgGsA:9 a=QEXdDO2ut3YA:10\n a=pF_qn-MSjDawc0seGVz6:22 a=TjNXssC_j7lpFel5tvFf:22",
        "X-Proofpoint-ORIG-GUID": "z2Q76NVu4GirgZFe1DuDP_WiEjKIpAba",
        "X-Proofpoint-GUID": "z2Q76NVu4GirgZFe1DuDP_WiEjKIpAba",
        "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 impostorscore=0 clxscore=1015 priorityscore=1501 spamscore=0\n lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 bulkscore=0\n phishscore=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.168.131;\n 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,\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\nSigned-off-by: Brian Cain <brian.cain@oss.qualcomm.com>\n---\n target/hexagon/internal.h  |  5 +++++\n target/hexagon/op_helper.c | 19 +++++++++++++++++++\n 2 files changed, 24 insertions(+)",
    "diff": "diff --git a/target/hexagon/internal.h b/target/hexagon/internal.h\nindex cd06ff41d4f..d94f84b46a7 100644\n--- a/target/hexagon/internal.h\n+++ b/target/hexagon/internal.h\n@@ -31,6 +31,11 @@ void hexagon_debug(CPUHexagonState *env);\n \n extern const char * const hexagon_regnames[TOTAL_PER_THREAD_REGS];\n \n+void G_NORETURN do_raise_exception(CPUHexagonState *env,\n+        uint32_t exception,\n+        target_ulong PC,\n+        uintptr_t retaddr);\n+\n #ifndef CONFIG_USER_ONLY\n extern const VMStateDescription vmstate_hexagon_cpu;\n #endif\ndiff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c\nindex 13e3c2c3a41..54b22f2fee4 100644\n--- a/target/hexagon/op_helper.c\n+++ b/target/hexagon/op_helper.c\n@@ -37,6 +37,25 @@\n #define SF_MANTBITS    23\n \n /* Exceptions processing helpers */\n+G_NORETURN\n+void do_raise_exception(CPUHexagonState *env, uint32_t exception,\n+                        target_ulong PC, uintptr_t retaddr)\n+{\n+    CPUState *cs = env_cpu(env);\n+#ifdef CONFIG_USER_ONLY\n+    qemu_log_mask(CPU_LOG_INT, \"%s: 0x%08x\\n\", __func__, exception);\n+#else\n+    qemu_log_mask(CPU_LOG_INT, \"%s: 0x%08x, @ %08\" PRIx32 \"\\n\",\n+                  __func__, exception, PC);\n+\n+    ASSERT_DIRECT_TO_GUEST_UNSET(env, exception);\n+#endif\n+\n+    env->gpr[HEX_REG_PC] = PC;\n+    cs->exception_index = exception;\n+    cpu_loop_exit_restore(cs, retaddr);\n+}\n+\n G_NORETURN void hexagon_raise_exception_err(CPUHexagonState *env,\n                                             uint32_t exception,\n                                             uintptr_t pc)\n",
    "prefixes": [
        "v3",
        "23/37"
    ]
}