From patchwork Tue Jun 3 11:02:04 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: 893868 Delivered-To: patch@linaro.org Received: by 2002:adf:a2d4:0:b0:3a4:ee3f:8f15 with SMTP id t20csp239420wra; Tue, 3 Jun 2025 04:07:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVSr1N/ismbOly0mN6ijbji3mQlRN9rMIVJ7LdV0MS7nZ3eZVgCSg+m3cMs2TIBuffv34Ih+w==@linaro.org X-Google-Smtp-Source: AGHT+IEhZj13HtdWa3vmOVDPkS1495DInXE0H+4RSOzyz3dxuhH4q1zRK6HCCX+xcKWoeoNuD/BR X-Received: by 2002:a05:6214:3011:b0:6fa:c4cd:cca3 with SMTP id 6a1803df08f44-6faceb80415mr272377876d6.14.1748948833104; Tue, 03 Jun 2025 04:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748948833; cv=none; d=google.com; s=arc-20240605; b=ZMR4QWq0V3AjXCXXvLgQ1LbdqBruJa9R4DALxVHF9oPXcCuQykWbvPfNRHDUqSw2ST qGdPjju2IrhH99GKcFuF5J9Hw8mxn5x0gpl2O/ZW2JLcD85Cvayw7xqb5beAuxSq8PiW Q4XIt+AYdgvze6vo5zcjkj5KZ4EezxQlzbn8cb5KOcKWy/C//X3iHvih/GHo87XPm7Vp 058DL1NVwlA3WsmgwlKUDbyKjJQmiqQml7GPkOKHvXCEZKzmBk5YwN9Ul6vEB48qb8iz s5RrKqLHcDJ8Z0jNlUuXfltYuOftW8kGp+3jIFomSdlVnymWdzpChrcco3h0PxZJwftW +ylg== 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=BM91DYmyhd/whlHWSkAx+XEJzxYMIFdJJZyTAcb4rl4=; fh=muDsnxovG+AgPp9M1DAPPT8EFVceeZP8cqjPS2ZpXps=; b=dS94/xX7DxVhcnxIKki9zxJwIu5DWRLs7D80Lh5g88aX4hwRlJ3pFnVtKQt3AmJr3Q b2CNANQ5vnK5JGhJiIjXzEYgQvS7x34ft0U991+owemMvXDx/Y0Wk2Y1kiHzzxv1Fkb7 Hef+ojtgE4hUzpyMa3qO7BndaooX68rPmCVP+1nu8Kh6c9uMr8rId/d3tdcavixDry9r TzkpaIfcektyHRDBJIOAq+Ge+c/vU6NcApWfI9aE4TxkpfVclnhMp86+CwHTQ89oCRCj jM4XaWdZHTy5RUMVFaSwZRxL3Rlh0YJcZMISB0quKtBpP6TpjSAJBCiOvuRtGw27hTGC qurw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i8PrxLVB; 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-4a435a28acfsi123072621cf.409.2025.06.03.04.07.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jun 2025 04:07:13 -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=i8PrxLVB; 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 1uMPSq-00045m-Ct; Tue, 03 Jun 2025 07:05:52 -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 1uMPPT-00087J-3e for qemu-devel@nongnu.org; Tue, 03 Jun 2025 07:02:23 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uMPPN-0002E2-FG for qemu-devel@nongnu.org; Tue, 03 Jun 2025 07:02:22 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-acacb8743a7so1055706166b.1 for ; Tue, 03 Jun 2025 04:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748948536; x=1749553336; 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=BM91DYmyhd/whlHWSkAx+XEJzxYMIFdJJZyTAcb4rl4=; b=i8PrxLVBzIsWtswU+KvuZ4yy5/XNNxGxmYzeCtIj79ICAPgCVqW3/aJLBkMuvRVb5x 7DPz1/aH8r7TzJZLo2EGnQWld3WFQmAh5/PVGCB5gaPL75L9xj5VcK6UrOuz4jNX9w9U ApmxWVI5wi0ugxveZP9onUkExHnVzK1arn7+yi3P74WCg/sotQ+upjv51HtfStQZT+Al uIx6FxSFYm6jwaFden+gakJF9QsWwQkMta+wO2IBc6p4had/2+QVOKrHklDDiPKCtoGu gQX/2Qwl2BXrgTj9cEsHQeJFPSm+MGD4NplRNB2rJZ0/T04TL0M8+OYgYsm2N+Go4U57 hNwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748948536; x=1749553336; 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=BM91DYmyhd/whlHWSkAx+XEJzxYMIFdJJZyTAcb4rl4=; b=BeDd+6QXzGsx3NBF8GKDHMmz42OgNGLIzZ9e25cSblitZvqyG1RkEHER0SCJjD1BWm hxwqdSgBbVK/W1pAYhzgGg4C7uSFwMFrFKtU55JXbm2PYV+JazIC5LQ3WqBAQ2ogu/Tq K8ww4jbnqZzCC4kfy5KZ6OhHja06ujqmZn1jg4EPRmtfrePF4iP2SbJs8wmFQsFqj4+L fUwGJwhyivNzvrHVWRHZ6QTAC8aPQvwgVs9Lh4MJd3Pf5gs5SGYrTsy9tafmwwhdhQMr WnvgoE3VzEEF4HIUPdfKGFG+5Z/SLzlPPQQqYVyiAHxTIjoXdYcS/3VUR4142P66ulcQ BWqQ== X-Gm-Message-State: AOJu0YxJdndPkA0reRTUKdsKeal2f6Gnb4jAOLN3ES8Vl+LG6D90HYgz WXpvBQQaidYZxAjkxu4Dh1r2GW5ri4fha/5D1/bYbc7d0dX+2u8vskL+xooBIE0q3Dg= X-Gm-Gg: ASbGncuE9SyI0i3qg+IaKFUkLMys1YviaOYN0aqITq1xeoryCIQR1oGS07IVns88inx 59GVKxNkk0Nkiw/6IQFN53I3hpUxu1Bbadq8xth+L9owRGyXEr7N43mWO9lFOsqv92TZ7JgZRNS a9peagVt68DxhQqpOCj8cnUAfSmA37zRf5bOhswzX3RfxivzKwpuslI4mXRNb1gZPii35/wWzFu L/1DWZp/iL7Atj2jkmgwsKjoNAxDP4eSp9e3a+obdnCAg7sYUy5DVr8+BkClE0/PDbaC2E5XFzn MTTPXhdtLEjLHkYLM+yyccNIz//mMDT0Z5UwF2h/hDdYc/w3JoDi X-Received: by 2002:a17:907:8694:b0:ad8:5595:ce07 with SMTP id a640c23a62f3a-adde66ca1d5mr167272366b.19.1748948535778; Tue, 03 Jun 2025 04:02:15 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ada5e878152sm938855866b.107.2025.06.03.04.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jun 2025 04:02:13 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 795095F9FC; Tue, 03 Jun 2025 12:02:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Sriram Yagnaraman , Akihiko Odaki , "Michael S. Tsirkin" , Dmitry Osipenko , Paolo Bonzini , Peter Maydell , John Snow , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Pierrick Bouvier , Peter Xu , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , qemu-arm@nongnu.org, Thomas Huth , Alexandre Iooss , Gustavo Romero , Markus Armbruster , David Hildenbrand , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour , Manos Pitsidianakis Subject: [PATCH v4 17/17] gdbstub: update aarch64-core.xml Date: Tue, 3 Jun 2025 12:02:04 +0100 Message-ID: <20250603110204.838117-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250603110204.838117-1-alex.bennee@linaro.org> References: <20250603110204.838117-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x636.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 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +