get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2202612,
    "url": "http://patchwork.ozlabs.org/api/patches/2202612/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260227213958.21170-4-philmd@linaro.org/",
    "project": {
        "id": 69,
        "url": "http://patchwork.ozlabs.org/api/projects/69/?format=api",
        "name": "QEMU powerpc development",
        "link_name": "qemu-ppc",
        "list_id": "qemu-ppc.nongnu.org",
        "list_email": "qemu-ppc@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260227213958.21170-4-philmd@linaro.org>",
    "list_archive_url": null,
    "date": "2026-02-27T21:39:57",
    "name": "[3/4] gdbstub: Emit base_register index in GDBFeature entries",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "25f1ede89db0c5bec96ce7dcdf492d30413cb4a8",
    "submitter": {
        "id": 85046,
        "url": "http://patchwork.ozlabs.org/api/people/85046/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "philmd@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260227213958.21170-4-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 493819,
            "url": "http://patchwork.ozlabs.org/api/series/493819/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/list/?series=493819",
            "date": "2026-02-27T21:39:54",
            "name": "gdbstub: Always infer base register index from GDB XML",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/493819/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2202612/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2202612/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-ppc-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=nZcY9jq+;\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-ppc-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 4fN1x93W1rz1xxx\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Feb 2026 08:41:33 +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-ppc-bounces@nongnu.org>)\n\tid 1vw5ZT-0007KC-HL; Fri, 27 Feb 2026 16:40:27 -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 <philmd@linaro.org>) id 1vw5ZS-0007Jk-5K\n for qemu-ppc@nongnu.org; Fri, 27 Feb 2026 16:40:26 -0500",
            "from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a])\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 1vw5ZQ-0001bn-I2\n for qemu-ppc@nongnu.org; Fri, 27 Feb 2026 16:40:25 -0500",
            "by mail-wm1-x32a.google.com with SMTP id\n 5b1f17b1804b1-4833115090dso25045115e9.3\n for <qemu-ppc@nongnu.org>; Fri, 27 Feb 2026 13:40:24 -0800 (PST)",
            "from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-4399c60e404sm10710934f8f.8.2026.02.27.13.40.21\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 27 Feb 2026 13:40:22 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1772228423; x=1772833223; 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=xq9AbVEGMJOUmRpUy7lw08FvOFGT4iR2NVIvt7Ek0VQ=;\n b=nZcY9jq+7YMSQKbCOPoi9Kj65qVmj9c/1XImSVczqaWJ0B7S7CUWpvvKIMbqlfSeyx\n +KZePf4Va44Lr55snUoCrHTxvbABoGuCbYINZN4J7gnQaTYSwjUSVOnWq3mlgpo5b0ec\n MOucoxk70ikcAF++QcS7gcWjW8N9QeM2kdj5Gvfxz/kukGhJwcbXxksr018Fl+GeBS5O\n 60b2of6DmjxHNUpKsVDeiBpSyPh/8l62jl5Ij5IrSATrKCbMPozXzoyvh458mhSvAU5M\n hBbrUbDxTURkE2ujCmQmqOHdLOfNwrTqr9XKjwsr1YLdl9lARb/ahg8b+idnLCibnbSg\n DFpw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1772228423; x=1772833223;\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=xq9AbVEGMJOUmRpUy7lw08FvOFGT4iR2NVIvt7Ek0VQ=;\n b=MNY35lLnnJxyUBIe5yJmUFxKY6zR1h8JKv4+XITQyW/kzPJSGxqhCgwn/yIX7/bTVs\n pAtK9HNDzRfaV/JeMn489RQlwJXYiXSEWSeNr+/4NeQoS7SkT2iesNgRKKJM2dTC+fJE\n 7OV59VJ6ECZ/DIfNsfLZjTAzLRAF1yLFAVbubIo3IP7kbZoHR6BIJ3YslGvKeHTIaolB\n EPbMc1oT51AkqSofb3LkHF0HGqiwO3U9pCjVw6l25554GR7W2CjtPmEM1foxV1Ml/L6K\n pa4QAuTH04zQjj3VW9LxlJXNzSCwM9U2p8JrjWCbkLV0IXhiclw1fABSvducvj3qxlg3\n YLGg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWDCbClY/dIADg1THSn8EfZh8cqqAQdEuVvQ1hVXOTCbmXr5JhUhZl1SYwJvp3LT1LgFlxRaRulCQ==@nongnu.org",
        "X-Gm-Message-State": "AOJu0Yzh4Mmow8QoOnnr/NThB387MW0AOKodZM6oJmb0idCAJQRFD9pX\n dtJ0YQ88H9iR6ty4ZPGt6T23Ps5bQQjVolYT25JdvIvKFW/pCwSvTf+5Lx3kwe1I0ec=",
        "X-Gm-Gg": "ATEYQzwX97dKI3+9NloNcJmM1lCE86iiVZUWFyVqKcJBKNKDe+zmPYPlAaaLxXDSzV1\n W/Vc+wvWHhnGexfSTuFVo2Sbn1PJtFgWDXSQN8eZKynf/az2T7j2kEv5KhMrve9dT/geMIODtZb\n 3N8IwhONeelEY+6taG6zYCd1VX78PsreF04Ep5Fl+f+SlUtPVB98UrA8bnSe1GIcOdgsKXA39rx\n +BsnztZRzd5iHn534ywxj24pCBUq6pyfJ5karLFRPEsXJ/TsfZIqHxAojMFG0kmjfhx9kA6sudO\n qhUORyvenrqBc0BPGAho05p15qNIzm77l3m5dzokz3UOH1RV9jE+8VRTB7M3vuOpsXXws76SkWO\n uPMv3cdsQR/AWIrNIZq9DiQACbL4NxBzwk0voSfaZdEs60L18x/Biz+fvPOKjsIyHHs08RUWRvr\n DPkU4qgJ83TKl5nYUbyvR1Uo2yMmDDudf+oG2ol80hLJBfq5LhdQfqmuVHMIVUSTXPVabuLa/ZL\n 3fUFqM2rVE=",
        "X-Received": "by 2002:a05:600c:46c4:b0:483:6bb1:117 with SMTP id\n 5b1f17b1804b1-483c9c0fb97mr63753645e9.32.1772228422949;\n Fri, 27 Feb 2026 13:40:22 -0800 (PST)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Florian Hofhammer <florian.hofhammer@fhofhammer.de>, =?utf-8?q?Alex_Benn?=\n\t=?utf-8?q?=C3=A9e?= <alex.bennee@linaro.org>,\n Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, qemu-ppc@nongnu.org",
        "Subject": "[PATCH 3/4] gdbstub: Emit base_register index in GDBFeature entries",
        "Date": "Fri, 27 Feb 2026 22:39:57 +0100",
        "Message-ID": "<20260227213958.21170-4-philmd@linaro.org>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260227213958.21170-1-philmd@linaro.org>",
        "References": "<20260227213958.21170-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::32a;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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-ppc@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<qemu-ppc.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-ppc>",
        "List-Post": "<mailto:qemu-ppc@nongnu.org>",
        "List-Help": "<mailto:qemu-ppc-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Record the base register index in the generated C file.\n\nCheck at runtime that either @g_pos argument of\ngdb_register_coprocessor() is zero, or it the base register\nindex.\n\nThis change pass 'make check-tcg' test suite, which runs the\ntests/tcg/multiarch/gdbstub/registers.py test, itself calling\ngdb_register_coprocessor() for each target tested.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n include/exec/gdbstub.h  | 1 +\n gdbstub/gdbstub.c       | 2 ++\n scripts/feature_to_c.py | 1 +\n 3 files changed, 4 insertions(+)",
    "diff": "diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h\nindex bd7182c4d32..12e7b5b7282 100644\n--- a/include/exec/gdbstub.h\n+++ b/include/exec/gdbstub.h\n@@ -6,6 +6,7 @@ typedef struct GDBFeature {\n     const char *xml;\n     const char *name;\n     const char * const *regs;\n+    int base_reg;\n     int num_regs;\n } GDBFeature;\n \ndiff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c\nindex 90f4b95135b..6eadae3804e 100644\n--- a/gdbstub/gdbstub.c\n+++ b/gdbstub/gdbstub.c\n@@ -610,6 +610,8 @@ void gdb_register_coprocessor(CPUState *cpu,\n     guint i;\n     int base_reg = cpu->gdb_num_regs;\n \n+    assert(!g_pos || g_pos == feature->base_reg);\n+\n     for (i = 0; i < cpu->gdb_regs->len; i++) {\n         /* Check for duplicates.  */\n         s = &g_array_index(cpu->gdb_regs, GDBRegisterState, i);\ndiff --git a/scripts/feature_to_c.py b/scripts/feature_to_c.py\nindex 1329695ad04..a52cd2e9ec6 100644\n--- a/scripts/feature_to_c.py\n+++ b/scripts/feature_to_c.py\n@@ -102,6 +102,7 @@ def writeliteral(indent, bytes):\n         sys.stdout.write(',\\n')\n \n     sys.stdout.write( '        },\\n')\n+    sys.stdout.write(f'        .base_reg = {base_reg},\\n')\n     sys.stdout.write(f'        .num_regs = {num_regs},\\n')\n     sys.stdout.write( '    },\\n')\n \n",
    "prefixes": [
        "3/4"
    ]
}