get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2198299,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2198299/?format=api",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20260219191955.83815-10-philmd@linaro.org>",
    "date": "2026-02-19T19:19:11",
    "name": "[v2,09/50] gdbstub: Always infer gdb_num_core_regs when using XML file",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b620c5d20a5b24275641a19589ba2216683c862a",
    "submitter": {
        "id": 85046,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/85046/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "philmd@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260219191955.83815-10-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 492715,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/492715/?format=api",
            "date": "2026-02-19T19:19:03",
            "name": "gdbstub: Build once on various targets (single-binary)",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492715/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2198299/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=yAbR1uRF;\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 4fH3CZ2fG4z1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 20 Feb 2026 06:21:46 +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 1vt9aG-0000Zu-Ng; Thu, 19 Feb 2026 14:21:08 -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 1vt9aF-0000TV-3s\n for qemu-devel@nongnu.org; Thu, 19 Feb 2026 14:21:07 -0500",
            "from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a])\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 1vt9aD-0007tJ-7S\n for qemu-devel@nongnu.org; Thu, 19 Feb 2026 14:21:06 -0500",
            "by mail-wr1-x42a.google.com with SMTP id\n ffacd0b85a97d-4359a302794so1062397f8f.1\n for <qemu-devel@nongnu.org>; Thu, 19 Feb 2026 11:21:04 -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-43796a6b563sm50564138f8f.12.2026.02.19.11.21.01\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Thu, 19 Feb 2026 11:21:02 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1771528863; x=1772133663; 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=MToM/SYV6jWDuUwDT2OuuwA8a4FUOrFsveOqd2r/UZs=;\n b=yAbR1uRFRqwuc1Ycic0D+HZv3zYlW9GvpJ9E/PbxGIz+oKbiCUz71bxEv/ww9WytJj\n 6SXIIPfRieOD5gXAc/kLcBpVyGyAFypECUjTFVAhIZZEZ3fo7wxjr5Op8gqugVcXOr7J\n 6Ub7p1/qB7EK88mKQylYJfTusFAdDIhP2frcWs0u/onGvrIlYpPwsXnV29njAB8mUHQR\n LHk/YZ94puXhD/+wjXEX/HKFep6qawbJXG3jzkUsHtDxARFTCOACV2NhtnqAF28kcuzo\n JQoon+2WlB2gT4S5H+l5t0qoAhilwUEcqP2hdhRXzIiyziEStzusoqx0JxlmgTt6Cow9\n 1NtA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771528863; x=1772133663;\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=MToM/SYV6jWDuUwDT2OuuwA8a4FUOrFsveOqd2r/UZs=;\n b=uqaFHwR6dg71ApQNRVXd6KcMkz+2BSrlSuBoA+JpzL+wuwWW5Pjxw0VGM3Jee1JboO\n UQRHFvLGrHs9UK8dpvt5gEjEs+tRgmte9onlaj+XmED8WH6uFiaIVmllVAVhKwHzWjWv\n 2GSOnoA95lWsgvCpQR69xI0qHWiVVul+y0Mu4ZQCnodxMacrYM2ROWHG00GhJiHWAmLn\n tRkdYELWhoco4Pz9P7nsSgYshHQcXBe9eOrmphJ2Tt1B7HbsEMF+NI2yWKqqozuOybfL\n sVXw6qpdQ1Pj8blWxi0L5b0Rxp/wIPa3k8Z5jEQCvfLMAp6uJkSR5BXhDN9q98lkcpZi\n swVQ==",
        "X-Gm-Message-State": "AOJu0Yzhpov/knFss+OGDKBoHKsVuQeo7WGAQelJckqRF+8YtQzqZhVm\n sWNVJgmR/p1nDOnytdHU3e2fE2SOPCOb4CIDK38jRWTLScU+WFwzEmvVcWXzSCa4PGgMrF2PlRW\n 3NK0tNbgP3A==",
        "X-Gm-Gg": "AZuq6aIz0IVaTJ3wli/Tr0OhWNUpY8+vffaXQFbu4gZInk2NB39gwSd3uTCqH9yVQlt\n /6qGPidkNtmhgVf1lUBh+pw5pbn4AnVxzdmyfZYtY39BPAEnzV0CxJrT2QOjUMoCKojVLERyo4R\n 7Z30KcMM57n71cHOm6BDfPROgHmzQVAYKJtCF5FSbL2Gd3lyOmeE9BdWssOUAnoEvaN3zz6e/D/\n kQu1PV1oyHf4tbUpS1SlMJD9MlktvvagKmikRAoh2yYb+R8dqvGkkQmkOGzIja4OE11xSPZwxRM\n Nn0ueaIy5fP7/t2eRUaKoT9rVJ5M/MKpj/MIJuF8rr89+c4rncDGkJN5xhAoiom2HJDsQCPBgp7\n GeFtMeSHVkPglgCngkWy/+G5NiH9W/W7WayEFMLCsnm1lAw0M2wjyF7zKm+SJ8qkJfXaR1sh9/v\n 9gmapK8R8sI8mJNV9qAM4HayKz+UoWYdbjQXE6sPjseCrnCkaFsGEqJPo5D1nWTFNqvkLmpyXJS\n tp5cYzy2RE=",
        "X-Received": "by 2002:a05:6000:2c12:b0:431:2cb:d335 with SMTP id\n ffacd0b85a97d-4379db98794mr34177380f8f.34.1771528863114;\n Thu, 19 Feb 2026 11:21:03 -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 Richard Henderson <richard.henderson@linaro.org>, qemu-s390x@nongnu.org,\n\t=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-riscv@nongnu.org,\n qemu-ppc@nongnu.org,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Eduardo Habkost <eduardo@habkost.net>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>,\n Nicholas Piggin <npiggin@gmail.com>, Chinmay Rath <rathc@linux.ibm.com>,\n Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,\n Artyom Tarasenko <atar4qemu@gmail.com>",
        "Subject": "[PATCH v2 09/50] gdbstub: Always infer gdb_num_core_regs when using\n XML file",
        "Date": "Thu, 19 Feb 2026 20:19:11 +0100",
        "Message-ID": "<20260219191955.83815-10-philmd@linaro.org>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260219191955.83815-1-philmd@linaro.org>",
        "References": "<20260219191955.83815-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::42a;\n envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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": "Rather correct inferred count over invalid manual one.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n include/hw/core/cpu.h | 4 ++--\n gdbstub/gdbstub.c     | 3 +--\n target/alpha/cpu.c    | 1 -\n target/ppc/cpu_init.c | 2 --\n target/sparc/cpu.c    | 1 -\n 5 files changed, 3 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h\nindex ef20cb356a6..4bdc9d62a4d 100644\n--- a/include/hw/core/cpu.h\n+++ b/include/hw/core/cpu.h\n@@ -128,9 +128,9 @@ struct SysemuCPUOps;\n  * @gdb_adjust_breakpoint: Callback for adjusting the address of a\n  *       breakpoint.  Used by AVR to handle a gdb mis-feature with\n  *       its Harvard architecture split code and data.\n- * @gdb_num_core_regs: Number of core registers accessible to GDB or 0 to infer\n- *                     from @gdb_core_xml_file.\n  * @gdb_core_xml_file: File name for core registers GDB XML description.\n+ * @gdb_num_core_regs: Number of core registers accessible to GDB if no\n+ *                     @gdb_core_xml_file available (otherwise inferred).\n  * @gdb_get_core_xml_file: Optional callback that returns the file name for\n  * the core registers GDB XML description. The returned value is expected to\n  * be a simple constant string: the caller will not g_free() it. If this\ndiff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c\nindex 474f6712f8d..90f4b95135b 100644\n--- a/gdbstub/gdbstub.c\n+++ b/gdbstub/gdbstub.c\n@@ -593,8 +593,7 @@ void gdb_init_cpu(CPUState *cpu)\n         gdb_register_feature(cpu, 0,\n                              cc->gdb_read_register, cc->gdb_write_register,\n                              feature);\n-        assert(!cc->gdb_num_core_regs\n-               || cc->gdb_num_core_regs == feature->num_regs);\n+        assert(!cc->gdb_num_core_regs);\n         cpu->gdb_num_regs = cpu->gdb_num_g_regs = feature->num_regs;\n     }\n \ndiff --git a/target/alpha/cpu.c b/target/alpha/cpu.c\nindex 1780db7d1e2..e0e13d31e55 100644\n--- a/target/alpha/cpu.c\n+++ b/target/alpha/cpu.c\n@@ -295,7 +295,6 @@ static void alpha_cpu_class_init(ObjectClass *oc, const void *data)\n     cc->disas_set_info = alpha_cpu_disas_set_info;\n \n     cc->tcg_ops = &alpha_tcg_ops;\n-    cc->gdb_num_core_regs = 67;\n }\n \n #define DEFINE_ALPHA_CPU_TYPE(base_type, cpu_model, initfn) \\\ndiff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c\nindex 0b5610d02d5..3d932a5642b 100644\n--- a/target/ppc/cpu_init.c\n+++ b/target/ppc/cpu_init.c\n@@ -7551,8 +7551,6 @@ static void ppc_cpu_class_init(ObjectClass *oc, const void *data)\n                       MMU_INST_FETCH == 2 && PAGE_READ == 1 &&\n                       PAGE_WRITE == 2 && PAGE_EXEC == 4);\n #endif\n-\n-    cc->gdb_num_core_regs = 70;\n     cc->gdb_arch_name = ppc_gdb_arch_name;\n #if defined(TARGET_PPC64)\n     cc->gdb_core_xml_file = \"power64-core.xml\";\ndiff --git a/target/sparc/cpu.c b/target/sparc/cpu.c\nindex 3991681d1d1..c11d600dc30 100644\n--- a/target/sparc/cpu.c\n+++ b/target/sparc/cpu.c\n@@ -1092,7 +1092,6 @@ static void sparc_cpu_class_init(ObjectClass *oc, const void *data)\n \n #if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)\n     cc->gdb_core_xml_file = \"sparc64-core.xml\";\n-    cc->gdb_num_core_regs = 86;\n #else\n     cc->gdb_num_core_regs = 72;\n #endif\n",
    "prefixes": [
        "v2",
        "09/50"
    ]
}