From nobody Sun Sep 20 12:42:39 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1784044311; cv=none; d=zohomail.com; s=zohoarc; b=FercAHKuMAbWv8tQlTEO1ZxWbE9RO3Ea069FTXyfiN4XQEB8NjWS/GCexGpDUBmjBbj8HkF5M549SLEAS/7G00Mcw77RK+GX7sfXmFH/8rac8WQpKlwkddChlupu3VjFBh5Qjb4OrVReqz0lljRqRo9YXtQlGEq7FsIQkBAqWT8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784044311; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JGykux9+eIJ7NwUJM9z+tLu1ERVJ12Ocf9EAomW4Xh8=; b=LSnN/gJDmlgPSZp+k9U+UY/kOvC1WHKUHmxkapk8zmrO2AatNEkyiUBtH1+TYMaRcStjbL0BmIX6bBrJXZpVr8I724q5q8Tw43Ocwirf7zK5XyDG3NyIBYGGBTACNqiYTT6fV/08CcO5B9MxgJrljq5GGko97sc2iGIzXyk0QgA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784044310866154.84079021265973; Tue, 14 Jul 2026 08:51:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjfQ9-00010Z-Qa; Tue, 14 Jul 2026 11:51:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjfQ7-00010F-VS for qemu-devel@nongnu.org; Tue, 14 Jul 2026 11:51:43 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjfQ5-000150-SS for qemu-devel@nongnu.org; Tue, 14 Jul 2026 11:51:43 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66EEcjEA824481 for ; Tue, 14 Jul 2026 15:51:41 GMT Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fdbr4b43s-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 14 Jul 2026 15:51:40 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-84a251c2e3eso1705794b3a.1 for ; Tue, 14 Jul 2026 08:51:40 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13b987fc629sm41343581c88.0.2026.07.14.08.51.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 08:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JGykux9+eIJ7NwUJM9z+tLu1ERVJ12Ocf9EAomW4Xh8=; b=M5VmGoITh6ZByGES FKb/k9hgbPYmDZGHfsNo1oNTsL9TQEc0X2uF4Ydk/Tx4hCdLgRxHF8AMZq8bglHH E/kLy1DI8n7O0fwN8Lse881WGfTakXTRlYHz48OMSoGKsq+gEUEZ4b3B9EHcvsia U7XeGE5WdctmDA31tqRWFgBdpjVDboDzXZQzaJMx3MOngHCOwB2cn7e+BsXHyOek gFgIhxIGnqai60wVjjxPwAkRuAJ582XZiPuuiUevFITLtuDHepJUaj4ZNWLGMi+8 +FlSPQqYwFTV90naQrLNUCKKEASHkha4LABhhzTp+q1Qh1PDRzyrNgcIuddlps/K pOlAKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784044300; x=1784649100; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=JGykux9+eIJ7NwUJM9z+tLu1ERVJ12Ocf9EAomW4Xh8=; b=VzOst14WN1U7u8nO5x5IOXCMNnerJ3UJZ2YyGfwAtfTFA18mJrImT3ukfUbfB73AmF x1r2OijJvFW9egScSEayddmTzzXSxyuXok/pQyNCsVNM2EXpJh/e+GXPNcpOkx29QcHv sL36GXHSqPq31acvcO29I9hqmkxtkCOFoelJ/7ls1HeOZQfwY8Npqurdue0cbZyxYuCA GQwFAQZ0tJyRpCwlHwCDb84Yujt7AC1BBpheh2VktEjI3RKD0K/bjEv4B3MJ8VEtC3XI qtA9Tpte5EXLpj0cspcAqk3iwUvz6Sq7RpG70L6HJZ6tusl7pupe/UkFDzmtV0G8bVZU Hb3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784044300; x=1784649100; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JGykux9+eIJ7NwUJM9z+tLu1ERVJ12Ocf9EAomW4Xh8=; b=LM+35XAyD7gBZNHpS72NExKfdvcg2hMoaxzDTUCPq+GhjpljtDCWvyBMHHvF4kDPfL YBIS/6j2wlNma3uzFj39hJ46I5SmYZdsl4Xf9unG+FhkBGxKPAqTHYULmw/4bae7qZav uALbAyehe21Kx2NDguIUTkXn52OYsEuIRgSxE10y3HiMgAYDjPYrjWgIyjpgmhNgdDTC NvFwywiradHSpeARjh69Jdcie/NtL1asEXDUs47RjFzs1l/mSGNgBkYbZWlOPeLvmixD WBgunc/QVi3x+FsuYl40CFmtIPeoPRh497KI+zKZhzP9StyX7fYztoBKLfhBHNtLdhls DK4w== X-Gm-Message-State: AOJu0Yw/LuQU+0IIKTJAUsiifhbfbFtlscSfMZDqXjbw4aP9EMkgTQP4 wMMzGaU5IYaWufqAeTyFcnbVijhYFUHQZ9R1dFsXIcbv0tpe1LEhrjCB316zU7k3UCQF7jo3qD/ w+Ywz2280WuHQ7HoQHa+Y7AbHSMBLAmNmXIEcPxisfa0+or4M/46nH0Z2H8rsd90uLQ== X-Gm-Gg: AfdE7clrZXHnQoztpqID7bPClpeZA8d47yegt0ptoBcbMGsAAlOvldEhV2gC5MfcPKH 00I4uyvvVJSp5zpdjg4E48sYl6yeW3cS4uP9gniIuv4nl1L71xr8WWBGkokRu3sFnecawPerT21 msJ+g5dUa1/KViSnaLp9NOstNwq/5j6jQ0H/zigQimXkLLEbRK9GGh+epWlBgZDXxquVAF8aecv 63CmLhO1vJdXGaEiNo/7CwVCyB/J3omYIiolX1j0dQxicEHP8EuE76XEHWGnns4n2jN5L46XjzA TicxZW+SId1ym1Y8fV4Mm8gdMFu0GCIQdvUmlOYr1viP53qjMqFJeuwn39xxXCeKKo7zu1rDNx0 FhB3fUWydagupKIKJcWmb+DhYWlmbLPDXau/rP+or5y1BH8zqe6CeNMAc1lo= X-Received: by 2002:a05:6a21:4516:b0:3ba:d7b0:fcac with SMTP id adf61e73a8af0-3c0f085a7fcmr21151103637.5.1784044299595; Tue, 14 Jul 2026 08:51:39 -0700 (PDT) X-Received: by 2002:a05:6a21:4516:b0:3ba:d7b0:fcac with SMTP id adf61e73a8af0-3c0f085a7fcmr21151066637.5.1784044298976; Tue, 14 Jul 2026 08:51:38 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: ltaylorsimpson@gmail.com, Laurent Vivier , Thomas Huth , Paolo Bonzini , matheus.bernardino@oss.qualcomm.com, Fabiano Rosas , Brian Cain , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , philmd@oss.qualcomm.com, pierrick.bouvier@oss.qualcomm.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 7/7] tests/functional/hexagon: add arch_tests functional test Date: Tue, 14 Jul 2026 08:51:26 -0700 Message-Id: <20260714155126.3509544-8-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260714155126.3509544-1-brian.cain@oss.qualcomm.com> References: <20260714155126.3509544-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: AeCTLTOCsR1DVKC9f8-CBF6uoSwPmOJm X-Proofpoint-ORIG-GUID: AeCTLTOCsR1DVKC9f8-CBF6uoSwPmOJm X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE0MDE2NCBTYWx0ZWRfX70FycKifgYjL i268eUV7AaiInHUy4EQ+LgNnixVy+deh9V7bMcUPz+2rJauwdSVSqR7OlzqNYdAIGKe5zPZefql kNTNTessnOfGw3pKrNJNMAEuI3D1ALRsM39l5+gTt93+hs/MaLz0So8gfBBvu4twndfRqJwia3I gVP6SzG/D4kdNOKWcdWqtCzo6fxgBErfdiYxjPtfTk2n8ab/FDrcdYTrk2FndNTPzwtmN3FilJg H8xyHxyLOS2HS+qr2mN4ErwCy/6cEkwnoiMVllTC7p5NjeiW+LKmTNYNVl4dLKfudLj2P7DjSfb DcwEAPjrOZhI0a5W3wstCpJKFdEZmfzQrwjPEislECIkSuNuM645OHQUWGb9qvCDVnsnnadzI71 HaIyA+8D3n1k1hrv4hx5LMVzDzNCIauCsFnhp3mOksXbuHQI/w4/zaZGjgJp0+6FNVo+BwPWvjj 3X3Fvhh5XtBF6MCrEiQ== X-Authority-Analysis: v=2.4 cv=F5hnsKhN c=1 sm=1 tr=0 ts=6a565b0c cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=5vFef2XoAAAA:20 a=EUspDBNiAAAA:8 a=2-CgB73GCJ25MrH1sBkA:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE0MDE2NCBTYWx0ZWRfX57NKRV2LDXlg F15OyTfNMrQM4ikplXCX2RjxFbXG2OXeDkVzin7oSS/Uh0mDhV3mBkPAmseJgE84FnSfmTp3PeA I46xD93VTAfQP7Qy4IPC3DaCDsP2KoQ= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-14_03,2026-07-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1015 adultscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607140164 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1784044313648158500 Add new test cases from hexagon-arch-tests to exercise exceptions, guest mode, interrupt steering, etc. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- MAINTAINERS | 1 + tests/functional/hexagon/meson.build | 5 ++ tests/functional/hexagon/test_arch_tests.py | 65 +++++++++++++++++++++ tests/functional/meson.build | 1 + 4 files changed, 72 insertions(+) create mode 100644 tests/functional/hexagon/meson.build create mode 100755 tests/functional/hexagon/test_arch_tests.py diff --git a/MAINTAINERS b/MAINTAINERS index 8201e487000..a9b134b323e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1361,6 +1361,7 @@ F: hw/hexagon/ F: include/hw/hexagon/ F: configs/devices/hexagon-softmmu/default.mak F: docs/system/hexagon/ +F: tests/functional/hexagon/ F: docs/devel/hexagon-sys.rst =20 LoongArch Machines diff --git a/tests/functional/hexagon/meson.build b/tests/functional/hexago= n/meson.build new file mode 100644 index 00000000000..2b5a1a8f264 --- /dev/null +++ b/tests/functional/hexagon/meson.build @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +tests_hexagon_system_thorough =3D [ + 'arch_tests', +] diff --git a/tests/functional/hexagon/test_arch_tests.py b/tests/functional= /hexagon/test_arch_tests.py new file mode 100755 index 00000000000..008822d5e5b --- /dev/null +++ b/tests/functional/hexagon/test_arch_tests.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python3 +# +# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +from qemu_test import QemuSystemTest, Asset +from qemu_test.cmd import wait_for_console_pattern + + +class ArchTestsUart(QemuSystemTest): + """ + Hexagon architecture verification tests + + These are bare-metal tests from hexagon-arch-tests that exercise + system functionality. + + Tests output results via UART. + """ + timeout =3D 60 + + ASSET_TARBALL =3D Asset( + "https://github.com/qualcomm/qemu-hexagon-testing/releases/" + "download/v0.2.5/arch_tests_uart.tar.gz", + "edb4f37b877a3a72a0e10920477458a43b40045d34398fee8cb763fefd342f4f", + ) + + def run_uart_test(self, test_name: str, + machine: str =3D "virt") -> None: + """ + Run an arch test binary and verify PASS via UART console output. + """ + self.set_machine(machine) + self.archive_extract(self.ASSET_TARBALL) + target_bin =3D os.path.join(self.workdir, + 'arch_tests_uart_package', + 'bin', test_name) + self.vm.set_console() + self.set_vm_arg("-display", "none") + self.set_vm_arg("-kernel", target_bin) + self.vm.launch() + wait_for_console_pattern(self, "PASS") + + def test_exceptions(self) -> None: + """Tests exception delivery for trap instructions, privilege + violations, and verifies SSR cause codes and ELR values. + """ + self.run_uart_test("test_exceptions") + + def test_guest_mode(self) -> None: + """Tests guest mode entry/exit via CCR configuration, verifying + GSR fields, GELR, and guest event vector table dispatch. + """ + self.run_uart_test("test_guest_mode") + + def test_int_steering(self) -> None: + """Tests interrupt steering via priority-based routing to + specific threads using STID priority and iassignw. + """ + self.run_uart_test("test_int_steering") + + +if __name__ =3D=3D "__main__": + QemuSystemTest.main() diff --git a/tests/functional/meson.build b/tests/functional/meson.build index c158197c4b7..c7362dd00ef 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -14,6 +14,7 @@ subdir('aarch64') subdir('alpha') subdir('arm') subdir('avr') +subdir('hexagon') subdir('hppa') subdir('i386') subdir('loongarch64') --=20 2.34.1