get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228658,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228658/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260427080738.77138-3-philmd@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": "<20260427080738.77138-3-philmd@linaro.org>",
    "date": "2026-04-27T08:07:08",
    "name": "[v4,02/32] target/sparc/monitor: Dump all registers as 32-bit",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7d083057694592b35b190158fc23ec249e6c5f9b",
    "submitter": {
        "id": 85046,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/85046/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "philmd@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260427080738.77138-3-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 501599,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501599/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501599",
            "date": "2026-04-27T08:07:06",
            "name": "monitor: Remove need of per-target handlers",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/501599/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228658/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228658/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=OlmxYBXK;\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 4g3x5k2K4Nz1yJs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 18:08:26 +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 1wHH0a-0000ZD-Fv; Mon, 27 Apr 2026 04:08:00 -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 <philmd@linaro.org>) id 1wHH0Z-0000Y6-1h\n for qemu-devel@nongnu.org; Mon, 27 Apr 2026 04:07:59 -0400",
            "from mail-wm1-x335.google.com ([2a00:1450:4864:20::335])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wHH0X-0001FW-Ez\n for qemu-devel@nongnu.org; Mon, 27 Apr 2026 04:07:58 -0400",
            "by mail-wm1-x335.google.com with SMTP id\n 5b1f17b1804b1-483487335c2so96617065e9.2\n for <qemu-devel@nongnu.org>; Mon, 27 Apr 2026 01:07:57 -0700 (PDT)",
            "from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a52583fe7sm448330885e9.13.2026.04.27.01.07.54\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Mon, 27 Apr 2026 01:07:55 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777277276; x=1777882076; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=CUaWTZovjDgyCAn2d0HALI7PgHwWvhiaIIr4lldEoLI=;\n b=OlmxYBXKMNX/s24tGU0hfp1ldWYvmQZ8ErQzKn7N9IqelE/JxqwxBDYAw006l/e0iU\n WFA76SgaJ5TBDFgJRHw/HSHKKJXUSn2dHSX32oXmoKjXQGVnN3/TvI+dx1C4R49AWmM/\n pD9bZoUMFh1I0eh723KMDcNcIWZInc6USW7UCnTclCr67MVHcSFfqlO0SY4ntfq5B4DN\n hsy6kr/apD3mxrudeggEpedn8TR0dtd3WdVrWlbrpRQBQrUOAF2orgOPkXsDSyIgxvvZ\n 6qtza+A5za7GVpChnM7ScmxAsnAPWcvW5OIM95X6hoXZ1sVEbh/1LrdXOVQ3A+P2KQO5\n ttMg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777277276; x=1777882076;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=CUaWTZovjDgyCAn2d0HALI7PgHwWvhiaIIr4lldEoLI=;\n b=UTPIdgI9X0v3C/QZqaC3epdvu3f+oqy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j2IOt3YwE7+\n PlUyCFPO0ISWWJcUVLNC86j4Mt+tDe3fvz0weiz6WrFTQTs3xhzQx85yrfcjeASCKkfWtklWe1J\n G3QJMQD65E=",
        "X-Received": "by 2002:a05:600c:3150:b0:480:3ad0:93bf with SMTP id\n 5b1f17b1804b1-488fb7930famr600071025e9.24.1777277275775;\n Mon, 27 Apr 2026 01:07:55 -0700 (PDT)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>",
        "To": "Markus Armbruster <armbru@redhat.com>,\n\tqemu-devel@nongnu.org",
        "Subject": "[PATCH v4 02/32] target/sparc/monitor: Dump all registers as 32-bit",
        "Date": "Mon, 27 Apr 2026 10:07:08 +0200",
        "Message-ID": "<20260427080738.77138-3-philmd@linaro.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260427080738.77138-1-philmd@linaro.org>",
        "References": "<20260427080738.77138-1-philmd@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::335;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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=ham 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": "All these SPARC64 registers are 32-bit since their introduction\nin commit 3475187dd81 (\"sparc64 merge\"), see target/sparc/cpu.h:\n\n  511 #if defined(TARGET_SPARC64)\n  ...\n  515     uint32_t asi;\n  516     uint32_t pstate;\n  ...\n  519     uint32_t cansave, canrestore, otherwin, wstate, cleanwin;\n\nSet MonitorDef::type to MD_I32 to dump them as 32-bit. This removes\na pointless unsigned sign-extension on 64-bit binary.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nReviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>\n---\n target/sparc/monitor.c | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/target/sparc/monitor.c b/target/sparc/monitor.c\nindex a60671a60a4..e9300ded4ad 100644\n--- a/target/sparc/monitor.c\n+++ b/target/sparc/monitor.c\n@@ -41,13 +41,13 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict)\n \n const MonitorDef monitor_defs[] = {\n #ifdef TARGET_SPARC64\n-    { \"asi\", offsetof(CPUSPARCState, asi) },\n-    { \"pstate\", offsetof(CPUSPARCState, pstate) },\n-    { \"cansave\", offsetof(CPUSPARCState, cansave) },\n-    { \"canrestore\", offsetof(CPUSPARCState, canrestore) },\n-    { \"otherwin\", offsetof(CPUSPARCState, otherwin) },\n-    { \"wstate\", offsetof(CPUSPARCState, wstate) },\n-    { \"cleanwin\", offsetof(CPUSPARCState, cleanwin) },\n+    { \"asi\", offsetof(CPUSPARCState, asi), NULL, MD_I32 },\n+    { \"pstate\", offsetof(CPUSPARCState, pstate), NULL, MD_I32 },\n+    { \"cansave\", offsetof(CPUSPARCState, cansave), NULL, MD_I32 },\n+    { \"canrestore\", offsetof(CPUSPARCState, canrestore), NULL, MD_I32 },\n+    { \"otherwin\", offsetof(CPUSPARCState, otherwin), NULL, MD_I32 },\n+    { \"wstate\", offsetof(CPUSPARCState, wstate), NULL, MD_I32 },\n+    { \"cleanwin\", offsetof(CPUSPARCState, cleanwin), NULL, MD_I32 },\n #endif\n     { NULL },\n };\n",
    "prefixes": [
        "v4",
        "02/32"
    ]
}