From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Ys95NXD2EGlZdjAAWB0awg (envelope-from ) for ; Sun, 09 Nov 2025 15:15:44 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=f8CMKe29; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B91F61E0BC; Sun, 09 Nov 2025 15:15:44 -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,FREEMAIL_FROM,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 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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 060CF1E04C for ; Sun, 09 Nov 2025 15:15:44 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AD4CB3858C39 for ; Sun, 9 Nov 2025 20:15:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD4CB3858C39 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=f8CMKe29 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 85D8A3858D33 for ; Sun, 9 Nov 2025 20:15:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85D8A3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85D8A3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762719307; cv=none; b=aBXT1FI4U2b+hf1SGHjDkXb2CulR1zZQli3651Ol7vWkvIdroatRaEDg+PeE7GVdgpDIbYG+pMnTlxTXoLjSKC4YHvCCQOzMZI/MI7eDTRO4+684c0l2hqbJ66H7iIRQXMXaGlJ5Hzy1uYObdZIMyGvbcbcc9DcWQJCROXpVup8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762719307; c=relaxed/simple; bh=WS0lCdkB+87IORc5M9g9vO24e4ikqrgCZuomf358dwo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=arzj5gfSYw15lbzXCHFqIazEM9AE8d3f7nVWH3gf9QfDhGbkhHniAap24eXMY1eMVlv53IjUuvtY4sHkICRwrSjv5olZlc192o2VVKOLBEZXGWJD9AWyV+1XeSyaqCvWeP2yy4sjcEpx/YUWeuAkVTaxAhSRGy4oZkv5UijRMnQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85D8A3858D33 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-429c8632fcbso1494390f8f.1 for ; Sun, 09 Nov 2025 12:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762719306; x=1763324106; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xeiEWSgNuTbqXeGkFB4ehqTPlU85fIwyBDOZ5LGhQKE=; b=f8CMKe29hxOZulx2tgxs46wJwIWGACb13R6fRJQ6gnDUqboaKGMAzC67nSa3le3HOO ucbmh8bvjc/66u6ekrEno12Eudj+p5ionDpsgSU/Nr2M1NjAx5tYHWf1ESaDl74ADHlh snmHDmZtEEV/3m0507gf7j6kJPpJm7jUj1bPCW1B3buT1BsPUnol3KGYK+FUE5mwrO+L Q1RzAltd4L/+hQpOWCPWBmFOEoVn10S6Dd7KZvr5RDKmrxfI4aWeRKt8mb15UWutTWdx i5NVR2wJvemGjOw0BUpnsU9F1A7xwr5Al/h408WJigtaE6ZtcQQZIvpWyE+kNF15AdqJ 6oWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762719306; x=1763324106; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xeiEWSgNuTbqXeGkFB4ehqTPlU85fIwyBDOZ5LGhQKE=; b=iSCZoyQBYnCbJqmMSHQKjqil9W+P05rqURWOE3mIRJy1drUafjZZ7TU2qUxlgdBDbz VHmEPs0L0Nu4HRHX+njGwKKugUQ7Vi/eqw1L5T+EuDKyAz/9OyyFkXN3si32UqlHTj1J D31A66X3iHpzG5PZHdLgC4bAQundkDyx0hIkhi3KI+UV650WjSOaUE5K+yxuls0sE4i1 wt9QU1PTn/EAasKnWTSqPp3SvlAcSESLazHG3V/z8JReCRVmKH6X0T+61lkhpmxld9II PB3Q/YXZnC44av3Jl+ZQwr89e8DEHptVBcl44i4GOR/yg7vdulekxFLjXY8CD6/GzvIj GTnA== X-Forwarded-Encrypted: i=1; AJvYcCXlN+I8p0h23Au6cSK9J5YhwprYewym24wANNynRCrnXFCl6oDRuZYHPwtRg0AyKqlOP5/32Rn+CkVtpQ==@sourceware.org X-Gm-Message-State: AOJu0YzmmTJ79LtrfA5ZXsRN9kzXZjHuqF/J+gaf03aDYhmYSLYhIb2k mqD/VSrzMH7oOD5OJFRR5XSsmqL2NIp/kIUraWQGuCm3RMU4vWHU2QuI X-Gm-Gg: ASbGnctJHihvg6dgqcD+PHEYxV38Mt6Hjs14sl5HLRbSncjt1QFiluLhxVXkX2zUeIY ny23DKxjEMxUaMS/dTZAy1ObACkyD38tDYiCOcsAbtxohhoKpHE+hDNKjrMaoBKGdrL1eAy+1qQ xVBwvMk8bDiGFB+ysMceymzaQ5kaiUxBGEDMBxnhfcJcFMOddiuGdBWt7WYvKpwFtDpEh2+oc1L 0iaF2/UFnoFav6JK+LxtDmokexqRHYlRieA7DNXaroJpfNlHQV6Xf9KU3TJVW6yVQp/LYFm+Rc4 j2g5Ol6cNrGzaWm0dOuEaaidg0pesljY0I6+TRUezr2IEu3SaCt4TLH3gLiholqHq6v3KYq/qnW Gd0OM2n88V1/oLwp6vJShgg1BSzdlngmCfJM7n0q0F0NwWa3ZXgCRWEYMA0wSB28lby2bIQF+Ph EMlEzc/bwVRzPxxieer0pfKx4= X-Google-Smtp-Source: AGHT+IHeA4mTRx3mBFOP09eqIz3vB2cPJ+GecN7iqetBWnMAntiHbUJ9TR2epk1h8yd6qm49ebH0hA== X-Received: by 2002:a05:6000:651:b0:429:d40e:fa40 with SMTP id ffacd0b85a97d-42b2dc39142mr4389552f8f.45.1762719305860; Sun, 09 Nov 2025 12:15:05 -0800 (PST) Received: from [192.168.0.38] ([86.12.216.189]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b2f7a0512sm10445717f8f.18.2025.11.09.12.15.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Nov 2025 12:15:05 -0800 (PST) Message-ID: Date: Sun, 9 Nov 2025 20:15:04 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 6/6] gdb/doc: Document AArch64 FPMR support Content-Language: en-US To: Ezra.Sitorus@arm.com, gdb-patches@sourceware.org, Eli Zaretskii References: <20251031151641.83369-1-Ezra.Sitorus@arm.com> <20251031151641.83369-7-Ezra.Sitorus@arm.com> From: Luis In-Reply-To: <20251031151641.83369-7-Ezra.Sitorus@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi, On 31/10/2025 15:16, Ezra.Sitorus@arm.com wrote: > From: Ezra Sitorus > > Add NEWS entry and document new feature in gdb.texinfo. > --- > Changes from v3->v4: > * Removed unrelated changes in NEWS > * Fixup of index entry > * Formatting > > Ezra > > gdb/NEWS | 2 ++ > gdb/doc/gdb.texinfo | 71 +++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 73 insertions(+) > > diff --git a/gdb/NEWS b/gdb/NEWS > index 01bd1524c7a..30683e7c3c7 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -14,6 +14,8 @@ > this flag is used gdbserver will not escape special shell characters > within the inferior arguments. > > +* Support for Floating Point Mode Register (FPMR) in AArch64. > + > * New targets > > GNU/Linux/MicroBlaze (gdbserver) microblazeel-*linux* > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 676143be416..6574eff9390 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -27080,6 +27080,26 @@ Program received signal SIGSEGV, Segmentation fault > Guarded Control Stack error. > @end smallexample > > +@subsubsection AArch64 Floating Point Mode Register > +@cindex floating point mode register, AArch64 > +@cindex FPMR, AArch64 > + > +When @value{GDBN} is debugging the AArch64 architecture and the Floating Point > +Mode Register (FPMR) is available, then @value{GDBN} will make the @code{fpmr} > +available. This register determines the behaviour of FP8 instructions. > + > +To aid debugging, @value{GDBN} interprets the mode or value of each field in > +@code{fpmr}. > + > +@smallexample > +p $fpmr > +$1 = [ F8S1=E5M2 F8S2=E5M2 F8D=E5M2 OSM=Inf OSC=Inf/NaN LSCALE=0 NSCALE=0 LSCALE2=0 ] > +@end smallexample > + > +For more information about FPMR, please refer to the official > +@uref{https://developer.arm.com/documentation/ddi0601/latest,ignored, > +architecture registers documentation}. > + > @node x86 > @subsection x86 > > @@ -49770,6 +49790,57 @@ documentation} in the Linux kernel. > Extra registers are allowed in these features, but they will not affect > @value{GDBN}. > > +@subsubsection AArch64 FPMR feature > + > +The @samp{org.gnu.gdb.aarch64.fpmr} optional feature was introduced so > +@value{GDBN} could detect support for the Floating Point Mode Register > +extension. If present, this feature must have the following register: > + > +@itemize @minus > +@item > +@samp{fpmr}, the floating point mode register. It is represented as > +if it were a 64-bit register with a custom flags type. > +@end itemize > + > +The custom flags type allows @value{GDBN} to print a human-friendly > +representation of the contents of @code{fpmr} should contain: > + > +@itemize @minus > + > +@item > +@code{F8S1}, which is either @code{E5M2} or @code{E4M3} > + > +@item > +@code{F8S2}, which is either @code{E5M2} or @code{E4M3} > + > +@item > +@code{F8D}, which is either @code{E5M2} or @code{E4M3} > + > +@item > +@code{OSM}, which is either @code{Inf} or @code{MaxNormal} > + > +@item > +@code{OSC}, which is either @code{Inf/NaN} or @code{MaxNormal} > + > +@item > +@code{LSCALE}, which is a 7-bit unsigned value > + > +@item > +@code{NSCALE}, which is actually an 8-bit signed value but represented as an > +8-bit unsigned value > + > +@item > +@code{LSCALE2}, which is a 6-bit unsigned value > + > +@end itemize > + > +Extra registers are allowed in this feature, but they will not affect > +@value{GDBN}. > + > +For more information about FPMR, please refer to the official > +@uref{https://developer.arm.com/documentation/ddi0601/latest,ignored, > +architecture registers documentation}. > + > @node Alpha Features > @subsection Alpha Features > @cindex target descriptions, Alpha Features I have no further comments on this one. Once Eli is happy with the documentation changes, please push the series. If you don“t have commit access yet, I can do that for you. Thanks!