From: <Ezra.Sitorus@arm.com>
To: <gdb-patches@sourceware.org>
Cc: <luis.machado.foss@gmail.com>, Ezra Sitorus <ezra.sitorus@arm.com>
Subject: [RFC PATCH 0/5] gdb/aarch64: Support for FPMR
Date: Fri, 5 Sep 2025 14:17:02 +0100 [thread overview]
Message-ID: <20250905131707.77027-1-Ezra.Sitorus@arm.com> (raw)
From: Ezra Sitorus <ezra.sitorus@arm.com>
The Floating Point Mode Register (FPMR) determines the behaviour of FP8
instructions. This patch series adds support for this register into gdb.
This has been tested using Shrinkwrap, which allows me to run Linux on a
model of an Arm system with new features. You can find more information
here: [1].
This is an RFC becauase there are a few things I'm not clear on - the
main thing being testing. In the final patch I've outlined my thoughts
in the message.
I'd also appreciate any feedback regarding anything I can do better
here and also if I'm missing anything out.
Ezra
[1]: https://shrinkwrap.docs.arm.com/en/latest/
Ezra Sitorus (5):
gdb/aarch64: Enable FPMR for AArch64 in gdb on Linux
gdbserver/aarch64: Enable FPMR for AArch64 in gdbserver on Linux
gdb/aarch64: signal frame support for fpmr
gdb/aarch64: core file support for FPMR
gdb/aarch64: Tests for fpmr
gdb/aarch64-linux-nat.c | 58 ++++++-
gdb/aarch64-linux-tdep.c | 103 ++++++++++++-
gdb/aarch64-tdep.c | 18 ++-
gdb/aarch64-tdep.h | 7 +
gdb/arch/aarch64.c | 4 +
gdb/arch/aarch64.h | 4 +-
gdb/features/Makefile | 1 +
gdb/features/aarch64-fpmr.c | 44 ++++++
gdb/features/aarch64-fpmr.xml | 55 +++++++
gdb/testsuite/gdb.arch/aarch64-fpmr-core.c | 109 +++++++++++++
gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp | 143 ++++++++++++++++++
.../gdb.arch/aarch64-fpmr-sighandler.c | 134 ++++++++++++++++
.../gdb.arch/aarch64-fpmr-sighandler.exp | 75 +++++++++
gdb/testsuite/gdb.arch/aarch64-fpmr.c | 117 ++++++++++++++
gdb/testsuite/gdb.arch/aarch64-fpmr.exp | 116 ++++++++++++++
gdb/testsuite/lib/gdb.exp | 49 ++++++
gdbserver/linux-aarch64-low.cc | 29 ++++
17 files changed, 1061 insertions(+), 5 deletions(-)
create mode 100644 gdb/features/aarch64-fpmr.c
create mode 100644 gdb/features/aarch64-fpmr.xml
create mode 100644 gdb/testsuite/gdb.arch/aarch64-fpmr-core.c
create mode 100644 gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
create mode 100644 gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.c
create mode 100644 gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.exp
create mode 100644 gdb/testsuite/gdb.arch/aarch64-fpmr.c
create mode 100644 gdb/testsuite/gdb.arch/aarch64-fpmr.exp
--
2.45.2
next reply other threads:[~2025-09-05 13:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 13:17 Ezra.Sitorus [this message]
2025-09-05 13:17 ` [RFC PATCH 1/5] gdb/aarch64: Enable FPMR for AArch64 in gdb on Linux Ezra.Sitorus
2025-09-07 22:55 ` Luis
2025-09-10 23:56 ` Thiago Jung Bauermann
2025-09-10 23:45 ` Thiago Jung Bauermann
2025-09-05 13:17 ` [RFC PATCH 2/5] gdbserver/aarch64: Enable FPMR for AArch64 in gdbserver " Ezra.Sitorus
2025-09-07 22:55 ` Luis
2025-09-10 23:46 ` Thiago Jung Bauermann
2025-09-05 13:17 ` [RFC PATCH 3/5] gdb/aarch64: signal frame support for fpmr Ezra.Sitorus
2025-09-07 22:56 ` Luis
2025-09-11 0:03 ` Thiago Jung Bauermann
2025-09-10 23:47 ` Thiago Jung Bauermann
2025-09-05 13:17 ` [RFC PATCH 4/5] gdb/aarch64: core file support for FPMR Ezra.Sitorus
2025-09-07 22:56 ` Luis
2025-09-10 23:48 ` Thiago Jung Bauermann
2025-09-05 13:17 ` [RFC PATCH 5/5] gdb/aarch64: Tests for fpmr Ezra.Sitorus
2025-09-07 22:56 ` Luis
2025-09-16 11:09 ` Ezra Sitorus
2025-09-16 23:50 ` Luis
2025-09-10 23:53 ` Thiago Jung Bauermann
2025-09-10 23:39 ` [RFC PATCH 0/5] gdb/aarch64: Support for FPMR Thiago Jung Bauermann
2025-09-11 15:52 ` Ezra Sitorus
2025-09-12 3:17 ` Thiago Jung Bauermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250905131707.77027-1-Ezra.Sitorus@arm.com \
--to=ezra.sitorus@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=luis.machado.foss@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox