Message ID | 20241102025635.586759-6-thiago.bauermann@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a38c:0:b0:37d:45d0:187 with SMTP id l12csp1158449wrb; Fri, 1 Nov 2024 19:58:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRosI2vmjVsQqW9E9x6MCdf1uzTCs/22ia8548yYvY7K6+dSo2nDy+LVgS1tQ2EAjEQ3qfBg==@linaro.org X-Google-Smtp-Source: AGHT+IHg2usSMst2SC/th9b9Z5b24vKZF2NWlk20fcbd0M1HAHb114OOSxkalnUpCEc0T5SEeXpf X-Received: by 2002:a05:620a:c47:b0:7b1:50ba:76ec with SMTP id af79cd13be357-7b2fb9aac98mr642382285a.52.1730516321125; Fri, 01 Nov 2024 19:58:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1730516321; cv=pass; d=google.com; s=arc-20240605; b=EyzsOrcqGHhCvrM0d6iT+TNGpVwXmnVADzlmoOQacskHG68MqZrxIzEhNFO4/cz99i 1UP0MdVFCzvGWQyC0RLMGU8smUnGgmig7jatxmLD5FSGFBW+IfjiEj5CAtz1Adq1vRcC 6uF2l+1mp4A/kr1r/VznLWgDg1CZ379OY2MbheOVS0xnnSROJJ12VNOSoWakpMt2bUEt OcMrWzoosgw63DCzE+5iwNpqbiK7vTFiLvh1uwyk7Rhs+soM+P0OLqyY3MasPIZPxofR AHEQiosquSqMbgzkv2iut9Ih+JOoRQhMvGQdCtg3zVqT2WZTjGj7uYPvW3QDjjhLsMHl i3oA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=QdH4OoR5Wvm2r3w24heUTDGEVBM84lMNOz8fxSsHI7s=; fh=72kqq0iQhigvR9Vv/oqX5ebs3Yyyw7XhzWxOOEPdupI=; b=AMb7rt5IGf1iWYwI0QKYJqkccQXiQ34Lc05JbxxfbKQcIMQrLogJJe1H4xXpZHbaVC SiJdjRn8g07YAVtshlYQlf99MW33g4fGUNkX83sRRkRo72Vt7vSOzTmnRmjsTsNLpBEe HB7CxJfg4ReK9gtDwsLOr9cIAiQvtAE3lbXtmB6GocPOKBF7amS7NZ93tx5C7COp8N/c Jieqvo/wkvz/S2cfU5F1TumsI75WTBHff02D3vaRxs42l7WCWAuWnZHfoAWXpB2L1wWP ub5ebxmn/GsMUEFp/rwCYv3pI8jil00c5CyosH3GPwsoQLXVUC7yb3xm0frq67/lVZE3 1GDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xniiD2Bx; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gdb-patches-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <gdb-patches-bounces~patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-7b2f3a9ab78si573297385a.382.2024.11.01.19.58.40 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 19:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xniiD2Bx; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gdb-patches-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B22D5385842A for <patch@linaro.org>; Sat, 2 Nov 2024 02:58:40 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 16A843857BA3 for <gdb-patches@sourceware.org>; Sat, 2 Nov 2024 02:56:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16A843857BA3 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 16A843857BA3 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730516218; cv=none; b=TV38RVhe8AvH01k53YKYd4pYlqphKnn0n2OkxyTg37eheyedDv67y37siZ963Cm/tezCbpfqkUeusD7ibJOzOKBiNhcDSKpZPUDtpJwKQklDJR0zx65ahy20IXgT4wxKrgqo4edEdVYyMXKTmL9+gIN4dSsLrkICBiVuOAoPCgY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730516218; c=relaxed/simple; bh=IL5z5XlN29m6QvGfO5K/Khz45Ky0m1iG3EgYR1ieuxY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XcsGn4Jft9gjn+8fzWHveXDmS5TF675g8ZZsiybCw8Mf88H1IX5RFYKbnhFpBjDCneFM+RmqruZfaTDUmhnO8fM2KiIhywz5ELj7fTwmEk/aZZdFzopK6u0LS/m98SkClSv3G3MoDjYDj/RWK5KSRtjE2P65rpPCfkzg/lIiyY4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2e2e23f2931so1944799a91.0 for <gdb-patches@sourceware.org>; Fri, 01 Nov 2024 19:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730516215; x=1731121015; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=QdH4OoR5Wvm2r3w24heUTDGEVBM84lMNOz8fxSsHI7s=; b=xniiD2BxepxMJdabjqoJXfFRANY0aIRQvEhf9Jzs62yY61pmdYxjoN49EdnaaJl7vM RB8haTbUfhA8QEuJXn7rtPPp9slRNartmEU7y7JlDLjaAigJFqxwa1xmLlHgJm8w6Jzq /CfnZfYKlP6eW6zwYVZ35ky7Jne9JbszJoOcdeoncbZOllL98D+5nI7joySofrhyO13C JVCRgU9m6NyFrsZRwTivk0z7kAT2cAOfN7lIAmNV8H1HfTcB6506vhRulAUldYYprl7N d787ATmjN1F1GcjPCy5TJjSTHzAlQ9u+QJTEkgYJpVsQmBev+n3LLvm9E5d8u/B8jsu+ 6coA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730516215; x=1731121015; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QdH4OoR5Wvm2r3w24heUTDGEVBM84lMNOz8fxSsHI7s=; b=G6T/MdiIdd04z9V/Y+DNMi1RhtgYRyo2+dikREDoTsnuNYNOSAt2eq01eYnZ7M0vJZ HISKPpm3QJCUT6zPDAuqbD3PRIlpDtahUAofFtmRSoOJwng9URKy92qofG/aWOhO9YW3 9M1eELKJhYVtfQW4DGWXRdHh1P+gZ2TfDdDHLr84OTgKFoHVumtlu2OCX3+oShdiZSRg HmIevNjMLKgVzvSgD+DCEVeOXDpE0uJUpxGvKVNJzuL1UYd1cUnl5tkt3QcjHWJ5+qsr E/DhQjT2u3XmzGeNuDmFBEBnWl0ddh8j/9ifRMAVM4q1jekkcxq5TpvWChYPtG5PtOcY ws1A== X-Gm-Message-State: AOJu0YxtMEH3Ci7FJGdadcfxID0VDH75TOcG5ocj7fc3nLL0WPU/yOfr lRAGqyxtvwuWxxaRoM1wE8ehxgnUMnn/hWG+4EeQJJh4YS8P8TcAq8CNUMZvu53LC1UdtB9VZ1Z P X-Received: by 2002:a17:90b:3c91:b0:2e8:f58e:27c7 with SMTP id 98e67ed59e1d1-2e94c2c0b9cmr7736038a91.14.1730516215072; Fri, 01 Nov 2024 19:56:55 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:f214:b4dc:314a:c1ee]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e93dac02acsm3919877a91.27.2024.11.01.19.56.54 for <gdb-patches@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 19:56:54 -0700 (PDT) From: Thiago Jung Bauermann <thiago.bauermann@linaro.org> To: gdb-patches@sourceware.org Subject: [RFC PATCH v4 05/15] gdbserver: nat/aarch64: Only check Z registers for extra contents if they can have it Date: Fri, 1 Nov 2024 23:56:25 -0300 Message-ID: <20241102025635.586759-6-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241102025635.586759-1-thiago.bauermann@linaro.org> References: <20241102025635.586759-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patch=linaro.org@sourceware.org |
Series |
gdbserver improvements for AArch64 SVE support
|
expand
|
diff --git a/gdb/nat/aarch64-scalable-linux-ptrace.c b/gdb/nat/aarch64-scalable-linux-ptrace.c index 0f1bedf78002..ac375b78541a 100644 --- a/gdb/nat/aarch64-scalable-linux-ptrace.c +++ b/gdb/nat/aarch64-scalable-linux-ptrace.c @@ -745,15 +745,16 @@ aarch64_sve_regs_copy_from_reg_buf (int tid, /* Check in the reg_buf if any of the Z registers are set after the first 128 bits, or if any of the other SVE registers are set. */ bool has_sve_state = false; - for (int i = 0; i < AARCH64_SVE_Z_REGS_NUM; i++) - { - if (!reg_buf->raw_compare (AARCH64_SVE_Z0_REGNUM + i, reg, - V_REGISTER_SIZE)) - { - has_sve_state = true; - break; - } - } + if (reg_buf->register_size (AARCH64_SVE_Z0_REGNUM) > V_REGISTER_SIZE) + for (int i = 0; i < AARCH64_SVE_Z_REGS_NUM; i++) + { + if (!reg_buf->raw_compare (AARCH64_SVE_Z0_REGNUM + i, reg, + V_REGISTER_SIZE)) + { + has_sve_state = true; + break; + } + } if (!has_sve_state) for (int i = 0; i < AARCH64_SVE_P_REGS_NUM; i++)