From patchwork Thu Jun 5 16:26: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: 894194 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp46856wrb; Thu, 5 Jun 2025 09:35:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXUggDynUOqXdNE9skOKATaHDjYiEDV+BtnCeuj0BAkKDNg7UE7A/SnJgx4v1/zW7wvGAi1nA==@linaro.org X-Google-Smtp-Source: AGHT+IEFrzftQTBnLJN6InXQmXB5HReXtAWWhguoPHD0Vqgp6UUc+h0I34pQ2ynw1l2jl1r0rl77 X-Received: by 2002:a05:6214:5086:b0:6fa:cdc9:8b02 with SMTP id 6a1803df08f44-6fb08f5487dmr1896886d6.16.1749141337110; Thu, 05 Jun 2025 09:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749141337; cv=none; d=google.com; s=arc-20240605; b=IWxujO1qbotnp7wjLiAmXpgtCt7vC7j6J2iB3PWYxHtV40VcoZm2b6B2we6SxVaYYO XcZm/KKkw7dyXVk+BDydvl3HJkX93kVx3HM6IKB4/XYVhxBBESoth3pnT45NP4+w4j87 Na7mZy310ZhyurAh/QAC5Gu2S9MavXL0wCklYhVtWpRSeQHNS8uTD7DsgsgEkxeDOqQm 0EIr0QUqFXGs6yGowfugZeJio8Pc1aWW+AvChw4XFUT1PvLXgCIqMc6dg2ioM5AMexhZ HVB1QNUIAbv8VxGSyavviSo2g+gFa++cps+UEgh3DjAskJl/ZN4mTJ9AUZQKf+9I28Ky +O0A== 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=uVzzb/76JOFY7jHX5yCZIpFfAYYIv9oWrL8sx1vZiVw=; fh=ShWhkiTPQgHYNu8KEO8IvLzPMupL4zEhnNYTDsqjs5U=; b=WExoR1Rg4W6xprhZi+pvJz8BDOnxzrifKTa6ge/c7VaLM9okrFdWkNMx+MradPsZil 0Pa1oHiOnBVJSuxyuIZzMhyg7WsSkfm+0sAietx/BgM21sP7DSgVO1F8IU337kRMuLcU oKxAVTDyDhBnQ5my9ZEcWGXCzIRHwgrIaIyDWqf2PhL2oDoYr/AUuvF/JgfGfI2Ek6Px u8vZ9NisDDXALAYzaeDXbl9c3Gwk/RABdU4BQr58nKnVI9M1iN0ljPhed6xQjrRM2x3Z mybJSNvllNdT9ruJWUNN4EySiPBlWV8ee00FwwC7TDAG674GTupuxYTat75JSS2cn1qg JEsA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O33EUgDu; 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 6a1803df08f44-6fac6ec7e42si170239366d6.401.2025.06.05.09.35.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jun 2025 09:35:37 -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=O33EUgDu; 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 1uNDYh-0001mA-83; Thu, 05 Jun 2025 12:35:18 -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 1uNDYZ-0001iH-95 for qemu-devel@nongnu.org; Thu, 05 Jun 2025 12:35:07 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uNDYX-00021B-9m for qemu-devel@nongnu.org; Thu, 05 Jun 2025 12:35:07 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-60768f080d8so122982a12.1 for ; Thu, 05 Jun 2025 09:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749141303; x=1749746103; 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=uVzzb/76JOFY7jHX5yCZIpFfAYYIv9oWrL8sx1vZiVw=; b=O33EUgDuNxSyJljJhqFroVIFQpgKLQ5P4yHGe4Ltd6M9Qg0W3cawU5qZfSS0FxkcbH /680NtJ2V83OEcxqfNQ1rp6fAJToCNkKF+wU5gT802Lq81ybOE6wqgaowWzvwqEBGtQc ymub6ubXYpaV2QDWJPQEyJX8SnXj2Ae3AJj/YrPaKvcg5O5E0wRCWpsPw162jmM/Yrcj R8PGuf8dgCiOBc8T73cmFSedJ3nqrsLSL7GC2hitANdG54lW+ddkHixXQc4kyZaVafrs F9N+KSsSuUp9RGOA+yGZ8rILW7mAzaRxTxCBrSSVBykqcnvTaKaBVcQCoIcD3j/GZ0kq pqYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749141303; x=1749746103; 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=uVzzb/76JOFY7jHX5yCZIpFfAYYIv9oWrL8sx1vZiVw=; b=KQeY4idsv5nIFyxv/9PIBiyakZE6HZ9ynlvXy4IJZndZ1dagGDTTuo61AXpkGGaM71 57wsTlwwehwmcri8JM8KaiQoh9jPH+t/pFKLPciE8kuomRFhIT+sA5+NFVHpS92o/lCG u49i5AqHYMS30Ilf7TGepVno5jP1HieZM5bHhP9F2d0FeaG7+KCu2AJo0rbtI94Gh7qm +8IcprfPjtflHAE3JftTTbK4qCUE2NX8OdBJVyo4TN57MeHXlMvc0ucl3zmmhm35PuC/ vV1OIvM36fzE5EzaAXuk3q6tuvkQxQpx1OB+FVLc/f8NBzCKUDEVbVfbhCp2skgsSaoi /k/Q== X-Gm-Message-State: AOJu0YzTJtKG34DcYq5+EuFQQ55iksyMflljLGt+6Z+OP2jov3rT7bJ0 4aVoS155rwfVLBB4sHK7RhWqraWx78s7Ydb73FRR9MpPZ7zXKsem6ycXgYOR5z0QGDAH4L7YgmN PrMR+OAQ= X-Gm-Gg: ASbGnct92R5VLFmd8eVtw7memvAf7Lz9+68an8a1xJWgONnQIMluriYsNXUkEm+ny5D s5L5ZesbFsatIeaiDNTubWaHn0xkOW1vdagmkl5UN2A6MZUdzPltVM1ZUe8KQ0VMk2PVof+eDTV 6GCDq4l9T9JlOioKx3576b8VtgMU3/18lJLpJ288nTEm4ZEFNOaSSXbbh6VsWybbtktXrLO/r/R jYyT5qod2LWpslHZhQ+hAv6NdHq04KVkqz2BGc54wJwogKQHr5aTsUudEb6oPqQtiTAKYXwwF+6 ZqavBw8tn/O/G0FOCKinopouLbalSz1LppV37EAK5n66+OJsjiQJ X-Received: by 2002:a05:6402:5248:b0:5fa:fcda:bf57 with SMTP id 4fb4d7f45d1cf-606ea3b6b89mr7300232a12.17.1749141302761; Thu, 05 Jun 2025 09:35:02 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-60730b1ec8fsm859243a12.43.2025.06.05.09.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jun 2025 09:35:01 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id EF49E5F834; Thu, 05 Jun 2025 17:26:52 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Manos Pitsidianakis , =?utf-8?q?Alex_Ben?= =?utf-8?q?n=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= Subject: [PULL 17/17] gdbstub: update aarch64-core.xml Date: Thu, 5 Jun 2025 17:26:50 +0100 Message-ID: <20250605162651.2614401-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250605162651.2614401-1-alex.bennee@linaro.org> References: <20250605162651.2614401-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x529.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 Message-ID: <20250603110204.838117-18-alex.bennee@linaro.org> 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 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +