Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2D8CC83F1B for ; Fri, 11 Jul 2025 13:51:20 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uaE9D-0005oA-6e; Fri, 11 Jul 2025 09:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaE3o-00034q-BB for qemu-devel@nongnu.org; Fri, 11 Jul 2025 09:45:13 -0400 Received: from quyllur.org ([185.247.226.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1uaE3i-0000GF-AO for qemu-devel@nongnu.org; Fri, 11 Jul 2025 09:45:06 -0400 Received: from quyllur.org (localhost [127.0.0.1]) by quyllur.org (OpenSMTPD) with ESMTP id 484662b3; Fri, 11 Jul 2025 16:44:25 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=quyllur.org; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkimselector; bh=0rawVHz7ga8LGrdwJ RcO9DN7tng=; b=YEEkX5i4E0NjPiwuqCFoIj6Cs401+vK9PqcP6HJKw5RCvsEhs Zy5O+axfNJkCBoFVNcjc8ngLU+VT0Ae7a1AzKBTW/P5fNN5CehBr12z27OUafv15 a0ENvB4/9EHo7qiZlZ7YUqU3WmHU1n1N4m+pRYvxaxOaswCJHzFSoKzc8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=quyllur.org; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; q=dns; s=dkimselector; b=jypiv2vSbes XBujSaWCuTLH+OSZhHSRm8sWAXBPOEUqc7YZrEwnysQB2ivWDOEe/sfTmCCJO+Ba I8qL9BzA/jmziqFKtUjiz79evBL9/h8lsKHNUcapqCuq0jD9mIzjoMlGypjgQ+TL nO/EkWBq+E1CXxX9OxClw8S4YRD0DrIQ= Received: from Rizin ( [194.127.199.111]) by quyllur.org (OpenSMTPD) with ESMTPSA id 6e5a0977 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 11 Jul 2025 16:44:22 +0300 (EEST) From: unisono@quyllur.org To: alex.bennee@linaro.org Cc: atar4qemu@gmail.com, laurent@vivier.eu, mark.cave-ayland@ilande.co.uk, philmd@linaro.org, qemu-devel@nongnu.org, Rot127 Subject: [PATCH 1/3] Adds the GDB register XML files for Sparc64. Date: Fri, 11 Jul 2025 08:43:31 -0500 Message-ID: <20250711134333.56978-2-unisono@quyllur.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250711134333.56978-1-unisono@quyllur.org> References: <87h5zltojx.fsf@draig.linaro.org> <20250711134333.56978-1-unisono@quyllur.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.247.226.42; envelope-from=unisono@quyllur.org; helo=quyllur.org X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SORTED_RECIPS=2.499, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Rot127 Commit 1/3 Signed-off-by: Rot127 --- configs/targets/sparc64-linux-user.mak | 1 + configs/targets/sparc64-softmmu.mak | 1 + gdb-xml/sparc64-core.xml | 99 ++++++++++++++++++++++++++ target/sparc/cpu.c | 1 + 4 files changed, 102 insertions(+) create mode 100644 gdb-xml/sparc64-core.xml diff --git a/configs/targets/sparc64-linux-user.mak b/configs/targets/sparc64-linux-user.mak index 64ea04e3e2..7c2ecb7be0 100644 --- a/configs/targets/sparc64-linux-user.mak +++ b/configs/targets/sparc64-linux-user.mak @@ -4,4 +4,5 @@ TARGET_ABI_DIR=sparc TARGET_SYSTBL_ABI=common,64 TARGET_SYSTBL=syscall.tbl TARGET_BIG_ENDIAN=y +TARGET_XML_FILES=gdb-xml/sparc64-core.xml TARGET_LONG_BITS=64 diff --git a/configs/targets/sparc64-softmmu.mak b/configs/targets/sparc64-softmmu.mak index 2504e31ae3..d9d51d21e5 100644 --- a/configs/targets/sparc64-softmmu.mak +++ b/configs/targets/sparc64-softmmu.mak @@ -1,4 +1,5 @@ TARGET_ARCH=sparc64 TARGET_BASE_ARCH=sparc TARGET_BIG_ENDIAN=y +TARGET_XML_FILES=gdb-xml/sparc64-core.xml TARGET_LONG_BITS=64 diff --git a/gdb-xml/sparc64-core.xml b/gdb-xml/sparc64-core.xml new file mode 100644 index 0000000000..375b9bb0cc --- /dev/null +++ b/gdb-xml/sparc64-core.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index ed7701b02f..245caf2de0 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -1090,6 +1090,7 @@ static void sparc_cpu_class_init(ObjectClass *oc, const void *data) cc->disas_set_info = cpu_sparc_disas_set_info; #if defined(TARGET_SPARC64) && !defined(TARGET_ABI32) + cc->gdb_core_xml_file = "sparc64-core.xml"; cc->gdb_num_core_regs = 86; #else cc->gdb_num_core_regs = 72; -- 2.50.0