From nobody Sat Nov 15 16:43:25 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1751301771; cv=none; d=zohomail.com; s=zohoarc; b=GnliVV9NDwYgwgG75IRHLHyxbDZ7em6MQTbQTdQWPYj0LdPK53HLE0RzbIfudD4hdzS6Fx0RQx3GJE0K2aCbd74B+dfWuD4mHyMmARh2WjiYM06DIFN6+LtpGNi078E+BGHRDjCu899Xj948eUdNXhCaJWIHsEpBiidmog5rNPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751301771; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Z0uO3LHm5oL2Yx8jbs1PkNoSZKDdb93SOzvoVU1OTs8=; b=Xf2qtvmgF61FaT8HikTIyAIkfBtyWEAu9KDwd2xf+zZRiZUBhi005FuR/tNcVCEED2gIBIaiJln7d1HPzDCvYNepM2pLlh+ebTOszVtd4zBvRpevSm6N1keokvANke8SNJ8VxsTX8S0QM9Qs89FQiSaLr0DSD2vjCqW9Vv6FAz8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1751301771147552.991287636258; Mon, 30 Jun 2025 09:42:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uWHaF-0002aU-AZ; Mon, 30 Jun 2025 12:42:19 -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 1uWHa0-0002S6-Gg for qemu-devel@nongnu.org; Mon, 30 Jun 2025 12:42:11 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uWHZx-0008R4-P6 for qemu-devel@nongnu.org; Mon, 30 Jun 2025 12:42:04 -0400 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-235f9ea8d08so40740525ad.1 for ; Mon, 30 Jun 2025 09:42:01 -0700 (PDT) Received: from darlin ([89.187.185.165]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23acb39b9fdsm90082595ad.108.2025.06.30.09.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jun 2025 09:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751301720; x=1751906520; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z0uO3LHm5oL2Yx8jbs1PkNoSZKDdb93SOzvoVU1OTs8=; b=Tsz+SzSFeBPc5Jw6X+g3SznJC1M8OcMNBDq548SllTyytTRjzPOPdXourZ3Xebvxhz GIYB42sq8KTbTjmK98sRDxcyKx2e1tSTQtGM/dfzSt4FHvtTNK1jYEp0QxM8Jx/ULYby BxvYJAbnmF4WXPODHXLQFZ5BKShCu3vbny78TZUp/x4S6asjWEQYYVpS0sdCzPIxkbyd entUwrJ8+TQqrjdKv09Dub7tKPPuAVfDGu2UP4Dbt0lZpgBFJmrf09evPcJlnNTc137l JDQgNN5hJxBC8bRpbVGNFqecudOjbCdVHrUlIlnIQ3WskPWH2gVydqMIf9RhmMmm9kWw iBsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751301720; x=1751906520; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z0uO3LHm5oL2Yx8jbs1PkNoSZKDdb93SOzvoVU1OTs8=; b=fjckoKOQ48IYVcXhD1jGk22UOK+3rTCnGf41OTgifVcAbL6BwxvLdBhidCaE8Nvd4m JDoOneMITl6MKmc+hfKj4Ky/onHpDcDzjR2K/xfg4H6sadrXXYen47hpaF6LauhT0mex NHG42a9zzozy+d3/9LJiH00y+0T7YAU+gjTAnKujKC6Or/cpV1bcAg7yYKvtXffXN/IN tmBljUes50D6PVoerwT6qfYtx3w/oKMSx9WZwfB5WJf/hb7AaZyslDk3LBWNFz4neQJw VDtgLXC/GRkcRjYC7WygAwR5nQiFZQJSeCT/uxV0EpaZ2Nsd1zYfqxd1sUcUd1MWyps+ azbg== X-Gm-Message-State: AOJu0YxLSr7zEWHeiZooOfAr0DWbF0DH1QoLiz79E82yurEZ/qXXGjz/ n4sbe7WjUEJaKMts8LoXp1Vnm/R8R1zE1dSjGzL25VR7YOXMBiIQajvmPQSW4W9J X-Gm-Gg: ASbGncsqin8tjVjmWpJ7DTK4FtP9oYpKbFm5HRdMHaf936Sj6HDRbXyiNJa/3XENB4S baFYphmy1VK56SYf84hJ1idAozUR9rgLLmwt79OGBjlYASxsYOIY+GAgs9lc+M69QSpdYfBz3Yj okCSDERPzqub5z4UylXYfkmp4N2oX0kkQkBgQuzZVu2DqYTtNCSshFD3lm/ICTkmz/VFvZZ8fD1 Rm3koX+drvvVf5cDxmrPoQF6q5PDMcsT0RydYQGNlHb9L1303/Ezl3z20TyqYW21r8K5XN4hcSk fDa2Qt26hVvIFW4Te6CjpoWDlHE+EjhyycKM78E8AHpFVguMQ41coAVZXA== X-Google-Smtp-Source: AGHT+IGa+pgIR0rVJ6geGkv61AnipUJgA4HzUNN1Msm/pgz6jIS7ABDpdEkhfEeLKA/rlKWMJNm5xw== X-Received: by 2002:a17:903:8c8:b0:234:d679:72e3 with SMTP id d9443c01a7336-23ac468378dmr219883855ad.42.1751301720000; Mon, 30 Jun 2025 09:42:00 -0700 (PDT) From: Yodel Eldar To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org, richard.henderson@linaro.org, laurent@vivier.eu, Yodel Eldar Subject: [PATCH v2 2/2] target/alpha: Add GDB XML feature file Date: Mon, 30 Jun 2025 11:41:24 -0500 Message-ID: <20250630164124.26315-3-yodel.eldar@gmail.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250630164124.26315-1-yodel.eldar@gmail.com> References: <20250630164124.26315-1-yodel.eldar@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::643; envelope-from=yodel.eldar@gmail.com; helo=mail-pl1-x643.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1751301772535116600 Content-Type: text/plain; charset="utf-8" This patch adds the GDB XML feature file that describes Alpha's core registers. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2569 Reviewed-by: Richard Henderson Signed-off-by: Yodel Eldar --- configs/targets/alpha-linux-user.mak | 1 + configs/targets/alpha-softmmu.mak | 1 + gdb-xml/alpha-core.xml | 136 +++++++++++++++++++++++++++ target/alpha/cpu.c | 1 + 4 files changed, 139 insertions(+) create mode 100644 gdb-xml/alpha-core.xml diff --git a/configs/targets/alpha-linux-user.mak b/configs/targets/alpha-l= inux-user.mak index ef8e365b09..aa25766236 100644 --- a/configs/targets/alpha-linux-user.mak +++ b/configs/targets/alpha-linux-user.mak @@ -2,3 +2,4 @@ TARGET_ARCH=3Dalpha TARGET_SYSTBL_ABI=3Dcommon TARGET_SYSTBL=3Dsyscall.tbl TARGET_LONG_BITS=3D64 +TARGET_XML_FILES=3D gdb-xml/alpha-core.xml diff --git a/configs/targets/alpha-softmmu.mak b/configs/targets/alpha-soft= mmu.mak index 5275076e50..e31f059a52 100644 --- a/configs/targets/alpha-softmmu.mak +++ b/configs/targets/alpha-softmmu.mak @@ -1,2 +1,3 @@ TARGET_ARCH=3Dalpha TARGET_LONG_BITS=3D64 +TARGET_XML_FILES=3D gdb-xml/alpha-core.xml diff --git a/gdb-xml/alpha-core.xml b/gdb-xml/alpha-core.xml new file mode 100644 index 0000000000..c9e12f4ffd --- /dev/null +++ b/gdb-xml/alpha-core.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index 2082db45ea..bf1787a69d 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -286,6 +286,7 @@ static void alpha_cpu_class_init(ObjectClass *oc, const= void *data) cc->get_pc =3D alpha_cpu_get_pc; cc->gdb_read_register =3D alpha_cpu_gdb_read_register; cc->gdb_write_register =3D alpha_cpu_gdb_write_register; + cc->gdb_core_xml_file =3D "alpha-core.xml"; #ifndef CONFIG_USER_ONLY dc->vmsd =3D &vmstate_alpha_cpu; cc->sysemu_ops =3D &alpha_sysemu_ops; --=20 2.50.0