From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uAj9HIc3emnKDhoAWB0awg (envelope-from ) for ; Wed, 28 Jan 2026 11:21:27 -0500 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=ubWyWuYg; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 66AAD1E08D; Wed, 28 Jan 2026 11:21:27 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2C2041E08D for ; Wed, 28 Jan 2026 11:21:23 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 9D4914BA900D for ; Wed, 28 Jan 2026 16:21:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D4914BA900D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1769617282; bh=StYU20dKJittGiJbL9vAEEKpYtgm1i9O2l+I5hqckik=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ubWyWuYg1esw16QgaIG1AlJLCBmOOCmW4ATZc4k52o3POruXLSRWFDJ8IgqkEyaoZ MAPZlmDLimphQfGOy3ofV4QowRIDkzJ63c0pmUbCDezdMo15H58dKYs99i0pYLqyce n7yYu5D+CaZyBupmzn99hbYyRvolqnRp9eBR7fwI= Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by sourceware.org (Postfix) with ESMTPS id 845EA4BA2E1F for ; Wed, 28 Jan 2026 16:20:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 845EA4BA2E1F ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 845EA4BA2E1F ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1769617246; cv=pass; b=BmHao6wF3od4TiK/ODtAQo2v9FvglFDRpachmtoD8Tl0/h2iC4yhJ+KyJ2kyUPDEi7JK0HQ9PJkIc7LsR/hHv6S8iwMgoKNi9guTwHILRLc32yWFkI78bHb7svywaMVnIxMYh0/um9LtDOjvigSPI9J7VhzimveybqSo9xg1PM8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1769617246; c=relaxed/simple; bh=AeyHd2VV20AHESkd0Z4m38M1cxSfvuyq8xITH5EnL/c=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=rnGIPcQ7B5XfxUUyMgPKIuFq8KJ8z5cXE2p67VAS0m+aeQOrBXGvynlhpiW82ongjET89NCv1CU4id9gIumJYtCcBGPBh0RXv3xUN5aLEgeLZcJYBFv0XZZxSzE2+X74sWoczqY3dDyKkEhbaGTUVLQ1tFID7YFbq8UxqE8mU5I= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 845EA4BA2E1F Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-7941578064bso45546277b3.2 for ; Wed, 28 Jan 2026 08:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769617246; cv=none; d=google.com; s=arc-20240605; b=Z7jb/HVdJebzqP+zpDFdYhVdfnvCWEWWJsInXg856BtI2YsRL+/IHzwg7cLL/jdzdo 3IIdCowQlDO5e/UUyEVvIZDRPByXdyCL23UBBxOPGc5RUP9yes4igzDd+2aldW7vKI8F I57rtwOIBOLy4tdjsvQ+thPE/gokOwRgDtQBoHT8rW0XNyPlheHn9JbYhRJa0xHSNkiu tRUiCjbzaSCsnCEEsZdsoufMW4qnAi44MCzIisFVW1EdlfxnPVRnuIacXppcibg/t3U+ IpkxgKbRksc9wuHeV/6ARnwne84l6k4U9oscYeSGgpFY6rjC5jpP6Srs+raJDS4GYHU7 DcKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=StYU20dKJittGiJbL9vAEEKpYtgm1i9O2l+I5hqckik=; fh=KHEcVFKvQYQxx/DqI3tkgwAkTSYlMFi3AGqEze+jnNs=; b=UWK8whQEtWiCqn30o9GPYCEg1CrHzmEOxm/tidFDm6/avCU3k2OT7ylZFUCiKe4Ixc i9+RTbtJbew0Od3974BocHjirXRJXmGYxstOOmde9EE/FX4SSwH32b3VeFYvQruWuh92 ShP+5XU2DwnP3ioo+W1/phv4JCML0o+rio1z0cQ+WHwAWXq4suTA1WfUDqjgVg2b3D6w jPDKk00uhJ9C1HptjcqlB3M8oZj6TJElW6cMcKchHl/P0r7aJ2Rno+uqmw+hKUqnkFzC pG9R4L6h6+y1akDSpk95CIF+QzDQfiu0JAYRbiJPmLb8XzsxJV7EgRZXR+fUB/dbNvl5 nXCw==; darn=sourceware.org ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769617246; x=1770222046; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=StYU20dKJittGiJbL9vAEEKpYtgm1i9O2l+I5hqckik=; b=eb2A0pbK1Z6r7YdwGz3AyiYySmueoqec+WXn4AIOWG2Hc3vAxTSfr2RXX9LrG1RvDL mSPT+u36YFrQPZP0Qsrji2CXpuxXy07qGYWQxuFThYmzQ0ODYZzUy42SoWL2sbTLbdTn o+5NQtcDJtavy6FHIvYrtiW4wNw9j6j7JfqVN33lHNgdJfCadwXo5FhH13BCvOXHOJPU nKMAUKON6QBO/PjSBmrxlP3R3o4D/wt65OzVNiNmcGddEbphJ+i70rBCa6Da047rZfFM vK1FxY5N2SQWAGFp1LaXKJvzcNz+sFBCHSon8a9WhZkH9Ft9rn4Ee3ezbh70A9nkEpqD beTQ== X-Forwarded-Encrypted: i=1; AJvYcCVyNFS76y8g9cWxKLi5wmQVd4emhdb15OlfMfDaAvdpFn83PY4lwImrlac/tc+QEIOH6jo=@sourceware.org X-Gm-Message-State: AOJu0YxuwoaSnrwVdwQkDsHyCa00nLdRk0wzndpnbQGFEEp658XHtaVU WJ9yI635Sv42I+SMoINbWXOug2WEYXMrOakXL7ARNDgp8qjeK1YSf0uGNb9HxPLb0kMup7B4a+y Chkx9zUqAVwP0xuDfbAecS2WbF77ja4eR2sqxiaNznA== X-Gm-Gg: AZuq6aI5j51K94WqVQ6SzPo0WPyWQRB4AnQwYaOfDrWnDx03WXUE7C+94/HnUigb5dq FjiP6GHVGwnB2QOSFhHTEwLGf5SiO4T9NJcCNDOv7zZsuf1GAGBlg39I5uKTtmfNWvJP8QBm4FP ddb7l9+9GUDPNiu1lOdviZ+bTXwDSWOesqLq1HRF7tETVgasztqUh021Jly6T8cCyw0Yj+V2y51 CMuoyM+q0YmeGPd8pZ2hpzpdpeCPflqRq4fZErUc9ZeZV7MV0QItPaSwDh+fv5tfkkSoQ== X-Received: by 2002:a05:690c:6287:b0:793:a3c9:795d with SMTP id 00721157ae682-7947ac15f3amr44150817b3.59.1769617245867; Wed, 28 Jan 2026 08:20:45 -0800 (PST) MIME-Version: 1.0 References: <87ldhigyao.fsf@linaro.org> In-Reply-To: <87ldhigyao.fsf@linaro.org> Date: Wed, 28 Jan 2026 16:20:33 +0000 X-Gm-Features: AZwV_QjMueLIrcNp6JDAvfQ8KBZ4jlZ8R6lhoRs-3m50KbWJ4A-_ZLpCmOBwoqY Message-ID: Subject: Re: gdb support for SME-without-SVE ? To: Thiago Jung Bauermann Cc: Luis , gdb@sourceware.org, Manos Pitsidianakis Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Peter Maydell via Gdb Reply-To: Peter Maydell Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Wed, 28 Jan 2026 at 04:24, Thiago Jung Bauermann wrote: > I'm currently implementing SME-only (i.e. without SVE) support in GDB > for Linux userspace debugging. It's mostly done, I just need to test a > few things, polish the code and prepare the patches. I'm hoping to send > the patches next week. Let me know if a QEMU setup emulating "SME only" would be helpful for you with that. > Due to the limitations in the remote protocol that Luis mentioned below, > I can't run the tests against a remote target so I'm only focusing on > local debugging, unfortunately. What does gdb need to do differently for "SME only" vs "SME + SVE" ? What I'm wondering is, if for the remote protocol we define/redefine: - org.gnu.gdb.aarch64.sve is how the Z registers are exposed; its 'vg' tells you the size of the Z regs (either "max size" as currently, or eventually "current size", 128 bits if Z regs not currently exposed) - org.gnu.gdb.aarch64.sme is how the ZA array is exposed; its 'svg' tells you the size of the ZA array then does this break something subtly ? I think with current gdb it would let you at least access all the registers without it falling over. gdb wouldn't be able to tell the difference between "SME only" and "SME + SVE" if we define things this way; but we could add a new thing somewhere if it needs that information. (Handling changes in vector length would obviously be the ideal, but we don't have that at the moment for anything.) thanks -- PMM