From nobody Thu Nov 28 09:58:47 2024 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 ARC-Seal: i=1; a=rsa-sha256; t=1693715633; cv=none; d=zohomail.com; s=zohoarc; b=EIE7Z5PN2sjbFXcOTXR5xYiJNxupnyrdAvG3aR1dn8j0XihQNSoSnWieaDkinF/sPEZ4Viuqr9/YvOeXiQgbTeww0tyqxbe1FP0XOUa/8PDurSZamtzxBGJ1LFdrmdO1RDkDEC4xS8aem4ugIb3OinNbGcwKm2MVOo49ziL24LQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693715633; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=imQ9qzdcJDtD/a1jypCsLu37Mc6AwMqkJVAfloEAGmU=; b=BkB64FslgLaAVU8SL7YH+gXnoE2dEhbH1joS4zzcoRzm2Hb1nvuo6myKUatgesWS9BsmjpcMXnJ0TYC7VElc+gFqP+HCmOkyDFYKDfmo6vHE6R7qrfgftxCrL2clB0n4PfKz6VoGi/+hDydgukp8kpAnPgRswJ0FXm40DCQhEiY= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693715633638540.8577657849787; Sat, 2 Sep 2023 21:33:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcem5-0002HE-UH; Sun, 03 Sep 2023 00:31:49 -0400 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 1qcelw-0002DS-Br for qemu-devel@nongnu.org; Sun, 03 Sep 2023 00:31:43 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcelt-0006yb-7O for qemu-devel@nongnu.org; Sun, 03 Sep 2023 00:31:40 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1bf11b1c7d0so7491945ad.0 for ; Sat, 02 Sep 2023 21:31:36 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with ESMTPSA id iz2-20020a170902ef8200b001bb9f104328sm5295792plb.146.2023.09.02.21.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 21:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1693715496; x=1694320296; 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=imQ9qzdcJDtD/a1jypCsLu37Mc6AwMqkJVAfloEAGmU=; b=ZOaqrIgYfOjAUpmEYR1gPQ6qKUahRgpXYvqaRVD8DfDjXIhbCLYS1FFLzR48cIp+oC H2JLDVkys11YHcx7tQbtlgA+IAGsC939pHnLd/+e20HQ/yIJvBzqt+J1VxrRAbM+MMqu v3dzO6Wn8A4yXPdBAzQxEO5pm37F/4FrDXnVLA1K++4pT2F51V8+1/NBPUDkaAEfWY6c G71cg2r6nYLqCTJORV342pGFKlFc9HmEciV0+SfrHu/VEV9iSumKpF8pMxqlUKdYbg18 tzDDtxrfX8ERqx/3lrjBOh61fWe7zdZcmGOAVya5/O0mDp3BbzwC3ceWNOK2Vs9IOslo STsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693715496; x=1694320296; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=imQ9qzdcJDtD/a1jypCsLu37Mc6AwMqkJVAfloEAGmU=; b=LLJ7S2yKxwxZ/0xKNYpd98HTm6aI7cEOjYHGz79gk7kuMPlwjtAWGxzL5CiQmr2NkW LgCajPnTeHLbcqYSmeGkqa9PoFfwTUtO1YAxtkuytkvkwF/ld1MFdpvkR18+nnWfp0O/ YQqq2jw+OCSq5hu9SVavkjuo5W0G6RVXnfYZFRRKeAUf9AJ0hkh/H/xF1EjfjhFaqyJX kN/P5u2bLNlpXGWMnd97+rQa2MGusSJlndw61GxQk1ssBZCS8ndEusIJT37k3lJOd/x4 SuSqEe8OVD1aAmbLXLW/au0IycVlA7BRaxxb6b0sYGmhcZ6bDKI7jA0XkDkZQouLrpWP hIdA== X-Gm-Message-State: AOJu0YxQvGTWjceVW9zgpCfRK0+v8Wwu/BAnuJutGeojL9a6u+my12Uy NGAKYD7ZtyQ1vN9ChEpTu3K7BCa5G7i4B5qKcHQ= X-Google-Smtp-Source: AGHT+IGMbfp+G5QcVXO4jcvTYCcJ830aRAKEId2e0w6AbOvdHewaqNTukLG+W6rYVP9xPtXB7o9eTQ== X-Received: by 2002:a17:902:ec84:b0:1bf:7aeb:c488 with SMTP id x4-20020a170902ec8400b001bf7aebc488mr9373299plg.29.1693715495898; Sat, 02 Sep 2023 21:31:35 -0700 (PDT) From: Akihiko Odaki To: Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, Akihiko Odaki , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PATCH 6/8] target/arm: Remove references to gdb_has_xml Date: Sun, 3 Sep 2023 13:30:16 +0900 Message-ID: <20230903043030.20708-7-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230903043030.20708-1-akihiko.odaki@daynix.com> References: <20230903043030.20708-1-akihiko.odaki@daynix.com> 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: none client-ip=2607:f8b0:4864:20::629; envelope-from=akihiko.odaki@daynix.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: 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 @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1693715635272100006 GDB has XML support since 6.7 which was released in 2007. It's time to remove support for old GDB versions without XML support. Signed-off-by: Akihiko Odaki Acked-by: Alex Benn=C3=A9e --- target/arm/gdbstub.c | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/target/arm/gdbstub.c b/target/arm/gdbstub.c index f421c5d041..b7ace24bfc 100644 --- a/target/arm/gdbstub.c +++ b/target/arm/gdbstub.c @@ -46,21 +46,7 @@ int arm_cpu_gdb_read_register(CPUState *cs, GByteArray *= mem_buf, int n) /* Core integer register. */ return gdb_get_reg32(mem_buf, env->regs[n]); } - if (n < 24) { - /* FPA registers. */ - if (gdb_has_xml) { - return 0; - } - return gdb_get_zeroes(mem_buf, 12); - } - switch (n) { - case 24: - /* FPA status register. */ - if (gdb_has_xml) { - return 0; - } - return gdb_get_reg32(mem_buf, 0); - case 25: + if (n =3D=3D 25) { /* CPSR, or XPSR for M-profile */ if (arm_feature(env, ARM_FEATURE_M)) { return gdb_get_reg32(mem_buf, xpsr_read(env)); @@ -100,21 +86,7 @@ int arm_cpu_gdb_write_register(CPUState *cs, uint8_t *m= em_buf, int n) env->regs[n] =3D tmp; return 4; } - if (n < 24) { /* 16-23 */ - /* FPA registers (ignored). */ - if (gdb_has_xml) { - return 0; - } - return 12; - } - switch (n) { - case 24: - /* FPA status register (ignored). */ - if (gdb_has_xml) { - return 0; - } - return 4; - case 25: + if (n =3D=3D 25) { /* CPSR, or XPSR for M-profile */ if (arm_feature(env, ARM_FEATURE_M)) { /* --=20 2.42.0