From patchwork Wed May 21 16:42:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 891548 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp2223409wrm; Wed, 21 May 2025 09:52:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUPjMrv6s0HW41NE+4pSCTNnA4VJV2xywqjqucI60Cp4TDfsAB4XgvVNexqiXyLzJeM36jdNA==@linaro.org X-Google-Smtp-Source: AGHT+IEPDMgWOfDOC/BKSqZHhTuMbDF6zTOmISa+fHvfYuud6rQ4SF6HHpGHdxMu0xGv1z4kn3RI X-Received: by 2002:a05:622a:53c9:b0:476:a713:f783 with SMTP id d75a77b69052e-494b096c631mr384359771cf.47.1747846329971; Wed, 21 May 2025 09:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747846329; cv=none; d=google.com; s=arc-20240605; b=Ti+TXH9gtLEV6AD25hkAd4CZMJK6RLRVZgxJJeUU4g5xnNgRJUqTELlJDdF/Dm1FR4 quGyo2PCDRVJxq5USH+jENL3ArTh/AkAHljJNu8W91Qcaf4E+0bfIxxvJptNFsjGFt8N sQEDoNHkaOF9fIDHR9y53NcbavFvWsNldjrvRNoWkIcmp+pI9uc5pjhqUl80G2NwL/p2 NPVfOwPTFZkCNi//YabPDONNQLUq6ieTCPOHNj3G7yOv17/HV7DL4iwdR5UvswMUk+4i +QdIpZuS7ZD+vlAmWluWDz2h7ApqTGoF8A+R4cBrc1KMgc84NqqDO4MtRNQ7rq/+iuhf lgcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WhBb26SjuKAOlwKxBTTGkr+A9vckx7GIaP4zLYV5QOo=; fh=pPgBmwcQ0eQ+JkZGJK8l1+KIbw+VjHVfb+jAtLcEPYU=; b=SJZpag/EQPFjNxS8WCrIUUJvBhhltBQAkDANGu3a0VXLjXCMlADzs6r3cHcPJgIrKP KOXw/MQ7VufmbTTmaA/jfVOGOaXKLrCV51QLz3S2XZ4Kr/18VsVJqR2kEpasL75QFs0o 93adb5nNN1LzltbQ8ehNT3Lk1+mx/BRJzy09ZEzGHQxiPovkfjwprCjNXZcou4/+hz8v aobyXX8SoXN5STQDEcHthI0U+Sm/qiZwpXv/KGapAdogAtLn0DSTLff5utCWEUjqCNf3 3m8HF8pZ9/gco9HqEyzjxRs8SJC52+B4F3OPJwJo992j92icCDIVy42K3dOntan0yNUn NusA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wm4PC9Dh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-494ae57bbe7si132822301cf.453.2025.05.21.09.52.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 May 2025 09:52:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wm4PC9Dh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uHmf5-0004fC-RW; Wed, 21 May 2025 12:51:23 -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 1uHmf0-0004dv-AT for qemu-devel@nongnu.org; Wed, 21 May 2025 12:51:20 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uHmeu-0007KT-GN for qemu-devel@nongnu.org; Wed, 21 May 2025 12:51:17 -0400 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-ad1a87d93f7so1124835866b.0 for ; Wed, 21 May 2025 09:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747846269; x=1748451069; 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=WhBb26SjuKAOlwKxBTTGkr+A9vckx7GIaP4zLYV5QOo=; b=wm4PC9DhbpSbIYXYfbv4vkZqiyQi9b2Qm+MN29qQ4DWnhYB1AJtWwJXP7VgDWueGrB AckAAxQxRUJ5h2t7i1A0KMFspEltPzJQmlcsY6go6PxMr4Y5LFCRHzLYCQhm/y18G/OA I2aOVdZc2E61uOzW6jIG+MdrY2bktAwHSlnJ//KDVqhXBAEMK39ksv0jC3OspD3hVkPB qfuX8zOACFGmlws1O6phbayLGIIFLG4I4n9SPuxijVzvs7/JmnwHfx7Ovvv5f7cQE1hB /hgv42bKhJydtqnjCd1GIqei7P8doRk+zwXJn0plXdEoBDH3kUpbDGcINz52uWX1Xubc GLlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747846269; x=1748451069; 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=WhBb26SjuKAOlwKxBTTGkr+A9vckx7GIaP4zLYV5QOo=; b=TjzNQzu1nw7GquDG0Ph04iawF8HtIXxI7ZiXlxkOG31D+4N7xh9NbddMQPmGK1sVDQ EigLZayxp2IRAvOV/YB3JSZ4VWtzQlcjFjuxkZNDpmi9+eR591m5Igq2xzMdmWlv+Fud afzoI9GLdH/IT9HezvY8rq7Eb9YWkGCTPfaDB1XBfsOf6DtZKEQjAoI0+F7byRGk8yZB W2w5zrj+qxTiR7zvhQ82UCtvYJ4a5jCd/Uxn4mhBAVmvZV5U/s8oSbJJpaLuV8A4L0bL s4qItDo4r62ECOx3C34nV6EJb1HjdNWX20JTz8lqxJFWcdykcasW6/l8OsJOA6ie2ZMp VzpQ== X-Gm-Message-State: AOJu0Yxqscz0bFiXPvxcv554FvGtft8DjM/w1iahdIK1daS1H0A61HaY 6SRXSIXnknSKaurcN/2qXb7azK93OlDlYOSXwS6wCfgP4Pkc3ZeosJL1PXUaVZfWjAo= X-Gm-Gg: ASbGncuO8QPOtntwiL2lPQ0BMOQuwEDlj/lYRxEoG49gr7aWzbpbXjRu56yhRs0YFLa yeeYKbcZSE9krHJCIFRueqM0xZoJz1Cgq1uCKKFN2Qtvbzc4yRHnRlN4GmfpeOqK0zMi2oz6jFt 7fYXS+NgRBXnIVdnAgQmkQo8lRRc63TtZI9I1J0Uc4767MfyH09L61K0YRBTIVhSO7Sbe6mWX3D /Q6uor4aGcNULL1OUMQfOgUhZPykKqFcm4FM1evL1b+am8T8Nd/VQkrau5xLM47pgt0cq33SU0N RMDNXMzpqJtMkhYX4hNiCBWkFkncW28JrmzUpczMN7pYKv1nXMOJ X-Received: by 2002:a17:907:7b86:b0:ad5:b09:115f with SMTP id a640c23a62f3a-ad536bca50dmr2020799366b.29.1747846269406; Wed, 21 May 2025 09:51:09 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad52d498b4bsm940451766b.148.2025.05.21.09.51.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 May 2025 09:51:08 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BA1615F8AD; Wed, 21 May 2025 17:42:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Thomas Huth , Paolo Bonzini , Akihiko Odaki , John Snow , Fabiano Rosas , Peter Xu , =?utf-8?q?Ma?= =?utf-8?q?rc-Andr=C3=A9_Lureau?= , Alexandre Iooss , Markus Armbruster , David Hildenbrand , Laurent Vivier , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Peter Maydell , qemu-arm@nongnu.org, =?utf-8?q?Ph?= =?utf-8?q?ilippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour , Sriram Yagnaraman , Dmitry Osipenko , Gustavo Romero , "Michael S. Tsirkin" , Manos Pitsidianakis Subject: [PATCH v3 20/20] gdbstub: update aarch64-core.xml Date: Wed, 21 May 2025 17:42:50 +0100 Message-Id: <20250521164250.135776-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250521164250.135776-1-alex.bennee@linaro.org> References: <20250521164250.135776-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x629.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Manos Pitsidianakis Update aarch64-core.xml to include field definitions for PSTATE, which in gdb is modelled in the cpsr (current program status register) pseudo-register, named after the actual cpsr register in armv7. Defining the fields layout of the register allows easy inspection of for example, the current exception level (EL): For example. Before booting a Linux guest, EL=2, but after booting and Ctrl-C'ing in gdb, we get EL=0: (gdb) info registers $cpsr cpsr 0x20402009 [ SP EL=2 BTYPE=0 PAN C ] (gdb) cont Continuing. ^C Thread 2 received signal SIGINT, Interrupt. 0x0000ffffaaff286c in ?? () (gdb) info registers $cpsr cpsr 0x20001000 [ EL=0 BTYPE=0 SSBS C ] The aarch64-core.xml has been updated to match exactly the version retrieved from upstream gdb, retrieved in 2025-05-19 from HEAD commit 9f4dc0b137c86f6ff2098cb1ab69442c69d6023d. Link: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/features/aarch64-core.xml;h=b8046510b9a085d30463d37b3ecc8d435f5fb7a4;hb=HEAD Signed-off-by: Manos Pitsidianakis Message-Id: <20250519-gdbstub-aarch64-pstate-xml-v1-1-b4dbe87fe7c6@linaro.org> [AJB: expanded upstream link] Signed-off-by: Alex Bennée --- gdb-xml/aarch64-core.xml | 52 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/gdb-xml/aarch64-core.xml b/gdb-xml/aarch64-core.xml index e1e9dc3f91..b8046510b9 100644 --- a/gdb-xml/aarch64-core.xml +++ b/gdb-xml/aarch64-core.xml @@ -1,5 +1,5 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +