From: Stephan Rohr <stephan.rohr@intel.com>
To: gdb-patches@sourceware.org
Cc: pedro@palves.net, eliz@gnu.org, jhb@FreeBSD.org,
luis.machado@arm.com, christina.joos@intel.com
Subject: [PATCH v3 0/5] Add Intel AMX support
Date: Thu, 5 Nov 2026 11:41:04 +0000 [thread overview]
Message-ID: <20261105114109.153949-1-stephan.rohr@intel.com> (raw)
From: "Rohr, Stephan" <stephan.rohr@intel.com>
Hi Christina, all,
this is v3 of the series enabling Intel AMX support for GDB.
I addressed the comments from Christina; here's a detailed list of
changes:
Changes since v2
================
v2 was posted here:
https://sourceware.org/pipermail/gdb-patches/2026-October/231500.html
v2 patch 1/5: gdb: define additional integer built-in types
No changes.
v2 patch 2/5: gdb, gdbserver: Add Intel AMX registers.
Christina posted feedback:
https://sourceware.org/pipermail/gdb-patches/2026-November/231586.html
https://sourceware.org/pipermail/gdb-patches/2026-November/231592.html
- TILECFG and TILEDATA are now cleared separately in gdbserver,
depending on their bits in XSTATE_BV.
- Removed tilecfg_register_names and I387_NUM_TILECFG_REGS. The
register name arrays are now const.
- Test register groups for the raw tile registers and the $tilecfg pseudo
register.
- Updated the testcase:
* The test now adds an Intel AMX instruction that operates on the
tile registers written by GDB.
* The test program now releases the tiles and runs to the end.
- Updated the commit message.
v2 patch 3/5: gdb: support register groups for user registers
No changes.
v2 patch 4/5: gdb: add a "matrix" register group
No changes.
v2 patch 5/5: gdb: add Intel AMX tile registers as user registers
Christina posted feedback:
https://sourceware.org/pipermail/gdb-patches/2026-November/231622.html
https://sourceware.org/pipermail/gdb-patches/2026-November/231594.html
- The user registers now show "void" for all invalid tile configurations:
* If palette 0 is configured.
* If rows or colsb is zero.
* If the configured number of rows exceeds the upper bound.
* If the configured number of bytes per row exceeds the upper bound.
* If the configured number of bytes per row modulo 4 is not zero.
Intel AMX operates on doublewords. If this requirement is not met,
the CPU raises #UD (invalid opcode) for any instruction that loads,
stores or computes with that tile; TILEZERO, LDTILECFG, STTILECFG
and TILERELEASE are not affected. Since this is an invalid
configuration, and the row would not consist of complete doublewords,
we decided to show "void" in this case, too.
- With the above, the assertion does not trigger anymore.
- Renamed "tilecfg_reg" to "tile_dimensions". Removed the unused
"operator==".
- Describe the cases where the user registers print "void" in the
manual.
I kept the order of the patches; the last patch adds $tilecfg to the
"matrix" register group.
I appreciate your feedback.
Thanks
Stephan
Aleksandar Paunovic (1):
gdb: define additional integer built-in types
Felix Willgerodt (1):
gdb, gdbserver: Add Intel AMX registers.
Rohr, Stephan (3):
gdb: support register groups for user registers
gdb: add a "matrix" register group
gdb: add Intel AMX tile registers as user registers
gdb/NEWS | 17 ++
gdb/amd64-linux-tdep.c | 2 +
gdb/amd64-tdep.c | 134 +++++++-
gdb/amd64-tdep.h | 3 +
gdb/arch/amd64.c | 4 +
gdb/arch/x86-linux-tdesc-features.c | 5 +-
gdb/doc/gdb.texinfo | 79 ++++-
gdb/features/Makefile | 1 +
gdb/features/i386/64bit-amx.c | 26 ++
gdb/features/i386/64bit-amx.xml | 26 ++
gdb/gdbtypes.c | 8 +
gdb/gdbtypes.h | 4 +
gdb/i386-tdep.c | 236 +++++++++++++-
gdb/i386-tdep.h | 120 +++++++-
gdb/i387-tdep.c | 196 +++++++++++-
gdb/i387-tdep.h | 5 +
gdb/infcmd.c | 28 ++
gdb/nat/x86-xstate.c | 2 +
gdb/reggroups.c | 3 +
gdb/reggroups.h | 1 +
gdb/target-debug.h | 2 +
gdb/target-descriptions.c | 12 +
gdb/testsuite/gdb.arch/amd64-amx.c | 142 +++++++++
gdb/testsuite/gdb.arch/amd64-amx.exp | 442 +++++++++++++++++++++++++++
gdb/testsuite/lib/amd64-amx.h | 41 +++
gdb/testsuite/lib/gdb.exp | 75 +++++
gdb/user-regs.c | 46 ++-
gdb/user-regs.h | 17 +-
gdbserver/i387-fp.cc | 70 ++++-
gdbserver/linux-x86-low.cc | 2 +
gdbsupport/tdesc.cc | 4 +
gdbsupport/tdesc.h | 4 +
gdbsupport/x86-xstate.h | 26 +-
33 files changed, 1748 insertions(+), 35 deletions(-)
create mode 100644 gdb/features/i386/64bit-amx.c
create mode 100644 gdb/features/i386/64bit-amx.xml
create mode 100644 gdb/testsuite/gdb.arch/amd64-amx.c
create mode 100644 gdb/testsuite/gdb.arch/amd64-amx.exp
create mode 100644 gdb/testsuite/lib/amd64-amx.h
--
2.43.0
________________________________________
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 (89) 99143-0
www.intel.de
Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman
Chairperson of the Supervisory Board: Sonja Pierer
Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
next reply other threads:[~2026-11-05 11:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 11:41 Stephan Rohr [this message]
2026-11-05 11:41 ` [PATCH v3 1/5] gdb: define additional integer built-in types Stephan Rohr
2026-11-05 12:37 ` Eli Zaretskii
2026-11-05 11:41 ` [PATCH v3 2/5] gdb, gdbserver: Add Intel AMX registers Stephan Rohr
2026-11-06 15:56 ` Joos, Christina
2026-11-05 11:41 ` [PATCH v3 3/5] gdb: support register groups for user registers Stephan Rohr
2026-11-05 11:41 ` [PATCH v3 4/5] gdb: add a "matrix" register group Stephan Rohr
2026-11-05 11:41 ` [PATCH v3 5/5] gdb: add Intel AMX tile registers as user registers Stephan Rohr
2026-11-06 17:25 ` Joos, Christina
2026-11-06 17:30 ` [PATCH v3 0/5] Add Intel AMX support Joos, Christina
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=20261105114109.153949-1-stephan.rohr@intel.com \
--to=stephan.rohr@intel.com \
--cc=christina.joos@intel.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=jhb@FreeBSD.org \
--cc=luis.machado@arm.com \
--cc=pedro@palves.net \
/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