From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id rNMxHBTpVWX9sQcAWB0awg (envelope-from ) for ; Thu, 16 Nov 2023 05:04:04 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=F+i3yBeW; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 614F51E0D2; Thu, 16 Nov 2023 05:04:04 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3F78E1E091 for ; Thu, 16 Nov 2023 05:04:02 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 789433858423 for ; Thu, 16 Nov 2023 10:04:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 789433858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1700129041; bh=Q4eOJfeOkkFPFflWbbkQAWhfiAsfV8JZoCxbdsQ3v4Q=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=F+i3yBeWmvecxCw2hR8hm3qJ8Io9eW9qWLBXkLHnG1MHHUsa5ALTGjO6iscOEq52e ujsMjiUbs8Vpp5dbs1ku1v/czheYqxYs31R1WV7wHblw0v32VOBx5oH4K1UzK2BpXY 2qeRbT3/RXXB77BQZ0boXq1UbUBt7NtQxwacOYyw= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 77A363858D3C for ; Thu, 16 Nov 2023 10:03:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77A363858D3C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 77A363858D3C ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1700129013; cv=pass; b=QLZjiw+5rK//Xb6vxsc3NXCIftcLYEzLQkiZCm5p71gK1ZG0/U8b70YMc/lQhF0z42PcrnaEVv7LxBzpfl0BE33IZRUNxj2XSq2XupBueFFFbLTO3apjyvV1nHdhMy7cb1k1b+mu1RufBRCgQKgeouvLsI1rq5a1ZTxU1OGqE/w= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1700129013; c=relaxed/simple; bh=+NNw3E5bjXLeg0J12eGDiyUfskO+6Kxtn9Xn3WK0yX0=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=vpCsDzOeTAZaHEk7aR0jBma2Qzdt6Qf90lrksT1DhkJ5RpwtXbLJxfjsrzMl3P/ET1dvGC3h8tBmPS5tCefrMi+w05e0uUw3r02hSRYKYVQfYOwbIvYrhk9NgVMFT/YirBdT3jUy0GZpmAZZc+kbzTLrQnR1KvJtf9ftz/rHwUo= ARC-Authentication-Results: i=3; server2.sourceware.org Received: from mail-vi1eur04on0630.outbound.protection.outlook.com ([2a01:111:f400:fe0e::630] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3ZDd-00067s-Dh for gdb@gnu.org; Thu, 16 Nov 2023 05:03:32 -0500 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=buyhSUvizZYIQ6iLaWNj1ionHci8ln7tzpCyIO3CoEfCuLQIdAAXPm37/xgow/y2c8TADKZhFCgbOJ0/6XziHMSH+dVP+irMiwJeLFo/SplKApkyntnrRtBhzq03FXMspYCf09+5VMqBnseH8RfIJd8DISSTMmK4tz5DLSw/EKsxG4/PfvH/NV3hAyr/DSynPnIEF9urEw26vit2N3dCgZkPfS4pQiQEtD0JDbQJP4c/KFfKTI3RhuIg/hbxAXwzKPz20eTJXEZkqswglUwz8artHi2rQ+LBwH0CU56ssy4334fGySfpX3h456Xr8DniRvqjvIOuv7B+ZEvLmEcltg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q4eOJfeOkkFPFflWbbkQAWhfiAsfV8JZoCxbdsQ3v4Q=; b=Cyzgt3azYpWdD8+sRH1857leRkgf4V0dStMgZ3+6GjuCM7YhNdbv1/xFUmuCTbxD8qbZng3DiA4jK44VxfjyZr55+mXW34TwwmlGPJ+JKbTWyEe1b2gOhjfpIbJVX5tQd1deQQcVSn1+jwWpeJsV3xldZu3PvcH5EWu0REf8eoX8n4LOFByZi28fZSIAvx0EQopekWzwHtLlxv0CgTYV9wMXiOOu6enb+u0xrYMdCLVs1qkqS8B2ZAqdKzJO8XRK4UkeTebjR5scFgc9w3oF5SoE0SJk7BgqdoGf23fO3bFTMwXEThi3PbpEzs6X+ZhkcQth5/Tuzv+k37/RHeTXvQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from AS9PR05CA0062.eurprd05.prod.outlook.com (2603:10a6:20b:499::7) by VI0PR08MB10760.eurprd08.prod.outlook.com (2603:10a6:800:20d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.20; Thu, 16 Nov 2023 09:58:18 +0000 Received: from AMS1EPF0000004B.eurprd04.prod.outlook.com (2603:10a6:20b:499:cafe::78) by AS9PR05CA0062.outlook.office365.com (2603:10a6:20b:499::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.19 via Frontend Transport; Thu, 16 Nov 2023 09:58:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS1EPF0000004B.mail.protection.outlook.com (10.167.16.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.20 via Frontend Transport; Thu, 16 Nov 2023 09:58:18 +0000 Received: ("Tessian outbound 385ad2f98d71:v228"); Thu, 16 Nov 2023 09:58:18 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1c0e06036fce6f9c X-CR-MTA-TID: 64aa7808 Received: from fbe5ca8f1f8c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 69155729-6D86-45E8-84A6-88EBAD15F78C.1; Thu, 16 Nov 2023 09:56:46 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fbe5ca8f1f8c.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 16 Nov 2023 09:56:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjkZkBroOdfScNTimc+0KSQdl7maocUA50JW+nT1oiKekRh33WuLnXAVSFnelbOXbR0ZRBLAdWBfpygCly1wEJwL+baH7I/zBYxEUXaOhRhweyLytsoNrT7TgYOWZup5WE1Cis1340AaHl61KtZPRke/HlaZQFnJfkMPWjf8cCiZMkEe+Gm+ShAG6aCxMZZ5vx18gJ76wf5oSUKghp3KwguOmSOSP5US9Yx30ObvdiGS2GZUfvhQFfj5fiGbAoKSY685thqxfg2Tk7A2+OElY8yJgLpn8/YCfkYHwEJwjLi38oBFjtFsEusBjZoijazUXG4aUju7mmCU2wfKU7olMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q4eOJfeOkkFPFflWbbkQAWhfiAsfV8JZoCxbdsQ3v4Q=; b=OfS9oJY0pRL2+AVK9OyKVek0cctwJS6XgElYObu3khIDTNTNDvgVKqeOA+TiEh+VZyMpjpTgDdVUjtyZiCa5g3CCvZ8nXjvnAo4tVTJDnSE88X1Pq9g3ud/MhoTE1QavjbPpMHBvrjtWrBCRKiWGQNebg5wUoWLslp4Yb20v568/0EAndkVgLPWgzPVE7c1Eo1IoqGZUaRbBaobutUMGRQGug/FGucxieQgWUB/CNSQt2gzUaXlcUyF5NNC0LwWgCJklCIdAoYWNn88Q9mGrcyxH0o23trJC8Rcc1REk1NbhTAJEbQzNoD35j5u0g9GyLUrgav0/Bp1CRA66De4pMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AM9PR08MB6260.eurprd08.prod.outlook.com (2603:10a6:20b:283::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21; Thu, 16 Nov 2023 09:56:44 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::e05e:c012:f1f9:eb51]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::e05e:c012:f1f9:eb51%4]) with mapi id 15.20.7002.018; Thu, 16 Nov 2023 09:56:44 +0000 Message-ID: <37df0557-faf0-4667-925f-fcc7deac4f52@arm.com> Date: Thu, 16 Nov 2023 09:56:40 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PULL 06/23] tests/tcg: add an explicit gdbstub register tester To: =?UTF-8?Q?Alex_Benn=C3=A9e?= , Nicholas Piggin Cc: qemu-devel@nongnu.org, Akihiko Odaki , Luis Machado , Ilya Leoshkevich , qemu-s390x@nongnu.org, Daniel Henrique Barboza , qemu-ppc@nongnu.org, =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Richard Henderson , David Hildenbrand , "gdb@gnu.org" References: <20231107142354.3151266-1-alex.bennee@linaro.org> <20231107142354.3151266-7-alex.bennee@linaro.org> <87il62vip5.fsf@draig.linaro.org> Content-Language: en-US In-Reply-To: <87il62vip5.fsf@draig.linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: LO2P123CA0089.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:138::22) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AM9PR08MB6260:EE_|AMS1EPF0000004B:EE_|VI0PR08MB10760:EE_ X-MS-Office365-Filtering-Correlation-Id: 486cab79-231b-45af-522b-08dbe68a8f4b x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: NOcPpXMYqvAGLr026LdqrGSX6LZPk3J6ivQxOyqxvwHnTRAt90EDZSfMFmJK3brC90v120NWg+3uy4qJ/wfVjlqPycoRL/BTEKFCqkGps4xQw2TrsH6B1ng5uWscRJstuD3JlrCColcc4Rf9C96Bmvx5RF9bSCtgKCRqMal0hUfxDi8qbz890dds6D8S8gx4TBlht6hmBDAsU62zgv4vNZTZ/2poy7CAx1c5sutmslf6VCGVh6iuIGxsBeKTK6FsvMGZOH3Pwx6rpLOwGEYM5Vfrs2pw5f/mpmFosEw7bDDcSxkZYZjkPs9VgxuWwPqa3rIWL0YvSgUw/BK2HDtaQC1wb3fjZUdprK5TF3WWhQjWcIQcs/BeXR8WQQd+2CH8WtLoKByQZD60aMHOwY0EKSho+i7jRaawp5mhrthx5QvJw6d3fGKZ4dzyK9GZ1y1F/46Y2HsdmkF7J83SnpIVh5NsNveCX8UvhBt3qwo1izOJaejaTN0jPqBzQdhlc1+VdZT0JIYEwGi0R2uKGWZZtgXt75vEHrWrmplc7GzSXDrb6GpjK4vtqQ5gVlf80dTC46ER6h4OzcORvtB4+uaBxf3nKc/kC07UTwneY/ViO6GEXjG1Ine6aNcyZrZAlFfc X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(376002)(346002)(39860400002)(136003)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(66556008)(66946007)(66476007)(54906003)(110136005)(316002)(2616005)(83380400001)(26005)(478600001)(53546011)(6666004)(6506007)(6512007)(6486002)(36756003)(66574015)(38100700002)(7416002)(5660300002)(84970400001)(2906002)(44832011)(31686004)(41300700001)(31696002)(86362001)(4326008)(8676002)(8936002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6260 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS1EPF0000004B.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7d04472e-9183-4f09-a9c5-08dbe68a5639 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kIBFX0sQKyDYXS2o1Tl3gu3ep+0fc2nP/8r7mWbrlXedeKE1JjoqbOojT26A39S8rWukQzPIEoRLwDlZOKp/NiNjNNVIIBJoGPzF4DVZFIxW8qGeyspfWs2A+relhhgBEjPVM2k+18G6wqfyihh9EocJKMMBUAeHRc/bg2A+HGm4EbxT6fWDLGh3sb8aY4+ZJJW4zKxufuiM7ySIjG1HLM3ypfZVCPRYOAksmD2xEnnDK+9MEw9jvpZ2Vwnmm9ioV3v07nRrwYGa6J2s0ROFnj82Or9UCk8Z6DiQf1mtTSH6tJtjCsD76CEv+03U+71cK9/sUmLZbnOD8hBQz5O8S62CGN97tdU4HvP/dyAxbHlIY6lbGszDTPlARqKihuZ3wQqcek8M1YFDAToTV5z3FUZYN/lolEhu/ZyX6fqxoq+T/Wz2k0TSou6zQgsp9eJwHLsVOhlEO8Kaez+YZG+DaUKLTf4G/ukiMjG6JJyp/V7taRF5kzmzzIiX9JBdyn3sy/g4Y5aHd3pZACDbKOx7Sp/6kcVzV+NF4GKi3IWezSAWj7J5OaCIKkb9XDolpXiTigY5vzAj9BJJtoViEJyolF+uOm9wslgn++YdeoFIHGt+1EjkIdoBEa9PqwTgZucTthO28zW9zYBm8t5jd4Ow3Pju3tozdlF6stJcG+InxYConFPEXQuD/ut96paUlTrWM5kACQ58d5PDyuwXlAfVfxp7nBysMOSJKcwIWKraP5jZX8RcjgTeY8zhoWhizYiB X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(39860400002)(376002)(346002)(136003)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(82310400011)(40470700004)(36840700001)(46966006)(44832011)(4326008)(2906002)(8936002)(36756003)(2616005)(8676002)(336012)(66574015)(36860700001)(26005)(40480700001)(31686004)(6486002)(478600001)(31696002)(86362001)(70586007)(70206006)(5660300002)(110136005)(54906003)(316002)(84970400001)(53546011)(82740400003)(40460700003)(6512007)(356005)(83380400001)(41300700001)(81166007)(6506007)(6666004)(47076005)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2023 09:58:18.6229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 486cab79-231b-45af-522b-08dbe68a8f4b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF0000004B.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10760 Received-SPF: pass client-ip=2a01:111:f400:fe0e::630; envelope-from=Luis.Machado@arm.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_DMARC_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb Reply-To: Luis Machado Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 11/15/23 20:56, Alex Benn=C3=A9e via Gdb wrote: > "Nicholas Piggin" writes: > >> On Wed Nov 8, 2023 at 12:23 AM AEST, Alex Benn=C3=A9e wrote: >>> We already do a couple of "info registers" for specific tests but this >>> is a more comprehensive multiarch test. It also has some output >>> helpful for debugging the gdbstub by showing which XML features are >>> advertised and what the underlying register numbers are. >>> >>> My initial motivation was to see if there are any duplicate register >>> names exposed via the gdbstub while I was reviewing the proposed >>> register interface for TCG plugins. >>> >>> Mismatches between the xml and remote-desc are reported for debugging >>> but do not fail the test. >>> >>> We also skip the tests for the following arches for now until we can >>> investigate and fix any issues: >>> >>> - s390x (fails to read v0l->v15l, not seen in remote-registers) >>> - ppc64 (fails to read vs0h->vs31h, not seen in remote-registers) >> >> binutils-gdb.git/gdb/rs6000-tdep.c has: >> >> static const char * >> rs6000_register_name (struct gdbarch *gdbarch, int regno) >> { >> ppc_gdbarch_tdep *tdep =3D (ppc_gdbarch_tdep *) gdbarch_tdep (gdbarch)= ; >> >> /* The upper half "registers" have names in the XML description, >> but we present only the low GPRs and the full 64-bit registers >> to the user. */ >> if (tdep->ppc_ev0_upper_regnum >=3D 0 >> && tdep->ppc_ev0_upper_regnum <=3D regno >> && regno < tdep->ppc_ev0_upper_regnum + ppc_num_gprs) >> return ""; >> >> /* Hide the upper halves of the vs0~vs31 registers. */ >> if (tdep->ppc_vsr0_regnum >=3D 0 >> && tdep->ppc_vsr0_upper_regnum <=3D regno >> && regno < tdep->ppc_vsr0_upper_regnum + ppc_num_gprs) >> return ""; >> >> (s390 looks similar for V0-V15 lower). >> >> I guess it is because the upper half is not a real register but an >> extension of an existing FP register to make a vector register. I >> just don't know how that should be resolved with QEMU. >> >> Should we put an exception in the test case for these? Or is there >> something we should be doing differently with the XML regs? > > Yeah I suspect this is just inconsistency between targets on gdb. My > naive assumption was XML should match the displayed registers but it > seems there is additional filtering going on. > > It seems in this case the registers are still there and have regnums (so > I assume the stub could be asked for them) but the names have been > squashed. I guess we could detect that and accept it? > >> >> i386 gdb does similar: >> >> static const char * >> i386_register_name (struct gdbarch *gdbarch, int regnum) >> { >> /* Hide the upper YMM registers. */ >> if (i386_ymmh_regnum_p (gdbarch, regnum)) >> return ""; >> >> /* Hide the upper YMM16-31 registers. */ >> if (i386_ymmh_avx512_regnum_p (gdbarch, regnum)) >> return ""; >> >> /* Hide the upper ZMM registers. */ >> if (i386_zmmh_regnum_p (gdbarch, regnum)) >> return ""; >> >> return tdesc_register_name (gdbarch, regnum); >> } >> >> So, I'm not sure how they don't fail this test. Does QEMU just >> not have YMM/ZMM in XML regmap? > > No I think we only send the core one with XMM regs and there are no > additional registers sent via gdb_register_coprocessor. > >> >> Thanks, >> Nick FTR, luis.machado@linaro.org doesn't exist anymore. As for the XML, it serves as an architecture hint/description of what featu= res and registers are available. GDB will process that and will potentially include additional pseudo-regist= ers (so QEMU doesn't need to do so, unless it is some pseudo-register not accounted by gdb). The rest of the features/registers gdb doesn't care about, it will just add= them to the end of the list, and will assign whatever number is next. GDB will be able to read/wri= te them, but nothing more than that. IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.