Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2197070/?format=api
{ "id": 2197070, "url": "http://patchwork.ozlabs.org/api/patches/2197070/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260216225228.53959-9-philmd@linaro.org/", "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": "<20260216225228.53959-9-philmd@linaro.org>", "list_archive_url": null, "date": "2026-02-16T22:52:24", "name": "[08/11] target/sparc: Remove MonitorDef register entries available via gdbstub", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e9b24e3864b46e90702e3ce68802ed8c77f5b006", "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-devel/patch/20260216225228.53959-9-philmd@linaro.org/mbox/", "series": [ { "id": 492361, "url": "http://patchwork.ozlabs.org/api/series/492361/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492361", "date": "2026-02-16T22:52:16", "name": "monitor/hmp: Automatically handle gdb-xml exposed registers", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492361/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2197070/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2197070/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=hFYSWW6e;\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 4fFJ3Z3v3dz1xwD\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 09:53: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 1vs7TJ-0003Ds-Uo; Mon, 16 Feb 2026 17:53:41 -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 1vs7TC-00034d-D0\n for qemu-devel@nongnu.org; Mon, 16 Feb 2026 17:53:34 -0500", "from mail-wm1-x330.google.com ([2a00:1450:4864:20::330])\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 1vs7TA-0006eJ-Ch\n for qemu-devel@nongnu.org; Mon, 16 Feb 2026 17:53:33 -0500", "by mail-wm1-x330.google.com with SMTP id\n 5b1f17b1804b1-4836f4cbe0bso25767855e9.3\n for <qemu-devel@nongnu.org>; Mon, 16 Feb 2026 14:53:31 -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 5b1f17b1804b1-4835d99e194sm356624765e9.8.2026.02.16.14.53.29\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Mon, 16 Feb 2026 14:53:30 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1771282411; x=1771887211; 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=z4b7EKIXUxIIWUL8kF3shWPR4w8ejLWmhqz7rlqrrl8=;\n b=hFYSWW6eJjSmR+pHPpMb3g0zGZ9OhhpNpedB3U68f3vD4XtJmTQa22/pRi6ip7ehe4\n DWjhFS97+M4emOgEZgNRONV8pHeiy4orrgYprGu/uTxaLyJ733ZpCvfwL7BVLQ/PAZNN\n iXBaba86cWxW9NSY6i52ODb8z97XCd8HnKqvTW6jX6PRlFY0czMlfap8uEZr7uBM35i2\n cP9qdWxj/henB8TeE7cf9LwlOBZrVgP38VrmPcT/DtXK9LcqqKGqWJxvSGRLMT8YWAi5\n rSbcmDLmnY6A/htTpQrAOalrFDjO70/qJZ8OUQxQ/g07rkS+ozWHsgg1jQgKsqfATkvn\n 4L0g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771282411; x=1771887211;\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=z4b7EKIXUxIIWUL8kF3shWPR4w8ejLWmhqz7rlqrrl8=;\n b=CievFM0W0JQ1Ck9QppZzb9bcN4gYp6DAkbLiK8MXuJqoW84jpA13PfW+AeHz/dPNWl\n Oy1Lwsb+KJuR7oT6FgKDTMcfaN2vTRZe+8biH+LLuNpWNtdY/S2hSb4OOvkcQ21lg8bK\n uT/3YtZOeTStpo4cgJPWyC095z4oem14DjZgZC9rLI8ndWzqOELiT3nKbWwVErlZNXTL\n dik2z0QF3liEa8zWT+xvyDQUKD/26SsgBkDZkX1zxWc3LlQxq6XTGbkdCJT2wQ3BdrYg\n 0QMTP32QE7yWhNBQIlPDuIly7BqNjEGV+v7M+AGi8y80D96JY/kUrq7xE20m8epX+JTY\n 03Iw==", "X-Gm-Message-State": "AOJu0Yw9fzsCa3AqOIaFHgLlXcf7N9qKG51i3DVJ0PEhbumBjPUsc0VA\n xpGDGKKNthE9YKQ0B7HKBSi1Yn4eXIGlFvJcZCF72hFPOf3Q9xY9km57T0KE5pLV4LZJdbBnDMc\n CBbYYK+A=", "X-Gm-Gg": "AZuq6aJjKvtinI2yqd/VGKl0jqctyCWeUvxUE9shxcgcMqDBbT+dKRW7HT8BtiJmxAz\n wwvTB88Qbv2HMPv2scWfiIQD7g4GjADIp/WJ1yhw9JRHhC1gzRmoIdkvvwltD6EUeIdfChn44PX\n Q4mgclx++OFGeno9ih3U4lTn+gtxqaMEciRG9FjRPXZn4Mk4DZW6te32A4KM+rOTcDCRcwBpDtE\n UantCIHg1nkDS3IMjzg8p0/3HEZfxdJdWXgCbk8xQTJyQ1AqrhL9C+xhTEX85ysmL7Xt6HAyC5H\n RayZ7qylV5SyYOdx53OyPbnFLQ0V/XAEJ0zyYznqZ3dB3a5pfI2GgF/jJv4R+OWu24tCN8IUc90\n WrMRyvbEVLE/aB6ivUrb25jl6Yaqy1XlQTg1zniIps5gqrQBF24T1XuTPDa1h0J+4v6HoKlyCVN\n 83QwxjApI1QYsruwEijMhwXEl/MCIrBPZkw07veXe3r1QeBkSRuW1nKoo4bQ8F/lOxuTHxV31As\n GuoqXkV3AY=", "X-Received": "by 2002:a05:600c:3e05:b0:480:1e9e:f9b with SMTP id\n 5b1f17b1804b1-4838dbae8b7mr39855925e9.16.1771282410582;\n Mon, 16 Feb 2026 14:53:30 -0800 (PST)", "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "Laurent Vivier <laurent@vivier.eu>,\n \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n Nicholas Piggin <npiggin@gmail.com>, Chinmay Rath <rathc@linux.ibm.com>,\n\t=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Zhao Liu <zhao1.liu@intel.com>,\n Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Artyom Tarasenko <atar4qemu@gmail.com>,\n Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>,\n Gustavo Romero <gustavo.romero@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>, unisono@quyllur.org, =?utf-8?q?Philipp?=\n\t=?utf-8?q?e_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, qemu-ppc@nongnu.org", "Subject": "[PATCH 08/11] target/sparc: Remove MonitorDef register entries\n available via gdbstub", "Date": "Mon, 16 Feb 2026 23:52:24 +0100", "Message-ID": "<20260216225228.53959-9-philmd@linaro.org>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<20260216225228.53959-1-philmd@linaro.org>", "References": "<20260216225228.53959-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::330;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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": "All these registers are already provided by via gdbstub parsed XML\nand handler by the gdb_get_register() helper in the monitor/hmp.c\nfile. Remove as now unreachable code.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n target/sparc/monitor.c | 107 -----------------------------------------\n 1 file changed, 107 deletions(-)", "diff": "diff --git a/target/sparc/monitor.c b/target/sparc/monitor.c\nindex 73f15aa272d..a60671a60a4 100644\n--- a/target/sparc/monitor.c\n+++ b/target/sparc/monitor.c\n@@ -39,114 +39,8 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict)\n dump_mmu(env1);\n }\n \n-#ifndef TARGET_SPARC64\n-static target_long monitor_get_psr(Monitor *mon, const struct MonitorDef *md,\n- int val)\n-{\n- CPUArchState *env = mon_get_cpu_env(mon);\n-\n- return cpu_get_psr(env);\n-}\n-#endif\n-\n-static target_long monitor_get_reg(Monitor *mon, const struct MonitorDef *md,\n- int val)\n-{\n- CPUArchState *env = mon_get_cpu_env(mon);\n- return env->regwptr[val];\n-}\n-\n const MonitorDef monitor_defs[] = {\n- { \"g0\", offsetof(CPUSPARCState, gregs[0]) },\n- { \"g1\", offsetof(CPUSPARCState, gregs[1]) },\n- { \"g2\", offsetof(CPUSPARCState, gregs[2]) },\n- { \"g3\", offsetof(CPUSPARCState, gregs[3]) },\n- { \"g4\", offsetof(CPUSPARCState, gregs[4]) },\n- { \"g5\", offsetof(CPUSPARCState, gregs[5]) },\n- { \"g6\", offsetof(CPUSPARCState, gregs[6]) },\n- { \"g7\", offsetof(CPUSPARCState, gregs[7]) },\n- { \"o0\", 0, monitor_get_reg },\n- { \"o1\", 1, monitor_get_reg },\n- { \"o2\", 2, monitor_get_reg },\n- { \"o3\", 3, monitor_get_reg },\n- { \"o4\", 4, monitor_get_reg },\n- { \"o5\", 5, monitor_get_reg },\n- { \"o6\", 6, monitor_get_reg },\n- { \"o7\", 7, monitor_get_reg },\n- { \"l0\", 8, monitor_get_reg },\n- { \"l1\", 9, monitor_get_reg },\n- { \"l2\", 10, monitor_get_reg },\n- { \"l3\", 11, monitor_get_reg },\n- { \"l4\", 12, monitor_get_reg },\n- { \"l5\", 13, monitor_get_reg },\n- { \"l6\", 14, monitor_get_reg },\n- { \"l7\", 15, monitor_get_reg },\n- { \"i0\", 16, monitor_get_reg },\n- { \"i1\", 17, monitor_get_reg },\n- { \"i2\", 18, monitor_get_reg },\n- { \"i3\", 19, monitor_get_reg },\n- { \"i4\", 20, monitor_get_reg },\n- { \"i5\", 21, monitor_get_reg },\n- { \"i6\", 22, monitor_get_reg },\n- { \"i7\", 23, monitor_get_reg },\n- { \"pc\", offsetof(CPUSPARCState, pc) },\n- { \"npc\", offsetof(CPUSPARCState, npc) },\n- { \"y\", offsetof(CPUSPARCState, y) },\n-#ifndef TARGET_SPARC64\n- { \"psr\", 0, &monitor_get_psr, },\n- { \"wim\", offsetof(CPUSPARCState, wim) },\n-#endif\n- { \"tbr\", offsetof(CPUSPARCState, tbr) },\n- { \"fsr\", offsetof(CPUSPARCState, fsr) },\n- { \"f0\", offsetof(CPUSPARCState, fpr[0].l.upper) },\n- { \"f1\", offsetof(CPUSPARCState, fpr[0].l.lower) },\n- { \"f2\", offsetof(CPUSPARCState, fpr[1].l.upper) },\n- { \"f3\", offsetof(CPUSPARCState, fpr[1].l.lower) },\n- { \"f4\", offsetof(CPUSPARCState, fpr[2].l.upper) },\n- { \"f5\", offsetof(CPUSPARCState, fpr[2].l.lower) },\n- { \"f6\", offsetof(CPUSPARCState, fpr[3].l.upper) },\n- { \"f7\", offsetof(CPUSPARCState, fpr[3].l.lower) },\n- { \"f8\", offsetof(CPUSPARCState, fpr[4].l.upper) },\n- { \"f9\", offsetof(CPUSPARCState, fpr[4].l.lower) },\n- { \"f10\", offsetof(CPUSPARCState, fpr[5].l.upper) },\n- { \"f11\", offsetof(CPUSPARCState, fpr[5].l.lower) },\n- { \"f12\", offsetof(CPUSPARCState, fpr[6].l.upper) },\n- { \"f13\", offsetof(CPUSPARCState, fpr[6].l.lower) },\n- { \"f14\", offsetof(CPUSPARCState, fpr[7].l.upper) },\n- { \"f15\", offsetof(CPUSPARCState, fpr[7].l.lower) },\n- { \"f16\", offsetof(CPUSPARCState, fpr[8].l.upper) },\n- { \"f17\", offsetof(CPUSPARCState, fpr[8].l.lower) },\n- { \"f18\", offsetof(CPUSPARCState, fpr[9].l.upper) },\n- { \"f19\", offsetof(CPUSPARCState, fpr[9].l.lower) },\n- { \"f20\", offsetof(CPUSPARCState, fpr[10].l.upper) },\n- { \"f21\", offsetof(CPUSPARCState, fpr[10].l.lower) },\n- { \"f22\", offsetof(CPUSPARCState, fpr[11].l.upper) },\n- { \"f23\", offsetof(CPUSPARCState, fpr[11].l.lower) },\n- { \"f24\", offsetof(CPUSPARCState, fpr[12].l.upper) },\n- { \"f25\", offsetof(CPUSPARCState, fpr[12].l.lower) },\n- { \"f26\", offsetof(CPUSPARCState, fpr[13].l.upper) },\n- { \"f27\", offsetof(CPUSPARCState, fpr[13].l.lower) },\n- { \"f28\", offsetof(CPUSPARCState, fpr[14].l.upper) },\n- { \"f29\", offsetof(CPUSPARCState, fpr[14].l.lower) },\n- { \"f30\", offsetof(CPUSPARCState, fpr[15].l.upper) },\n- { \"f31\", offsetof(CPUSPARCState, fpr[15].l.lower) },\n #ifdef TARGET_SPARC64\n- { \"f32\", offsetof(CPUSPARCState, fpr[16]) },\n- { \"f34\", offsetof(CPUSPARCState, fpr[17]) },\n- { \"f36\", offsetof(CPUSPARCState, fpr[18]) },\n- { \"f38\", offsetof(CPUSPARCState, fpr[19]) },\n- { \"f40\", offsetof(CPUSPARCState, fpr[20]) },\n- { \"f42\", offsetof(CPUSPARCState, fpr[21]) },\n- { \"f44\", offsetof(CPUSPARCState, fpr[22]) },\n- { \"f46\", offsetof(CPUSPARCState, fpr[23]) },\n- { \"f48\", offsetof(CPUSPARCState, fpr[24]) },\n- { \"f50\", offsetof(CPUSPARCState, fpr[25]) },\n- { \"f52\", offsetof(CPUSPARCState, fpr[26]) },\n- { \"f54\", offsetof(CPUSPARCState, fpr[27]) },\n- { \"f56\", offsetof(CPUSPARCState, fpr[28]) },\n- { \"f58\", offsetof(CPUSPARCState, fpr[29]) },\n- { \"f60\", offsetof(CPUSPARCState, fpr[30]) },\n- { \"f62\", offsetof(CPUSPARCState, fpr[31]) },\n { \"asi\", offsetof(CPUSPARCState, asi) },\n { \"pstate\", offsetof(CPUSPARCState, pstate) },\n { \"cansave\", offsetof(CPUSPARCState, cansave) },\n@@ -154,7 +48,6 @@ const MonitorDef monitor_defs[] = {\n { \"otherwin\", offsetof(CPUSPARCState, otherwin) },\n { \"wstate\", offsetof(CPUSPARCState, wstate) },\n { \"cleanwin\", offsetof(CPUSPARCState, cleanwin) },\n- { \"fprs\", offsetof(CPUSPARCState, fprs), NULL, MD_I32 },\n #endif\n { NULL },\n };\n", "prefixes": [ "08/11" ] }