From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MqexMckQdWKjqQQAWB0awg (envelope-from ) for ; Fri, 06 May 2022 08:12:57 -0400 Received: by simark.ca (Postfix, from userid 112) id BFDC91E058; Fri, 6 May 2022 08:12:57 -0400 (EDT) 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=tLHTmm1t; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 396751E01D for ; Fri, 6 May 2022 08:12:57 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6D913395380F for ; Fri, 6 May 2022 12:12:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D913395380F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1651839176; bh=lXzIM2zhhixMN9ooh4o8bs8mbPBSuslO/0fwpdQhHfs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tLHTmm1t0NA2EusAZqoo8mISb7KiUP+uk9AA/i5Nz8Qjv4i8npUPU5rI8N9c4Uie3 iAwu9JMYoExygkaLNOiXQSuuSuiE1ctiuwBskRh70CP7zHsNOnu/bh5kF+FJ6oooZQ FkJ7BxEJO5aE9QGcDzTPzq3JGeuf5uFQN+bMgkxE= 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 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-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: , From: Felix Willgerodt via Gdb-patches Reply-To: Felix Willgerodt Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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