From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by sourceware.org (Postfix) with ESMTPS id 432363952491 for ; Fri, 6 May 2022 12:12:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 432363952491 X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="354884004" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="354884004" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 05:12:35 -0700 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="549835215" Received: from mulvlfelix.iul.intel.com (HELO localhost) ([172.28.48.92]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 05:12:34 -0700 From: Felix Willgerodt To: gdb-patches@sourceware.org Subject: [PATCH 0/4] Add AMX support. Date: Fri, 6 May 2022 14:12:22 +0200 Message-Id: <20220506121226.137608-1-felix.willgerodt@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-List-Received-Date: Fri, 06 May 2022 12:12:38 -0000 Hi all, This is a series to add support for the new Advanced Matrix Extensions (AMX) on x86 architectures. They add new registers that require modeling in GDB and gdbserver. Happy about any feedback! Regards, Felix Aleksandar Paunovic (1): gdb: define int512 and uint512 as built-in types. Felix Willgerodt (3): gdb, gdbserver: Add AMX registers. gdb, gdbserver: Allocate only a sane amount of buffer when fetching registers. gdb: Clear tilecfg.start_row for any PC modification. gdb/amd64-linux-nat.c | 2 + gdb/amd64-linux-tdep.c | 36 +- gdb/amd64-tdep.c | 214 +++++++++++- gdb/amd64-tdep.h | 2 + gdb/arch/amd64.c | 4 + gdb/doc/gdb.texinfo | 44 +++ gdb/features/Makefile | 1 + gdb/features/i386/64bit-amx.c | 60 ++++ gdb/features/i386/64bit-amx.xml | 36 ++ gdb/gdbtypes.c | 4 + gdb/gdbtypes.h | 2 + gdb/i386-linux-tdep.c | 2 + gdb/i386-linux-tdep.h | 2 +- gdb/i386-tdep.c | 321 +++++++++++++++++- gdb/i386-tdep.h | 122 ++++++- gdb/i387-tdep.c | 156 ++++++++- gdb/i387-tdep.h | 8 + gdb/target-descriptions.c | 6 + gdb/testsuite/gdb.arch/amd64-amx-corefile.exp | 113 ++++++ gdb/testsuite/gdb.arch/amd64-amx-startrow.c | 122 +++++++ gdb/testsuite/gdb.arch/amd64-amx-startrow.exp | 91 +++++ gdb/testsuite/gdb.arch/amd64-amx.c | 173 ++++++++++ gdb/testsuite/gdb.arch/amd64-amx.exp | 231 +++++++++++++ gdb/testsuite/lib/gdb.exp | 67 ++++ gdbserver/i387-fp.cc | 70 +++- gdbserver/linux-amd64-ipa.cc | 2 +- gdbserver/linux-i386-ipa.cc | 2 +- gdbserver/linux-x86-low.cc | 4 +- gdbserver/linux-x86-tdesc.cc | 3 + gdbserver/linux-x86-tdesc.h | 3 +- gdbserver/server.h | 2 +- gdbsupport/tdesc.cc | 2 + gdbsupport/tdesc.h | 2 + gdbsupport/x86-xstate.h | 33 +- 34 files changed, 1901 insertions(+), 41 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-corefile.exp create mode 100644 gdb/testsuite/gdb.arch/amd64-amx-startrow.c create mode 100755 gdb/testsuite/gdb.arch/amd64-amx-startrow.exp create mode 100644 gdb/testsuite/gdb.arch/amd64-amx.c create mode 100755 gdb/testsuite/gdb.arch/amd64-amx.exp -- 2.34.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928