From nobody Sun Apr 12 07:21:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1771282432; cv=none; d=zohomail.com; s=zohoarc; b=QRnATwEj5Qm5AmzAT7gfQ77Y4116o1UruggFGENAGvc1CyakuYj/QbTc3NDMBMeYuGJyC7DO448kzrS5QDvTYMloDFS9VFmsI7IcUtgSB3VUjACv1QMqaHdrK7Tv01K2E5mNA1Tt/9wfnlEh/oYiWkCKk816QSgNTmbXUHrdTdE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771282432; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jB5by0knWSnD5A5J5m+cWeRbk2ACccSNC+pzW4uTeBM=; b=PwGfabrOWqhV7TRCmItTp2Tw2F6mcyYJp1Cm7hQv4w8PHbGlIoSzBNtEe59dATvvR6DK48uq3L2/c2TYgEDYw4Fgr5e0zSGzk3q9OH8oezp0tkMl0g5Q7zGoE3Mv4VJHEe65JD0QIy5/TvP/xBcaK03F5Jc01oENKxtFWjlzuCc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177128243278926.19263404579965; Mon, 16 Feb 2026 14:53:52 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vs7TR-0003ZE-4M; Mon, 16 Feb 2026 17:53:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vs7TL-0003Na-8q for qemu-devel@nongnu.org; Mon, 16 Feb 2026 17:53:43 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vs7TJ-0006gL-JQ for qemu-devel@nongnu.org; Mon, 16 Feb 2026 17:53:43 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-48372efa020so25637845e9.2 for ; Mon, 16 Feb 2026 14:53:39 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48371a409a5sm91123625e9.26.2026.02.16.14.53.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 16 Feb 2026 14:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1771282418; x=1771887218; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jB5by0knWSnD5A5J5m+cWeRbk2ACccSNC+pzW4uTeBM=; b=g5vHVB1FvMnb7kbtDnqQry4Ve0uUGyNLobkmOkcLro5OHrO/UCAfHlUDMrm2kWi3nI rKS4Lf3y1Pjd2MJbplihiF2XmNwLENvJhsbjP2zJLaZth+Q1sy9AJ62FFxVvlxrRZVf0 nUpf9781IAhAOthyCX7PtfUEHgKii0Xw7mHTPr9YbzFBWUyrKdmV3J8SaMZbz79rN2WY 42prnBTSAzuDfOMa7/TMAPnCOKGrf4N6g8LQgWeLuvJgBVaFVyW3YLdxKmevHU6JZkBw M3BjRcCJ38a5CviFzHCK9k8oZkXEiQXxcCBg+dQrowFNxNkII+0i6mPYtfjQFJj0MKD0 wCOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771282418; x=1771887218; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=jB5by0knWSnD5A5J5m+cWeRbk2ACccSNC+pzW4uTeBM=; b=TfB1KckHXLWEOTc7YvlT+84iv4ZDhM6z+AFzZ9YIXVm0i0BwrJqnmhHccrCy0orQHp e7R8nq6BmTJwSDHj8Yw1O5JF4uHGksCqOioVXAcTzDTdkqXqKF1n1dnfMzUt0bRDbbCK 6CsDXmFDDKVBu3iiTnBwn+VLdblrkGEuZ0xeOCDuiP7uKHIpvAilTXuz2ibzxX/DfPjt 8f5ktbnTf0RSxdh5CCLsJ5qTEwQwj8tyyIKZeI9ia1DlCEycgARBGXfJsbLIwqJPYl4j LMlfZ3ISMxWcFtIiC8NRMCqUq+J0b08vvbTbGObFpv69f62lzpjZMDm8LHi7a3Uq+8K1 /zlA== X-Gm-Message-State: AOJu0YyXeWD2LvbqmQhYb568WfmKs518rYVyloXN2iY8Eh5ghxPrFxxD Grw1rJGa3QziwkUNQygJU+x5xOEGcA/ALKJ272Db7tRdwq4C68KYjdLCX12ZOHOHuKIOdR/dTx1 eRNA04tA= X-Gm-Gg: AZuq6aKjO3PcMGYoV33cHN58vWWfM7H30AFatw1NBEr9w75Kg87LG2e6w2hQZYiN7BA sfG7S92ImHz+0f5ImRAc3OJbC4ckPJXHP8Nm9V01MkK7IalOayyR6qEbIdP/gp/eLQw/VERLt0g BOIqz6sO2fftBREFzrvLRqFeweIj02f8NTbEqp2MC38QBApGycUTkoumRIq32rkU2wc33eJsPjA zWTf5wKgf/0G5gvUnS6OlCyKs9nqdpjQu5G1HL22wM7Vn0+W6EoLygVUC9LuFpPzu0/6wdRWNRB BPyU8ldcMdmrtRjvFYtjapDdEOPxprdOgv1qbiZWLcOmQFGD6lZ2NvSLFoaRSAi27RYN++ZSJUC 9qEJf1tBBDa7ot+S/iEsXQP5eK+JHymTZtZP4C80UAaum9Rnc5gGIAYXzaRmdHdl/CCyAfdrJCA nJ6wMShiQF2urvHu/bAFI5mQ19fvuT2FhWYH7hwoy3HVXrq7+qhtA1+WbTi7l16J9mscsFYIqE X-Received: by 2002:a05:600c:5491:b0:480:1c2f:b003 with SMTP id 5b1f17b1804b1-48379bfd732mr153201565e9.20.1771282418402; Mon, 16 Feb 2026 14:53:38 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , "Dr. David Alan Gilbert" , Nicholas Piggin , Chinmay Rath , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Zhao Liu , Mark Cave-Ayland , Pierrick Bouvier , Artyom Tarasenko , Akihiko Odaki , Gustavo Romero , Paolo Bonzini , unisono@quyllur.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-ppc@nongnu.org Subject: [PATCH 09/11] target/i386: Remove MonitorDef register entries available via gdbstub Date: Mon, 16 Feb 2026 23:52:25 +0100 Message-ID: <20260216225228.53959-10-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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1771282440303158500 All these registers are already provided by via gdbstub parsed XML and handler by the gdb_get_register() helper in the monitor/hmp.c file. Remove as now unreachable code. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/i386/monitor.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/target/i386/monitor.c b/target/i386/monitor.c index 99b32cb7b0f..0660fcabc2f 100644 --- a/target/i386/monitor.c +++ b/target/i386/monitor.c @@ -605,41 +605,6 @@ const MonitorDef monitor_defs[] =3D { { name, offsetof(CPUX86State, segs[seg].selector), NULL, MD_I32 },\ { name ".base", offsetof(CPUX86State, segs[seg].base) },\ { name ".limit", offsetof(CPUX86State, segs[seg].limit), NULL, MD_I32 = }, - - { "eax", offsetof(CPUX86State, regs[0]) }, - { "ecx", offsetof(CPUX86State, regs[1]) }, - { "edx", offsetof(CPUX86State, regs[2]) }, - { "ebx", offsetof(CPUX86State, regs[3]) }, - { "esp|sp", offsetof(CPUX86State, regs[4]) }, - { "ebp|fp", offsetof(CPUX86State, regs[5]) }, - { "esi", offsetof(CPUX86State, regs[6]) }, - { "edi", offsetof(CPUX86State, regs[7]) }, -#ifdef TARGET_X86_64 - { "r8", offsetof(CPUX86State, regs[8]) }, - { "r9", offsetof(CPUX86State, regs[9]) }, - { "r10", offsetof(CPUX86State, regs[10]) }, - { "r11", offsetof(CPUX86State, regs[11]) }, - { "r12", offsetof(CPUX86State, regs[12]) }, - { "r13", offsetof(CPUX86State, regs[13]) }, - { "r14", offsetof(CPUX86State, regs[14]) }, - { "r15", offsetof(CPUX86State, regs[15]) }, - { "r16", offsetof(CPUX86State, regs[16]) }, - { "r17", offsetof(CPUX86State, regs[17]) }, - { "r18", offsetof(CPUX86State, regs[18]) }, - { "r19", offsetof(CPUX86State, regs[19]) }, - { "r20", offsetof(CPUX86State, regs[20]) }, - { "r21", offsetof(CPUX86State, regs[21]) }, - { "r22", offsetof(CPUX86State, regs[22]) }, - { "r23", offsetof(CPUX86State, regs[23]) }, - { "r24", offsetof(CPUX86State, regs[24]) }, - { "r25", offsetof(CPUX86State, regs[25]) }, - { "r26", offsetof(CPUX86State, regs[26]) }, - { "r27", offsetof(CPUX86State, regs[27]) }, - { "r28", offsetof(CPUX86State, regs[28]) }, - { "r29", offsetof(CPUX86State, regs[29]) }, - { "r30", offsetof(CPUX86State, regs[30]) }, - { "r31", offsetof(CPUX86State, regs[31]) }, -#endif { "eflags", offsetof(CPUX86State, eflags) }, { "eip", offsetof(CPUX86State, eip) }, SEG("cs", R_CS) --=20 2.52.0