From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 569E9CA0EF8 for ; Tue, 19 Aug 2025 09:15:08 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uoIPn-0006uO-6Q; Tue, 19 Aug 2025 05:13:59 -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 1uoIPl-0006tC-Bq for qemu-devel@nongnu.org; Tue, 19 Aug 2025 05:13:57 -0400 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uoIPj-0005L4-6l for qemu-devel@nongnu.org; Tue, 19 Aug 2025 05:13:56 -0400 Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e94e6c617a4so457342276.2 for ; Tue, 19 Aug 2025 02:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1755594832; x=1756199632; darn=nongnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tj5O3zBofSq/ThAwdeyH9bgW8PDCyVQCcqXPlL16t0M=; b=mWyVCpydKX8Wht8EaSR5e1tpGxCxFGR6VsiEll6hEuR1KcOllgdrmitFFlQcGtgSn4 QegoFQ0kUF/nB709TYdzjzbqrcrGdc1H3uarMX43onBokfOhuDwNEODBJ+bMw+QSYacZ B6dXPekCFMmDVo4f3UqplqNReIEk3NwuAwcizIJnjT3/557AMKRtEKtQqOcbMagNRbq+ +80yqe8X08Cyw+F0gBNRh4Ecju8nEFgSFZw+JvMc3rklFoTQaL68R/bCzFTiyW4WykIH 21fx6TwSHg/93aJNWp/+ByU5ilBR1a0LPtp3gr36Nd5erH4lMSvwrrwRzHTQL/0xk/e/ LShQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755594832; x=1756199632; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tj5O3zBofSq/ThAwdeyH9bgW8PDCyVQCcqXPlL16t0M=; b=a0FaIJzP5pDCnvgXS2doDAwYwcDIhJ09LOoZffXrgcm2OZOmaO92inVICH2a8isQyV MEBqfymEorM0X6YhQX2Lm4lwL0100ODubUxUHgUnHgzFMQ+Y9hLn/WKZ4ZhtTFy45qD/ FQP5dTbwERz3Rs/QS0TGtBncpPJ9iAQiKFZ1/GfTedwP1JmdC+DnshpZt7DPTBww+PdU +bKsTVuemQqCVLhBNI7v6fsVekKYgPhFpIOlPWOdLlUnfAWm3OINNO2p6m5czA7SBbjS ok5IM3lnn8siGkNWgkudZ0ktPA07iDLfC8F/6KhFSFu98LZgCvwsTG66um08iYAc+ZDQ B4rA== X-Gm-Message-State: AOJu0YyFb7wvfCvaXoknZmPL9Q0lg5lImv7S/CBp4n/+uspl5jnSoPBO cX4zCJ0wzLt7mba7POfACDGrG+Hg1CrhizIcctalh8HwLhWv58294EAanYE1Rik9pQBT1xrdX55 K9MFhgmSH1QV+U+cuuCb0DS92O7tNeSdMD4mL68irpg== X-Gm-Gg: ASbGncvzyXVTnZGeF7cB9QGFW+4aJSv38JirvMt/fdl7FW6XI3GfUci63JFKssF9182 hJAlnt1NyiWY0qCvCXQTp1Gdr/j2n9yeqLX3wVHwOArwWtKnT46NTIFV2hjxBWE/eK27STppNnT wWaKzk77WWTBBRayswiDs0uh4206ELNKT6SZK1pzYP3HIKF5hy1Drh0etOnqoNQ6DD0Hfvymvdi 0cyBzhR X-Google-Smtp-Source: AGHT+IHT0ElViaG6RmhnSoO6a/CGssITYJIFn8TEtSsyhcGctajF3BsA7U6qxyJLNFhoSJhjB8uV505FOKhxCjweiH4= X-Received: by 2002:a05:6902:114d:b0:e90:6d24:6741 with SMTP id 3f1490d57ef6-e94e62d78e1mr1838794276.31.1755594832500; Tue, 19 Aug 2025 02:13:52 -0700 (PDT) MIME-Version: 1.0 References: <20250811193654.4012878-1-vacha.bhavsar@oss.qualcomm.com> <20250811193654.4012878-5-vacha.bhavsar@oss.qualcomm.com> In-Reply-To: <20250811193654.4012878-5-vacha.bhavsar@oss.qualcomm.com> From: Peter Maydell Date: Tue, 19 Aug 2025 10:13:41 +0100 X-Gm-Features: Ac12FXzv6nnLCgJo7iCQj_qrqw5e1qmhPbhBxTLdkk0eaIXpA78_g0cI_AvR-IA Message-ID: Subject: Re: [PATCH v5 4/4] target/arm: Added test case for SME register exposure To: Vacha Bhavsar Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Paolo Bonzini , Thomas Huth Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=peter.maydell@linaro.org; helo=mail-yb1-xb34.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, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Mon, 11 Aug 2025 at 20:37, Vacha Bhavsar wrote: > > This patch adds a test case to test SME register exposure to > a remote gdb debugging session. This test simply sets and > reads SME registers. > > Signed-off-by: Vacha Bhavsar > --- > Changes since v4: > - this patch was not present in v4, it was added based on > suggestions during the review of v4 > --- > configure | 6 ++ > tests/tcg/aarch64/Makefile.target | 23 ++++- > tests/tcg/aarch64/gdbstub/test-sme.py | 119 ++++++++++++++++++++++++++ > 3 files changed, 147 insertions(+), 1 deletion(-) > create mode 100644 tests/tcg/aarch64/gdbstub/test-sme.py This test fails for me: timeout -s KILL --foreground 120 /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/tests/guest-debug/run-test.py --gdb /usr/bin/gdb-multiarch --qemu /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/arm-clang/qemu-aarch64 --qargs "" --bin sysregs --test /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/tests/tcg/aarch64/gdbstub/test-sme.py -- test_sme --gdb_sme_tile_support > run-gdbstub-sysregs-sme.out warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Python Exception : That operation is not available on integers of more than 8 bytes. Error occurred in Python: That operation is not available on integers of more than 8 bytes. qemu-aarch64: QEMU: Terminated via GDBstub The gdb is: GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git > diff --git a/tests/tcg/aarch64/gdbstub/test-sme.py b/tests/tcg/aarch64/gdbstub/test-sme.py > new file mode 100644 > index 0000000000..c2b9d774ae > --- /dev/null > +++ b/tests/tcg/aarch64/gdbstub/test-sme.py > @@ -0,0 +1,119 @@ > +from __future__ import print_function Alex, do we still need this line in the gdbstub test cases? We can probably assume that the gdb's python is python 3 by now, I hope... > +# > +# Test the SME registers are visible and changeable via gdbstub > +# > +# This is launched via tests/guest-debug/run-test.py > +# All new files must have an SPDX line saying what the license is. You may also wish to add a Copyright line; that's up to you/your employer. > +if args.gdb_sme_tile_support: > + main(run_test_slices, expected_arch="aarch64") > +else: > + main(run_test, expected_arch="aarch64") > \ No newline at end of file Please add the trailing newline. thanks -- PMM