get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226458,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226458/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422125250.1303100-12-alex.bennee@linaro.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260422125250.1303100-12-alex.bennee@linaro.org>",
    "date": "2026-04-22T12:52:28",
    "name": "[v3,11/32] target/arm: migrate debug syndromes to registerfields",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ecdb26468f68b6033c008f884d888d2f0f8dcb04",
    "submitter": {
        "id": 39532,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/39532/?format=api",
        "name": "Alex Bennée",
        "email": "alex.bennee@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422125250.1303100-12-alex.bennee@linaro.org/mbox/",
    "series": [
        {
            "id": 501008,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501008/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501008",
            "date": "2026-04-22T12:52:20",
            "name": "target/arm: fully model WFxT instructions for A-profile",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/501008/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226458/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226458/checks/",
    "tags": {},
    "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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=EyQ184mO;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.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 4g0zhH1Pcjz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 22:54:39 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wFX5g-0006nV-Kt; Wed, 22 Apr 2026 08:54:04 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1wFX4l-000617-AN\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 08:53:07 -0400",
            "from mail-wm1-x336.google.com ([2a00:1450:4864:20::336])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1wFX4i-0005Uu-1V\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 08:53:07 -0400",
            "by mail-wm1-x336.google.com with SMTP id\n 5b1f17b1804b1-488b8bc6bc9so38386905e9.3\n for <qemu-devel@nongnu.org>; Wed, 22 Apr 2026 05:53:03 -0700 (PDT)",
            "from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fc0f82bbsm753005695e9.3.2026.04.22.05.52.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 05:52:55 -0700 (PDT)",
            "from draig.lan (localhost [IPv6:::1])\n by draig.lan (Postfix) with ESMTP id CAF0560EFD;\n Wed, 22 Apr 2026 13:52:51 +0100 (BST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776862382; x=1777467182; 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=7nsukKtrqlrIyVc1W2h4m0opSAHZeyebGQjoHRKe/ww=;\n b=EyQ184mOwMarJxWi0h2hAhZAPvXwVuO2Ierk7o81EfUkuut5pkJkycujVwpfGJPTvf\n lCmCBfSqTekP7QwGVABsO2yOBZXTGYQlevlJFuwKiRH7A337gp2sURQ+ZG3jqOPtKgr6\n U28/TIRdzpfUioQdVrkB1QitfxUWiaEdwpCRsCDszWBDdYb0H+b1M2B5qJSezEwseE2T\n js7FZvgL0bZ4j+gn3ZE9df13x1yW362/Gjpxg7xdf8t24TT7oPworQu8dE0koPMYlq0N\n LTtUJYV0eaRtN4exyrTu8YVYTj+dxZuuLpX8qOiA9VDRLVV++BCu+8bui9EfavXMjhad\n a4Hw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776862382; x=1777467182;\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=7nsukKtrqlrIyVc1W2h4m0opSAHZeyebGQjoHRKe/ww=;\n b=NR7myxfV2cIDoQunpuAockorXaA4IEsz0D4FTEzTHbHmS7zk3HEWirN2AXbfXBD94E\n Cj/x4H6RwkUyU0sb0nw/v8Cdubtki12NwcaaWZ5Bk0eilBbH7x41WK9Po3LAmpI6zOuf\n XUwM1G08LKHCJdDCmEOLTiJJscm6zV24Tgpxw+osNx9yI87P0drmXqY9iGsrBlJmSP+8\n 4tA4GaDDUZlmSP67yMF2IR68AOC8VhHSwLFFVgK9/ZX/RcVJ00BeQ6U7yX1VysIF9eHg\n v2XIfpz5ofv5xcvJ/BHzolh5Q/wKO8Vr29IwdET/8edrju9EjLKjQuoVembOStad4RvK\n NhaQ==",
        "X-Gm-Message-State": "AOJu0YxFxZS81cAgOHovxrTm2cAsA0diMkR7MsO1Ta9ejtUHeQYJEHYK\n Ob7mnOpPKde8ukdXHByhofkNR5eZhhmzxAS1BIQkfEjvxl6kiVKP2c6qrSoA5EFHkeA=",
        "X-Gm-Gg": "AeBDiesuKcQz812CfA5KadG7vwbe2Gm2vt192numuqjKeBh529p1Kes9uAonQh8xHFI\n v4iUtxn0D+j03gJKHuAfqp6oX6PsTvrlcCyxoQa8bR0CVNR3RtnCov5RC4Tk1O+MsDyhpbExd4H\n hnTyjzw2iwqgUspSzEb12B8myU/LM4TtctXGfvYZ4XwKzYMu+6sh85QU1k4Va/kUA7404IpaSdW\n uG4nEo5buqEdXF8zy3knOgTuGDlNINV96BdtLzZjoz/tj4ESEm2PYpLydsu9YJpqKKnQ7SW/Mst\n BuRM+7gRyYTBLsVYT02wCACeZF7O0RyLDv6Vd6C0oavQIyix3Mtihk8m3LgZTEtf/gvPt+rwgJy\n aI9gp/tbIGkUf/Vd58u2z9Vv9sbGJEFqMjEBtHSi5RnwHPTXr4L74ClMgCm60Eq3q+cuBBlmFd1\n DcVhqHSAoYFg/o4qYjUMDLXF2JZgy3WeYdxQ==",
        "X-Received": "by 2002:a05:600c:a105:b0:486:fb69:4960 with SMTP id\n 5b1f17b1804b1-488fb7786e4mr229329295e9.19.1776862382062;\n Wed, 22 Apr 2026 05:53:02 -0700 (PDT)",
        "From": "=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Pedro Barbuda <pbarbuda@microsoft.com>, Alexander Graf <agraf@csgraf.de>,\n Peter Maydell <peter.maydell@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Mohamed Mediouni <mohamed@unpredictable.fr>, kvm@vger.kernel.org,\n qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Richard Henderson <richard.henderson@linaro.org>",
        "Subject": "[PATCH v3 11/32] target/arm: migrate debug syndromes to\n registerfields",
        "Date": "Wed, 22 Apr 2026 13:52:28 +0100",
        "Message-ID": "<20260422125250.1303100-12-alex.bennee@linaro.org>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260422125250.1303100-1-alex.bennee@linaro.org>",
        "References": "<20260422125250.1303100-1-alex.bennee@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2a00:1450:4864:20::336;\n envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable 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": "Migrate syn_swstep, syn_watchpoint and syn_breakpoint to the\nregisterfields API.\n\nReviewed-by: Richard Henderson <richard.henderson@linaro.org>\nSigned-off-by: Alex Bennée <alex.bennee@linaro.org>\n---\n target/arm/syndrome.h | 54 ++++++++++++++++++++++++++++++++++++++-----\n 1 file changed, 48 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/target/arm/syndrome.h b/target/arm/syndrome.h\nindex 2031b3704fb..2ad6b97aea5 100644\n--- a/target/arm/syndrome.h\n+++ b/target/arm/syndrome.h\n@@ -595,22 +595,64 @@ static inline uint32_t syn_data_abort_vncr(int ea, int wnr, int fsc)\n     return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Software Step exception.\n+ */\n+FIELD(SOFTSTEP_ISS, IFSC, 0, 6)\n+FIELD(SOFTSTEP_ISS, EX, 6, 1)\n+FIELD(SOFTSTEP_ISS, ISV, 24, 1)\n+\n static inline uint32_t syn_swstep(int same_el, int isv, int ex)\n {\n-    return (EC_SOFTWARESTEP << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n-        | ARM_EL_IL | (isv << 24) | (ex << 6) | 0x22;\n+    uint32_t res = syn_set_ec(0, EC_SOFTWARESTEP + same_el);\n+    res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+    res = FIELD_DP32(res, SOFTSTEP_ISS, ISV, isv);\n+    res = FIELD_DP32(res, SOFTSTEP_ISS, EX, ex);\n+    res = FIELD_DP32(res, SOFTSTEP_ISS, IFSC, 0x22);\n+\n+    return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Watchpoint exception\n+ */\n+FIELD(WATCHPOINT_ISS, DFSC, 0, 6)\n+FIELD(WATCHPOINT_ISS, WNR, 6, 1)\n+FIELD(WATCHPOINT_ISS, CM, 8, 1)\n+FIELD(WATCHPOINT_ISS, FnV, 10, 1)\n+FIELD(WATCHPOINT_ISS, VNCR, 13, 1) /* FEAT_NV2 */\n+FIELD(WATCHPOINT_ISS, FnP, 15, 1)\n+FIELD(WATCHPOINT_ISS, WPF, 16, 1)\n+/* bellow mandatory from FEAT_Debugv8p9 */\n+FIELD(WATCHPOINT_ISS, WPTV, 17, 1) /* FEAT_Debugv8p2 - WPT valid */\n+FIELD(WATCHPOINT_ISS, WPT, 18, 6) /* FEAT_Debugv8p2 - missing WP number */\n+\n static inline uint32_t syn_watchpoint(int same_el, int cm, int wnr)\n {\n-    return (EC_WATCHPOINT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n-        | ARM_EL_IL | (cm << 8) | (wnr << 6) | 0x22;\n+    uint32_t res = syn_set_ec(0, EC_WATCHPOINT + same_el);\n+    res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+    res = FIELD_DP32(res, WATCHPOINT_ISS, CM, cm);\n+    res = FIELD_DP32(res, WATCHPOINT_ISS, WNR, wnr);\n+    res = FIELD_DP32(res, WATCHPOINT_ISS, DFSC, 0x22);\n+\n+    return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Breakpoint or a Vector Catch\n+ * debug exception.\n+ */\n+FIELD(BREAKPOINT_ISS, IFSC, 0, 6)\n+\n static inline uint32_t syn_breakpoint(int same_el)\n {\n-    return (EC_BREAKPOINT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n-        | ARM_EL_IL | 0x22;\n+    uint32_t res = syn_set_ec(0, EC_BREAKPOINT + same_el);\n+    res = FIELD_DP32(res, SYNDROME, IL, 1);\n+    res = FIELD_DP32(res, BREAKPOINT_ISS, IFSC, 0x22);\n+\n+    return res;\n }\n \n static inline uint32_t syn_wfx(int cv, int cond, int ti, bool is_16bit)\n",
    "prefixes": [
        "v3",
        "11/32"
    ]
}