From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id pMpEFg/vwmQi/DAAWB0awg (envelope-from ) for ; Thu, 27 Jul 2023 18:26:23 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=GyMvdqmw; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4F18C1E0C0; Thu, 27 Jul 2023 18:26:23 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3CA331E00F for ; Thu, 27 Jul 2023 18:26:21 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 88DC43857437 for ; Thu, 27 Jul 2023 22:26:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88DC43857437 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690496780; bh=zAz8nhgkNGk6Zlp/oz0lHXKFCBwsZwBpVy5v/GYmkPc=; h=References:To:Cc:Subject:In-reply-to:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=GyMvdqmwZJNWWG6CNJGqSuGCAYDezDudAlU6gRq5rhLk+cF69A9bBFd47d0MNas4H CkAGfPn8hUyUVFv2FfCNBjN0Ga9bCQpL3KCJldi7dieIYMAnWtMdDrtGvkxYnbDtmN YlgVVyo/k41JTFNVIED9uF2r0UNLQShXQtIBM6sI= Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 58E8E3858CDA for ; Thu, 27 Jul 2023 22:25:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 58E8E3858CDA Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6b9b52724ccso1241055a34.1 for ; Thu, 27 Jul 2023 15:25:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690496726; x=1691101526; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zAz8nhgkNGk6Zlp/oz0lHXKFCBwsZwBpVy5v/GYmkPc=; b=AgHyEZitmeJd21ftOeXmE+98ZIfyV1YiMYu1+ODBDm3tIITXH7qu+ekZXnTbXOmc6N aA9MUWnsOrPmTT0h+X7BqoTUJXRZpd17AQEXK7b072br6CPFLMod3uGqeoSG9nLC3zL8 13AKQIz8CH7zgnjtgEDMoCdPu0BZYC1/B7aTZKnyekrQeVnipvEcacOSZT/b+eQV21e7 dNf5WSgje147xugSOsskQRDMVyxfR8QYNysB6C4qeRU6nonm9SsLmSoPc6ZIJ90QQVaM 6lTJ0UouliElGA9iopkyF/EB8J2PooHx4IDlf8RctSZVrxca80YIrQb64DshoNiQ5D+1 4osA== X-Gm-Message-State: ABy/qLbR7oO//TiQ6ZfQvXbsqyiGIZMXrKn9Tfm6F+L5c+MIV3XOfj0x BYob/pzleUlSpNv1SjPYRocC962tB03c0GcAHzM= X-Google-Smtp-Source: APBJJlEVwfbcAExbFsBh7z8S4hOm+vTqzeesMZZrcq7ZHOq6VUX6Vy7rYlo6/ylSIrU5vOihincVKA== X-Received: by 2002:a05:6870:c891:b0:1bb:4d4e:ea69 with SMTP id er17-20020a056870c89100b001bb4d4eea69mr785635oab.54.1690496726710; Thu, 27 Jul 2023 15:25:26 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:b6b2:cb77:8e91:bbbd]) by smtp.gmail.com with ESMTPSA id y136-20020a4a458e000000b0051134f333d3sm1081692ooa.16.2023.07.27.15.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 15:25:26 -0700 (PDT) References: <20230630134616.1238105-1-luis.machado@arm.com> <20230630134616.1238105-10-luis.machado@arm.com> User-agent: mu4e 1.10.5; emacs 28.2 To: Luis Machado Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v3 09/16] [gdb/aarch64] sme: Signal frame support In-reply-to: <20230630134616.1238105-10-luis.machado@arm.com> Date: Thu, 27 Jul 2023 19:25:23 -0300 Message-ID: <8735198018.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thiago Jung Bauermann via Gdb-patches Reply-To: Thiago Jung Bauermann Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Luis Machado via Gdb-patches writes: > @@ -385,6 +414,38 @@ aarch64_linux_sigframe_init (const struct tramp_frame *self, > break; > } > > + case AARCH64_ZA_MAGIC: > + { > + if (!tdep->has_sme ()) > + { > + section += size; > + break; > + } > + > + /* Check if the section is followed by a full ZA dump, and set > + za_state if it is. */ > + gdb_byte buf[2]; > + > + if (target_read_memory (section + AARCH64_SVE_CONTEXT_VL_OFFSET, Shouldn't this line use AARCH64_SME_CONTEXT_SVL_OFFSET? It has the same value as AARCH64_SVE_CONTEXT_VL_OFFSET so in practice there's no difference, but conceptually it's less confusing. -- Thiago