From nobody Sat Sep 26 20:50:57 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=1788461872; cv=none; d=zohomail.com; s=zohoarc; b=mx2fp3ThQDgJn3HnbCc9s5QONis0Rs0fTE6Z+C6dB4WR67yBDV3IiWD80nqrFszaPIIidGz3aAZ3o5icNrW1eBZbE4o6/qDUi+3TvkD/arTKFuiXfxuIDdpS3mKw6B6Y0kRaI0YUPEhEhrGI/hCHTuS8FaKoq1ZP04UR5EbRLTA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461872; 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=R/E8NuxeMThFG5rhE1lylHV+6HZ4sRuwvcXbY/Olf/Y=; b=dJYfZGe1joG7GQ+Uwo3Sj7gxx8Ji1sINIk2ccKQd4fIruF9bZ/EtQNk/easTT71p6qq3XvRH8YGOgQRm8ex4hO2NUs9+MhYcs1O+pMSL44SXNh8XITj7NAs+DuoTL1MzBjnxSfe+jBZlY1MpekQptbZSmseu2x4BM25WaSI0zn0= 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 1788461872637534.7379716492153; Thu, 3 Sep 2026 11:57:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cbx-0000Ws-ST; Thu, 03 Sep 2026 14:56:33 -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 1x2Cbu-0000WN-Jn for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:30 -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 1x2Cbs-0000WO-HB for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:30 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G3VB11430689 for ; Thu, 3 Sep 2026 18:56:27 GMT Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf1j4kkup-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:27 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-c89704da8c7so299403a12.0 for ; Thu, 03 Sep 2026 11:56:27 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:24 -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= R/E8NuxeMThFG5rhE1lylHV+6HZ4sRuwvcXbY/Olf/Y=; b=GTBqMGxw5fEevG6Z mInxNEPt3VKuZPU3OBk/jQGT77NKcMljQHpok33JMMT8mYUJ67AMM1L7YHUQHxIC E7zFaztvwF8Kbn/HTQvYV37vultgYMhuiWXBdb5CK9baX3wp2XCMh0vYFEUwCFXS h6M7uVu63y/fmOpJX7xX+tGCHZOn3cMnjwVmKBujd71fQo/kZZ8wAze4l8WetZ6A WHcfVuO8za04W3h/2yFIoc1CGbDlZ0nJe+V/s5MhmJgNgpLVmxKzZjHuyzfApVXg /t4tId9Y/7CyTYSc/2t0sjsSMVugmzxTR8QuSKGpV1iss4bDZU8bwzwuX0XKHUXT SR59Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461786; x=1789066586; 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=R/E8NuxeMThFG5rhE1lylHV+6HZ4sRuwvcXbY/Olf/Y=; b=LuxflqNjel9LITIwUD6HffgC0+5Y6ZA2AT3TsuYLuMKwCl2AgEZONR3zy79D9MC7TX 5K5oLljxhXIAv+ZlrvIVdRFYLsGhUfPVcvjyttcJJkCJyhgZeCBrt1LwAqx+u1iEmpZl 7NpNXTJTl/FnxT8ptmAt1pczCPakQZ28WR7ba/N+Z7HJJ6rbpOPcJA6zLUixtat+qD9j yy0mTUCQyWp3koZlAQ6ae5yLTVdkb3x036gAnE2GvlECvDxlEloIUF9R24mTfzJqFZcI WBpSSXYGWSKhrsWr7MroJO96/zyqn67JU42s/TNnyt0rJpgbiu4E2pJ8mWyKHNWzSspQ IGmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461786; x=1789066586; 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=R/E8NuxeMThFG5rhE1lylHV+6HZ4sRuwvcXbY/Olf/Y=; b=R/NSx8X/w4qzlQXhHg06ZISMHK4NXCLNDfl9hwK4zvdK4NO6eY0phhzr/NcFVjoMS1 d2o7lvUQt5r+z3QIU5rAGp461xbE4hJELBDIVF/iy8hyNGY+/rz28kBHHGeQjJGFPk5u l+2/KGRwzXM+xBUan8DBIcjia+EX05nw55jk8O2TsjCzT0YtEHhaNd+T6ujhitGF9OtP KwfbAse2SQXNzQOCXnXz+ymOs1ji0mw8l66dURiUtv+Z4f+LFA2eQdLxK7OZwOKhl3pe dQrNZOm0crZMVruXz7GrNA4uve39b0KcHE8ConbcebW/RtRhHbIH/fjDXF8iDBstEpYu WhpQ== X-Gm-Message-State: AFuF++mmowTq/rsyF9gLrKy7Ip43esyT7zP+dJ5GohLe1APuZHltYL0w vjoTBdhh9LfnIBaiddNPwyEKX/hPBmOLodqeGvTm/VWu8Nm4z1mBnRfwYV1Erz5bSpfBW6Txwg3 RBxyj/qVVW8wI0obnBuzc8hTi+rCGbRF/nZ3gb/8ZVLjsPgxGf/SaBI5Azx7h7rgiYg== X-Gm-Gg: AYBFou3bKEDXCi8rgMeC/LAn9m0U4bU9bzPxMbiRz/rW4SmuJzcvHm6FX6HjzUzJ/GP 17MBCQe16MOQPC1fGBavfCv2kqdjzc+HnanfS1Rwn6Vz/0iFBkZhXMwo4Tt8cxd+MXWn5g8bOuD scmvku9mMyaN6FhbpAEHF78LXXvgSuY/Mn/stmAf/Mivv4qvdUUdxkve6GI9LzoFuUKbDLwYpJ/ LDKMQGsCBZqe19EzmYkhZB3OOIVzNt0OS5B2iks4gV0VctxekVJsLm/UbnZfonJ2/Ama9mjvcMU fQ3J3lfsYTf89fo8HvYNzxNeM6zTlL3NhJfYOx5TaiMJsMV5WRgYRA4diAbnCQd4hDAShgqbix/ lyn/RhvmDXhdPi4wnlorhe7pujJsvoIxM/rh/UY4cmZ2g+8/C X-Received: by 2002:a17:90b:224c:b0:398:9bd4:d15 with SMTP id 98e67ed59e1d1-39b26245d08mr812294a91.20.1788461786141; Thu, 03 Sep 2026 11:56:26 -0700 (PDT) X-Received: by 2002:a17:90b:224c:b0:398:9bd4:d15 with SMTP id 98e67ed59e1d1-39b26245d08mr812228a91.20.1788461785688; Thu, 03 Sep 2026 11:56:25 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 1/8] hw/hexagon: register the V68N_1024 machine Date: Thu, 3 Sep 2026 11:56:15 -0700 Message-Id: <20260903185622.3234171-2-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=dufrzVg4 c=1 sm=1 tr=0 ts=6a99c2db cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=LGeOnwBDO1WtItRKohQA:9 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-GUID: Mkyofw-PyKNlqXQZFg4TcGl7cwlyGFlO X-Proofpoint-ORIG-GUID: Mkyofw-PyKNlqXQZFg4TcGl7cwlyGFlO X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfXyYGPQs7qecEm 0FHE4EvlfLB0CWyI/wvwKXHaeDNK96fzDuWj2k3fNyAOEkEkUvE1yTn4SGfCoEGlCXCJqLbR+F1 qqdSYUQg2WbBjhhs3dPZ81ZKBRAXCcg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX0zcYGYrOu7nW A5bj7qhjNww03//P9l9QtI1RehXheyIh2hxZYaevzZjbQFReNPh/AyPIIIrTwlQAvEqm7EvVs+P fzjMgND4kAeTglN4MRBKQUeXH+Vov7u36LaBLCIrmFEnI0Y+SXB5XzkVaFJPiDsknRuPP7T5hyP 5duFA9snjho+ikWWDOTLMAZZWxbcwjnk0Vp+Q1OSgrMP/jo+FAsVufsJIdgopGhGpiNc38W9xvn fHxzruQMqc3m1nXre58YBl7h4GdFxjoEHGCKa37VnxGXfVfASDoqzvgDUpQyQZT3jhpCNw/KLoJ 4IX6xYEBRMmJEdcwXVH3D/dwWkJ9rY/+uWabBpve/zTddP1KQ+2w5Bud4fFJjblAAq9YQYoneKV d/HenZ6BKAy6TtgGrEjKTQ3HxchR2BLf0GmhLU1R0rVa6p2tl2MUPVjgqZ2epz+IAyfOBP+s3o4 /0fS0CNDxq9y7FgnMhQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 malwarescore=0 bulkscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461873569158500 This DSP definition file was present but not referenced. Also: add a 'sim' alias for this machine to indicate a recent machine with memory-map resembling that used by 'hexagon-sim'. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- hw/hexagon/hexagon_dsp.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hw/hexagon/hexagon_dsp.c b/hw/hexagon/hexagon_dsp.c index 5b2b6e312b6..ff110234b09 100644 --- a/hw/hexagon/hexagon_dsp.c +++ b/hw/hexagon/hexagon_dsp.c @@ -29,6 +29,7 @@ #include "semihosting/semihost.h" =20 #include "machine_cfg_v66g_1024.h.inc" +#include "machine_cfg_v68n_1024.h.inc" =20 #define TYPE_HEXAGON_DSP_MACHINE "hexagon-dsp-machine" OBJECT_DECLARE_SIMPLE_TYPE(HexagonDspMachineState, HEXAGON_DSP_MACHINE) @@ -181,6 +182,23 @@ static void v66g_1024_init(ObjectClass *oc, const void= *data) mc->default_cpus =3D 4; } =20 +static void v68n_1024_config_init(MachineState *machine) +{ + hexagon_common_init(machine, v68_rev, &v68n_1024); +} + +static void v68n_1024_init(ObjectClass *oc, const void *data) +{ + MachineClass *mc =3D MACHINE_CLASS(oc); + + mc->desc =3D "Hexagon V68N_1024"; + mc->alias =3D "sim"; + mc->init =3D v68n_1024_config_init; + init_mc(mc); + mc->default_cpu_type =3D TYPE_HEXAGON_CPU_V68; + mc->default_cpus =3D 6; +} + static const TypeInfo hexagon_machine_types[] =3D { { .name =3D TYPE_HEXAGON_COMMON_MACHINE, @@ -199,6 +217,11 @@ static const TypeInfo hexagon_machine_types[] =3D { .parent =3D TYPE_HEXAGON_DSP_MACHINE, .class_init =3D v66g_1024_init, }, + { + .name =3D MACHINE_TYPE_NAME("V68N_1024"), + .parent =3D TYPE_HEXAGON_DSP_MACHINE, + .class_init =3D v68n_1024_init, + }, }; =20 DEFINE_TYPES(hexagon_machine_types) --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461840; cv=none; d=zohomail.com; s=zohoarc; b=ZJOF/L7IfwMePLriDx10W2nqhrupGdJ1jBtNf6V1L2H+wu4M1m/BdjjenHfTLRWeXDbDY+s4amww3U1MZmDLNGxdjO3SZ6mXRovUjzcw4Wq9jU9aau1dCciFtDdurz8pL/HClPZJlyVNOCbAnY8UdTb1yXEJEv7vwYvt1GBtP7M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461840; 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=HOSm9bsLEij8m7lAxCnEztwmaccyQJ0a8WhznKJxC7A=; b=CB3UX+6ZVNIILvSiBMcdBBrnJWC0yL36bqmV6+GtA6GrMfeHQ49y82lYXQ8IPsrBRK3L9FVACnQNSrjPzLAC/uIIjCjpUfPmnasV04z60JchsbTnFNDS4wfKvABrMpedghea1DIj6vIc3MqqgMME4MrrbJ/V0QSFWanP0MHmh+g= 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 1788461840292521.7275213845131; Thu, 3 Sep 2026 11:57:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cby-0000X1-LG; Thu, 03 Sep 2026 14:56:34 -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 1x2Cbv-0000Wi-RB for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:32 -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 1x2Cbu-0000Wl-Bf for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:31 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G3eY11209693 for ; Thu, 3 Sep 2026 18:56:28 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf6p72edg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:28 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-398e1f7d1a5so227217a91.0 for ; Thu, 03 Sep 2026 11:56:28 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:26 -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= HOSm9bsLEij8m7lAxCnEztwmaccyQJ0a8WhznKJxC7A=; b=CAQavbdP5q+tvaaB z8hH5+gG+6dLe9dy0loozUH25d6qqR8pA9nTADIP/9xOrFu6Y3syS83q+jC78tC7 oeHkyLm0otmuuhD4aWhW/8oYGof8Q6Pv9S6mfBX2k7lc/H4TxQqLsP65Yaa8wOPy C9ea6AIRMFTrNfMFOclNMTfnR9yVZesnWgo/3R3J6g4YdqW9NugS1HNj/nroh91E 5SoT+bk37SAYy32rH6/LFfBNwe/7g0rqONv6eAotdOfgmmtbf1eUZ0x0KRB5/InY E8kZTkyQS113hfgVvNkwniDk9oHIviseD4qYmgudLeyy/K7vui+3LiCAxuHpu0iR 0o4LHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461787; x=1789066587; 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=HOSm9bsLEij8m7lAxCnEztwmaccyQJ0a8WhznKJxC7A=; b=XJSOXOqXQGRs3DEq6BKqpbCGu1Uk63QINnanHqC2iSe9Pw1xtyhtipF2LAoX4TI3Pj 840F++MH+I8kfurqV1zwO2w+VI1DM67HKIsR78sGKegq0WoOzM6yZjXA9TvY2ajGFO+9 GAI6NmNnCmTZ0D/hEBfF25/6Qpz28Od9ZNydaj9iDBR5cI106ws/c+bO4P/i3vpF0dEj ZBB0amlyuGHFkH103tVZ67+UxYLCyLTfXVoQHgQPSW8T80k77sqpES8LZ3ulY9IJiF1o TVT0kGJEXn1+fOluDYq+4FJbGNXH05cck++sIXK2JIg/ncesUFAZ5in7fjQeYWANA4yV 4rCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461787; x=1789066587; 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=HOSm9bsLEij8m7lAxCnEztwmaccyQJ0a8WhznKJxC7A=; b=J1EzrlUAi2Op+fmmseiG3FC7fwdHKWOQ9o41yT2XfZU/nL5YJMln4Gso9APFra1u6F Gq+dDL+K7RvalOigQtI9nKlKEzyFLN142Daxmc1MavLGcGmRXB4YYMzfJ9cuJMtGvlhW dVjxIgPU7cBDSPRfPAJMEeX+8B98sF9rpDbvJXv8rxOtylQZGOpDSP8cGh+ErLkYvfvF T6pvt7dapBAuraslHlBqtWSkjnncOY6TJkzNmah44ArRuvQhVNaUUA/vjfmFatZSDHF4 2R6JSoHJXa7dJ8BuCXWBdauXHmJJdiZ7jq5XHV/+qfeUiWtMH8XvQKg8AHnVwgvScBR3 hQiQ== X-Gm-Message-State: AFuF++kMD35cb3F/Xh0SPj+dyY8LP+QkMs7ldn7Izhqjjf5F2A5R6552 891e/tZKJOoK3Daw78g1UH7j2p+Bw8i6ryrWv3TS4lJMt2z3mQ0EzEDz2a+6OdBq1vfBBTv91Iq +4G1mydRZofLFe/1D0zalH6X2AeCRgPIX0/im5Jgb7DTaR999rH1SYbsJ0s4yuk4i6w== X-Gm-Gg: AYBFou0U1Ge3/vpBfV8SBvXtwKVVcVTM0nrNY7VutYBF98HNvLXhSarr/oL7Tt7IQAy EZUz8dQ+S/FCaWubZj6Ibt9rZS4oKR9HvOGIftZCrIxNfq1ww29opmWfNibyi+w896gVPemitdE 3fJfKyAEURB9dp5j5NOVOsrFOb3UMggRM8vG/kCIUMGxYU0yScQCTiRl0M1tGEnklKUz4xPWOai 3MSp1zJmz3Dua1OiUrzMZ6CLV5UmDgpS+8aBmEf2pLFN0KDedI7Kd8lNcJ3uLVyD00vGtsQih5W WTW2rnULYcPiCv6+zyFRq6zGAvi0J3Fo1NdUspoY5Ck9cgf4Rx2wzpKnWq3DgYvleOBvCLEr9Iq LvRaiJjiNykmOGUs+KMP3mHhsla4wQKSxT69TLpHixVqP8jjo X-Received: by 2002:a17:90b:2687:b0:398:9c0c:7c71 with SMTP id 98e67ed59e1d1-39b26277b88mr783761a91.24.1788461787321; Thu, 03 Sep 2026 11:56:27 -0700 (PDT) X-Received: by 2002:a17:90b:2687:b0:398:9c0c:7c71 with SMTP id 98e67ed59e1d1-39b26277b88mr783694a91.24.1788461786824; Thu, 03 Sep 2026 11:56:26 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 2/8] target/hexagon: read BADVA as an alias of BADVA0/1 Date: Thu, 3 Sep 2026 11:56:16 -0700 Message-Id: <20260903185622.3234171-3-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-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: 5CyGiRlEwNJWdNY0PCWeKSnLkscvVDuJ X-Proofpoint-ORIG-GUID: 5CyGiRlEwNJWdNY0PCWeKSnLkscvVDuJ X-Authority-Analysis: v=2.4 cv=OZyoyBTY c=1 sm=1 tr=0 ts=6a99c2dc cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=feXoTaF-XZ6kQvkB_U8A:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX/QUNB3gbY4Yq fjXoIxogv9dJTHGPj0tiFokhy/92giHaPVPVBRvjgdI+YDabk90++cQRdDq2kn9JxSnRc5y3rUK QRJLSrZ+rz16ygVaJhLGXGu+Ymm9kz4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX9d/I6WQGci6D KCUOXiKfKEmxAwkaWnimOLSpC1jo10Xz+k0bhOd2/lDLGR1giPYTplHVT3rzx4oTwfQeboSXw35 z5rjTo2YnVv5CaWtsC8m0Mjg378vdeJQx7hieO5kA5ob4O40EuoPjtAC7qV5PUFHAgZ0PGQJeLX WsHav7ftIwLk5CkqABy92CWTrnbGkrKOMS2Y+cIKrprZvMprUWjkMQbdh69Mw6myevRxr82cOAU O4Pebued5jl4m7+Ee21H3cH6fHhRzP/0uZF5ojFxbLZ3A+QeGivQg/sfDubPPvwMe8ip/r+a3DA SQGnU9iFGnEBwOBDPxMeLO4X5jbdD8mZrnhvq0xgS4p6QsXFKDnvEfuHGPSezG/wE8HxE3685uT q+M/dSI1iNBiEYF/KwtMTMRlINonItn/2BQ9+/UKmqtXBcNm62uU2qDhC9EEUKt6qHyYh3J8Pm4 AmyO19PNUkdtst8giMA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 impostorscore=0 clxscore=1015 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461842216158500 BADVA is sort of a virtual register: it reads back as either BADVA0 or BADVA1, selected by SSR[BVS]. sreg_read() instead returned the separate copy that set_badva_regs() stores in t_sreg[HEX_SREG_BADVA]. Guest code that writes BADVA0/BADVA1 directly was reading back a stale BADV= A. Uncovered by the h2 hypervisor kernel/mem/tlbmiss test. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- target/hexagon/op_helper.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 71555a7ba36..5d64c5523bb 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -1889,6 +1889,13 @@ static inline QEMU_ALWAYS_INLINE uint32_t sreg_read(= CPUHexagonState *env, HexagonCPU *cpu; =20 g_assert(bql_locked()); + if (reg =3D=3D HEX_SREG_BADVA) { + uint32_t ssr =3D env->t_sreg[HEX_SREG_SSR]; + if (GET_SSR_FIELD(SSR_BVS, ssr)) { + return env->t_sreg[HEX_SREG_BADVA1]; + } + return env->t_sreg[HEX_SREG_BADVA0]; + } if (reg < HEX_SREG_GLB_START) { return env->t_sreg[reg]; } --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461858; cv=none; d=zohomail.com; s=zohoarc; b=egAKTW6Gb5+slp/42EoUnlr32QuI9xd6gWeTvYtB5Iu+mUiNt9+45GIXVnrH4LkRGvWnlcO0pknlY4weHf7WvI1b/o6vlmBT5pOj9Gv52e0njfEX2idZocYFJmbFczSKpOpm+GHJYgLRP2C7Xp1LcVw2WjNSGFYsELpebPf9rds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461858; 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=c9Y33S8+DlTZLFkzQFnhyhQh/oRpjTzJe5j/x1P4Fbc=; b=HbR2+0JxynPuntpgU7aE5fcHmhXxQ7vf0b5iTo+QccZwl3XY+BzwYxi8VumZ9wslZ8Cg5Cp/13Yk26Wp65IX5tfZz8OckCUL3KXGF9YAaiSKkW9Fn6qqFkKGCFflh2O0PyKJeO+LY0CeRGd7qAgwdzYU5hlVNOkZEJeCdpMZquY= 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 178846185850990.69659901660748; Thu, 3 Sep 2026 11:57:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cc1-0000Y6-O5; Thu, 03 Sep 2026 14:56:37 -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 1x2Cbx-0000Wr-9m for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:33 -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 1x2Cbv-0000XV-Pf for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:33 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G3Xoh1430734 for ; Thu, 3 Sep 2026 18:56:31 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf1j4kkux-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:30 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-38ecc48b3c2so198746a91.1 for ; Thu, 03 Sep 2026 11:56:30 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:27 -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= c9Y33S8+DlTZLFkzQFnhyhQh/oRpjTzJe5j/x1P4Fbc=; b=R1hWC1dqiVms/I3w mzKQbqyfw0QDvTYNnCJzxCtqmW1IIbrTLXVAgc8CG9K9WZd4xK6DqrqIG6NQ0sES 3pvGGO6Ri8r9x4J7JS47iyl5yrspMJ7eQjljRRjdjrE+C8mIk2Hc7Dy4aDDOUlVi yMErYe3nBAtx+gyAhUjF+xFD1whXvzgn1kXck6X662JK+jaSlmnQZ2DAOSJfz/oE E66qIaRtWm8JK3U0jA8TQmLRzLxM87e1G1jJh2snlC3FmYlMeSiZaZoOLfI2zbP4 FrGnplL3brTqLvgLV0eDipDZEFYbE219CVkMT1/pFRDCEjiajabwPhCH/lrexGww ViDJpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461790; x=1789066590; 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=c9Y33S8+DlTZLFkzQFnhyhQh/oRpjTzJe5j/x1P4Fbc=; b=hlKK4u1RwSVyqYn3oL5Fxh+GO3Ow+s1iT63wc/JiT2yP3GJMKMOzaw2WOPXLqVoise JK+ug63UdxsfcYPdwxoqN0JNFgYkZtBlbEkMlbyO/sqXdvd1vrW3wucZsxX6yQaY1PtT IZNP3vXtSF1iushi5lByiHWvwUElakGunIoh6RxnxlaL5kTuh34+e58FMOYdOvUyOFDU qRqN46A8mQTnAq3lexW4aS0XAPrcKuNZE4Zz4KjeFOy/4tcTu55Is6waj2meGglenAY+ va0GbtQ+awgwyScQ95+nNQqnFcNxgAqCXGteGHcEayjmwwsHKKrGyha3+HpVFj8si71+ M69w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461790; x=1789066590; 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=c9Y33S8+DlTZLFkzQFnhyhQh/oRpjTzJe5j/x1P4Fbc=; b=VC2Tp+raFyl4niM9k/ntIdOAeEHUdTXHnKmr1yXOmkaJl4UQ0P/BnxsKMHmfzg2f1j CIipLDwmQja67cZo1A16MqhipqQugCpN4wz9BNFNoJAg1sFe02zkXaFlrUZrABVHyx0q MjGOTSYkFDwcQ93MZo1UU1Tfk9zlD5DhlCbgvNR0qn7gJxl9U5/SphbYn6raSf4UpcT8 8zM3cDrz/06KMfiUjtP/JOKAasnehV73XcRUaCXwWCjNsQ6mSB9Vlh1MyJs2VdcrYfnz PmySBW+x6OCD1i4yqlWmjq7yNEXMPBqV/+fUwzaTIKdOezGvDTKczeZZvkCK5doOxdYJ qkog== X-Gm-Message-State: AFuF++mK73UWki085XGdSAHHXY57ZEpSV/ok7pS36n19gb89JH9I2XfF w0FQ4JXFdHJWzSaywnhdZG4U8qdrM6c14yihlWXCPT3hj5Fd+2pEMddTV2ZKHGKGdtm6dUrXhiR fVZ8mmeWMS54gwK7qf8CVSkUj//2tqE1vaoNp7iouMuSxPmGDcxgQF7dfkso5v4y3NA== X-Gm-Gg: AYBFou1sG1ph+1TTNRIUdJFMXbrYst0QMl8/B+vUg9lFTtpuxuHhG/qPiKB5xaUo2+0 D9fsoUDEpWmUNQv7Ic1pZGRw5oFBKVtTZLAOsQ147T0WFTIvI0AB5QJVBZdBW9sr0rTpy7v7Xi5 keFW9ZFOwsSrcPhbqgYugfCXsA9ESx0g67OB9LhTiukNggYC+fdlCXupAM2CO6f1I111PgJETTA xpjIlHvE5lAm4FI9Fr8WduOEGnyrMYYNjqIjURbpFVMFttfeMYOaKMZbnhkkgG8wfMqBoLBp3zw G3w+L2rhePVz/YHZdAwbHUwuXIQDUyLLIT9K+FOkoWGqnDP0HuPuf4FNzx3J45V7TZioelQGPqU gcsANK9B7nwtKKnlNqmFiIMbjV1Eayc7+hv8nm9wRWj/y4klR X-Received: by 2002:a17:90b:2f87:b0:38e:9045:bac0 with SMTP id 98e67ed59e1d1-39b260fe42amr918261a91.5.1788461789777; Thu, 03 Sep 2026 11:56:29 -0700 (PDT) X-Received: by 2002:a17:90b:2f87:b0:38e:9045:bac0 with SMTP id 98e67ed59e1d1-39b260fe42amr918200a91.5.1788461789283; Thu, 03 Sep 2026 11:56:29 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 3/8] target/hexagon: kick vCPU when re-asserting interrupts Date: Thu, 3 Sep 2026 11:56:17 -0700 Message-Id: <20260903185622.3234171-4-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=dufrzVg4 c=1 sm=1 tr=0 ts=6a99c2de cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=_cPWo3-z87wpK2aiiYgA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: upLuo6hPRcahTSdwgZBHj4danNmNvgOQ X-Proofpoint-ORIG-GUID: upLuo6hPRcahTSdwgZBHj4danNmNvgOQ X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX/I74Gcwp73zr 6foiEKfCXe1Jth7goflRgYrRJl76t87zjLQHD+ObuhOtB6IV6YOjywIbLWywhKZLGIacgLRl7Op NOc8cQKPNew9mF/6Vruy0q9DMtepQoY= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX2Kfobxq2MRCo +MYli5iKfpMPn8FA8KCJIFAiyPxrGbDwbGsPXPVb9yYf8PWnj9M+jWzPHWVTiG5u3jPEakwEgeG 1uJdQQTQbHeU+X1STpN/5gBq7pPexYBZC1VEX/qTtFw1gVCAlG1dBY4mQSwB6A9sHvlE4+K/itG 5jWgMjBTA/FugkKK8N64vmJuUA5BL6j+eUewG3DdBOB7Sn0QT49m60Eq1OcU37XrjwMRAYlEAdS ZMbYL59HZ9qjdF/mZvDORtlPhjx7BR0gmPk92HPUgDtzd3oJdc91rATQpvoUuepV17pbXpt6zTH ASVwlOk27k3v0xmo7GmKIiX7Vo2QBvEMHGOXk/pj/PDTmuf6WTF0BRwGyCo5Ll4FHhuEk1p4903 xbom2Pu7bozYDheEW9zC86kqC/3/Cj7FO+OepkFRpiDbiD+EONEhbGZmo7bjXv4cCu/koeTLVj8 OwmvKjyoGph04bixL0Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 malwarescore=0 bulkscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461859519158500 hex_interrupt_update() used cpu_resume() to make a halted vCPU notice a newly pending interrupt. cpu_resume() is meant for a vCPU stopped by the vm-state machinery: besides kicking the thread it clears cpu->stop and cpu->stopped, and resets exception_index to -1. Clearing the stop flags can undo a pause requested via the monitor or by migration, and resetting exception_index discards an exception the vCPU had already latched. Only the kick is wanted here, so call qemu_cpu_kick() directly. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- target/hexagon/hex_interrupts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hexagon/hex_interrupts.c b/target/hexagon/hex_interrupt= s.c index 7dde1294b2e..2b2834af95f 100644 --- a/target/hexagon/hex_interrupts.c +++ b/target/hexagon/hex_interrupts.c @@ -441,7 +441,7 @@ void hex_interrupt_update(CPUHexagonState *env) const int exe_mode =3D get_exe_mode(hex_env); if (exe_mode !=3D HEX_EXE_MODE_OFF) { cpu_interrupt(cs, CPU_INTERRUPT_SWI); - cpu_resume(cs); + qemu_cpu_kick(cs); } } } --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461868; cv=none; d=zohomail.com; s=zohoarc; b=a9TnVRGaTtppIJmvzhPA4XS7myhNLEwmkPm/dSGsmCHaQWYE6Gh7DoO7RuOjHKNmTrReR8AXzr4PwSUl6FHy3vBWTDbd+DktiWZ00hI0BGo1NBrNyu3Urex9A/aJB112rYXnI8WNU0zJSpyaJV2Z7MmGqilOc6isFFdZz3ptp4Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461868; 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=Y/MYSunTi5mUcm/QhNE4eke7yzRevkd52uGsuUDqf3s=; b=ZDF0mIP1sxNv4t6PwpK0NOvcDd3FKhNTaEDHUZhY2ja6xVcoOcg+VKetEIUB1f6SgY7nT5jGH4+xNRMDKb2NVSv59vMX7JUKMrWEIDJgc1XRSELaQqEwQ5GTUbeaYiRbEVQaZHOiWjvhdEllmlds6IN0sjvQ34cGNNy66eMoUqA= 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 1788461868421881.8304636409198; Thu, 3 Sep 2026 11:57:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cc2-0000YN-P3; Thu, 03 Sep 2026 14:56:38 -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 1x2Cc1-0000Xr-3T for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:37 -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 1x2Cbx-0000Xq-54 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:35 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G3H98927995 for ; Thu, 3 Sep 2026 18:56:32 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf6tx2c4d-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:32 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-39af92138f9so234143a91.0 for ; Thu, 03 Sep 2026 11:56:32 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= qcppdkim1; bh=Y/MYSunTi5mUcm/QhNE4eke7yzRevkd52uGsuUDqf3s=; b=I3 VnJ2ajxisP3V9PJqOFEbFc9so8F6B/kCTsT4bqVIRWUvh1dwsN/Ub1PD7er/kOCb tz9rfmaeTbj/B5APsG0sES/u1uOJzIeUFgrKKo59xD+vkfQWGRWONMcDyy7teFp7 3fuLPcjraRyRcI+0kzf0zWfyNjPg0XvBhr0NKaKzMq2YM+JCErr2DTe318qfC3xJ U0j0Fnsg1jmckPwI6RyFEoignmuPgkpa+szKVfOq12XKpRtG0Ls8Ak+uF4t8WY30 Rl03/4AcGWxDAARSQjRp+19t7zl4aCMdQYdrB+zFSOIXScpxc41ve53KVTqNbUXw Jlocpn4IMS8qq4NV34OA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461791; x=1789066591; darn=nongnu.org; h=content-transfer-encoding:content-type: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=Y/MYSunTi5mUcm/QhNE4eke7yzRevkd52uGsuUDqf3s=; b=GWG1oP00mMXAiaEQcuA7DtZOJ/ssD42vWoTif/9mtbi47pFUjvYuGoy86eJbyyYDS+ zK+jLCfVmRXHvxRtbXP+vxzLQGgeQLfGtWVAzVv9P8LUzqxwNDb++V6/ATP7yLoxXsJi VwufVOR33HQIQwSabQyeK/4Uralf9eLuqrq61Z2EPfbslV0qiinrNXfS5X4VUAGHQPMC Pmu3ty/iwRfOimnnTy7+j1zOxmK5R283OtixSxu1DceqiZnJLbAej2LfcevwGtH4GF6Y iQcGW1f6bjYlE7CQ8RtGMVnHwt8Sl8iI7ZCUxlGDpffa168QjyKGdPf5SLZnaEkf6MRZ 2NNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461791; x=1789066591; h=content-transfer-encoding:content-type: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=Y/MYSunTi5mUcm/QhNE4eke7yzRevkd52uGsuUDqf3s=; b=qblKMqosWEqcZVO6RXIVOeFj7ameVfYg10PMBoftCi0Utm9XKPhrXr+iLX6Vg2X8l5 kLax9rn/Y0XPWaCQtC8z/nNEoh63ANOBAR02OMyDE5xYMx2yfONLrih1nT4ujR1Ff6Rc sMLzzuJ81T6sBAFFXu/AIwFkDe/L7VEmOhkshvNYCv+Tea3CD2lW/tIQaerrUV7/0i9j ZX/P5cMaUNFQ9QDtFk8YE6HNh4jYUMatkgNP9fIbXfbkHNk6b6edpmIp+ksBJCzeCOUj 3lUD1aZ8uwPedl9MPYAs1xuP8Mg+KeSRL6OfrvOGclUOdzmRcOXDMd3JZAME3zWHJ0YB Xg+g== X-Gm-Message-State: AFuF++lfDQLwkL/G/TfteAOJORmCs1XkD9mLdtzc+h/w1ynjU7E6m5NN 7A1OqJ9Bfqal3dX4YWGwjm9jQfkiJYe9jymWtVUe8BJYtFekw7CTDech56r6z3jB6JnqGiMMePa L6QrTkBZtUHDQgWKaj6ehHWFHxhWnJ0zSK8+l4WRja8ABMUl4/yVMUTrka11iHk+udw== X-Gm-Gg: AYBFou0Ga3gdwQ9pZfmr60zg1js0LlH1tc3jgmF4i3RtpZ2YxYR+r3TWJYEslYroHFd r/IoMhcOL+XzjlC2+QLQI7zUoRYDCiktjO9GIYBdvHe/7S+sYTpGo1lvh/2nX5/wUkHkShb8ajT hh8Qb386JbPhSJw0u+KXCb5DO94v2fS8RbrvCt3Ooz7fV6qz558gj07aDyHbiNtmEdkDVaY+RKY owM3XgNSLC8hNACeZDQX08Ovh5Q0u/1yOeNyUlrd7E+BSfK9DKfA0XyM/RNiuh9Wqvea4YPpjsC NPpEesDunmPRQ44IsXJ9jLy3QHaAKwU7THgpnCUqFA8iSGAvY7J313dzACFLxKgIC/RlWEgZYeJ 36SR4vGVZ2fB8+/Xq1ql1Vb5wPKNVsoZoXW64VeVFakWbwldr X-Received: by 2002:a17:90b:538c:b0:398:9beb:a2b4 with SMTP id 98e67ed59e1d1-39b087992ddmr9142959a91.22.1788461791116; Thu, 03 Sep 2026 11:56:31 -0700 (PDT) X-Received: by 2002:a17:90b:538c:b0:398:9beb:a2b4 with SMTP id 98e67ed59e1d1-39b087992ddmr9142923a91.22.1788461790656; Thu, 03 Sep 2026 11:56:30 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 4/8] hw/intc: name the L2VIC edge trigger check Date: Thu, 3 Sep 2026 11:56:18 -0700 Message-Id: <20260903185622.3234171-5-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: o-6uwNaIZ22JC5cB5Dy2yOd4Kw8UkibK X-Authority-Analysis: v=2.4 cv=TqjWQjXh c=1 sm=1 tr=0 ts=6a99c2e0 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=-YUP4bkCidU9H1Stq4YA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-ORIG-GUID: o-6uwNaIZ22JC5cB5Dy2yOd4Kw8UkibK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfXwcNALiHi2GYB sYEKLQ6X4sR5ufUD1Bigp/G80D4TAnvKolPNyim/VHEArzhYdxTS9kT8GsYQkiNRM2FCnS6a+9P aG/tu3VQAbouHJd0ugaISXc7bHduWmxLskxyPvMYIvr51LyPsLDhKcRshU5+4MEXYIx9Sua+tI9 ZMAQXeq03pj1YuEuvwx0KYUiycKqKRHkgawPALDJ7FnJqSZiiq3aD3wGfvdXH55vz/6yc6VLXe/ /2YLVTHRaZ+UwkaOPFuwhX0Souzo4Gk4K7ShE8EkqCo3Gfg7qXkNfYdYgSeJMNUOK2w5M5R9x3B gsg8GeDZ7rs1+oWLfrp78k7VpyD/Ay5cmgnj6LrnY2TBc1fLampAl/EyNTMzqE2K7mlbj63B0q7 1gNuIvVLqSWknsXt42mAluPptLl9IaOci36u403SjMlYX6rQKcF8uvb8khW/Ts3kUCv3vD2D6O4 qaxBTIW3k9zBbL+Ajmw== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX2R2moBX2OtQ2 ouqTLVkpU/N8lUkr4CEA26vpNCMfeyMqDgteVeR+EmQbdF2XeJwZKWlsAjcCZ9BYNNiy/DIK3Hj f51igY+1x2hL++uZd/OsFMwAfgjPKmI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461869544158500 Content-Type: text/plain; charset="utf-8" Link: https://lore.kernel.org/qemu-devel/c3f2f4e2-79e9-4b3f-8bae-88c669a34c= 0b@oss.qualcomm.com/ Suggested-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Brian Cain Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- hw/intc/hex-l2vic.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/intc/hex-l2vic.c b/hw/intc/hex-l2vic.c index a986f0bdf35..736f1be3b1d 100644 --- a/hw/intc/hex-l2vic.c +++ b/hw/intc/hex-l2vic.c @@ -92,7 +92,7 @@ typedef struct HexL2VICState { DECLARE_BITMAP32(int_pending, L2VIC_INTERRUPT_MAX); /* Which enabled interrupt is active */ DECLARE_BITMAP32(int_status, L2VIC_INTERRUPT_MAX); - /* Edge or Level interrupt */ + /* 1 for edge-triggered, 0 for level-triggered */ DECLARE_BITMAP32(int_type, L2VIC_INTERRUPT_MAX); DECLARE_BITMAP32(int_group_n[4], L2VIC_INTERRUPT_MAX); qemu_irq irq[8]; @@ -249,6 +249,11 @@ static inline bool vid_active(HexL2VICState *s) return active_irq !=3D size; } =20 +static bool edge_triggered_irq(HexL2VICState *s, int irq) +{ + return test_bit32(irq, s->int_type); +} + static bool l2vic_update(HexL2VICState *s, int irq) { bool pending; @@ -270,7 +275,7 @@ static bool l2vic_update(HexL2VICState *s, int irq) * enable bit set across deliveries -- the firmware enables once * and expects the interrupt to remain enabled. */ - if (test_bit32(irq, s->int_type)) { + if (edge_triggered_irq(s, irq)) { clear_bit32(irq, s->int_enable); } s->vid =3D irq; @@ -299,7 +304,7 @@ static void l2vic_set_irq(void *opaque, int irq, int le= vel) =20 if (level) { set_bit32(irq, s->int_pending); - } else if (!test_bit32(irq, s->int_type)) { + } else if (!edge_triggered_irq(s, irq)) { clear_bit32(irq, s->int_pending); } l2vic_update(s, irq); @@ -328,7 +333,7 @@ static void l2vic_write(void *opaque, hwaddr offset, ui= nt64_t val, while ((bit =3D ctz32(bits)) < 32) { int irq =3D base_irq + bit; =20 - if (test_bit32(irq, s->int_type)) { + if (edge_triggered_irq(s, irq)) { set_bit32(irq, s->int_pending); } bits &=3D ~(1u << bit); --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461863; cv=none; d=zohomail.com; s=zohoarc; b=GUgf/f7ADQChf1OmBJbeWz0gzKvN9apSIi5XVN4zzbJA89nzNCWhgMM43ZP4FLdH6WNAeifo+KYVMBECPUQN68nI4ajyG7exPcgKjJMkmraLDC2SN5n1PSMHMwUASp4yF/715AZTpmGPeEGYDIIIh9cZ+7B3tpx7+KCwio6wBp0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461863; 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=lCmFYWpR3bgB80nTpCNoUTsHi7Z1z1na67n5WzKmEWo=; b=VJmg09HVFmGSGIhkXT0FMSk/L+lJrJvEZUTQFm7oxyo90ffFlnw46g7CYp18oSrEG/99IBsiWlWg1KtH42V5ZVAaWDyR9TiDaeaMUxGAknUY9jxBK5TPvOuWF6BCpJSo07v2ajHZQUDaMubrcu/TcmMdVVuq/ohIht4gdpdSmQ0= 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 1788461863606219.4506318183411; Thu, 3 Sep 2026 11:57:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cc4-0000Yx-7M; Thu, 03 Sep 2026 14:56:40 -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 1x2Cc2-0000YA-FS for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:38 -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 1x2Cc0-0000YM-S8 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:38 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G39Bu927762 for ; Thu, 3 Sep 2026 18:56:34 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf6tx2c4h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:34 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-39512608fb1so268288a91.1 for ; Thu, 03 Sep 2026 11:56:33 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= qcppdkim1; bh=lCmFYWpR3bgB80nTpCNoUTsHi7Z1z1na67n5WzKmEWo=; b=P3 CqdTgwtMTusXAoTHGQmlLBV0x33Pdjot6+tZQ17Md2xymLv4UgVSvLUAkWxy1jT9 I8aTGkE7z0+3vLHGlzy7ca3PYdQ5JmO3nP5Oigj7oHupl2ofMQMD4hmvwwf/EFVZ IztF9t2+fjnnM9lqUxarH0ADNe7RSFofo2Bo1cxIh8BMWDs34ZzB4CigKQ8YJNQ3 R2nTpRjTl1HSkT7YoSBCsU4LS5U/YfOIZHhrLbcbxow3DXuvrtelSdx5C84bOLMp Ujhjx9hSAOmVF44r7zV0NHJBf/UprOUxBqpXCh1MtN8KA2dOwv2Tf8LyZbdJxmcb ow4XQVqGFdPiWIAseP9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461793; x=1789066593; darn=nongnu.org; h=content-transfer-encoding:content-type: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=lCmFYWpR3bgB80nTpCNoUTsHi7Z1z1na67n5WzKmEWo=; b=DnWVUJ1tZZB0hTuHoO0gTROsWehDrdRgynTXvgW2F6o+LJdGCTok5e7uVxL7zvjtee /WH0uLFXdXOinKepg5vnEebDEIde3LjzukUgyaYTt7NS0ZYwLtF6ZDwwD6ZkPvvUSftn ZV8NcHX92mDLwJlIFSURPBGO9OqVG0h86YbK6BGvuXqhrZGW9m2/Y9C3R0BS3OrcBvUn zbs6m9fBmGo3uPyHeMuljMIRv4lt8LoR4db+q5NJyfNeKQ8educRgIqBrHclQTFzOSG0 Jwbsm97AokW1FUjYOqobJaW7TKsc1Zio31IpKpfuMABRWzDsSvGad6ry2dtpw4LEYqpG wx+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461793; x=1789066593; h=content-transfer-encoding:content-type: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=lCmFYWpR3bgB80nTpCNoUTsHi7Z1z1na67n5WzKmEWo=; b=WZ2BBi4yfCGcmkWWqXztwic5WlrUxkbyhiS8gP7E8fvLpnS7Z+W/mEnQGI/XvNuy8m J6bRixtqSQMObHaCoXlRzDZy8a/fw6Iw71QsQIOel3je8VyKG8FmDqatRAkn6sSfwJ7D dap5ahlPNCVBUcrgkUAqQP12DIpL4X9vlOUAzVYaZcmj9L18DkhY72fFV3lZibArI8KV 7vZ3CZ6lmUUROYtjH1Rqy+bZ5oz6jJIT0498tI5SzKRnszJRos/RWY+P6T3EtJyDrcZI QH8wUrgPM2iGZdl+zCSVEi/7PlqGpJvFazxjjOX6Z1T13nu8Ybt19XKNDWcyOKL0M8Mq X7tQ== X-Gm-Message-State: AFuF++lAzqMn1asEA9LTx5hZpRFcuO6xXMN/m/SLds8ZNARKy6qS+5Gh S9aHGAjIXhoOJgXJ7xnDD3sbZU9yGKWwY7nFo1/cjXRgKw5cM+TDQjABvQxMnDfHpoqH5INgZhK Tn72lVBSFjGMXTajnYJgpKuDW8+Z0oXKzii+IyQd7MQPyGaNKRFtR4g/YLOMnu9ZVNg== X-Gm-Gg: AYBFou0eXdO9igGmCPPXArLod0M3zZAfAhu2uQCx4Ltq+tfiZsaETaWSDLSDDkSp5HQ snChWABypJTY9OuHzlFT9XmAkMXWhDougccHo5sjAF3VavjTBu7aicW7KV2T6dPwpiiohiTH/fp 4dfVZSKDuAI8T0mPSJBAqz0D2EN7LdKsqO7c2kWzUC47owZqOdNoRD6PNIwMSvINW+jgR47jgsX YbacojBx7HfKYO97La5+/JkrDOYtwqlY6KdBauku4xDZh29o/iY3IAMbbdJobnNAc+6Qb4BOLCx ynzbQsSBxJAIBaesxVkOnUK7gNBY1d5Oslip+O8H8Nda5BOrSlfYMAB4d8CKxZf61Y0nudjxjOy Kbq4HSFRoKp8N8bqBoYWLf7c+3+7mx4Y6COQbuHUV8riN2Qch X-Received: by 2002:a17:90b:2e0e:b0:398:9be5:b419 with SMTP id 98e67ed59e1d1-39b2622bfecmr889966a91.20.1788461793164; Thu, 03 Sep 2026 11:56:33 -0700 (PDT) X-Received: by 2002:a17:90b:2e0e:b0:398:9be5:b419 with SMTP id 98e67ed59e1d1-39b2622bfecmr889899a91.20.1788461792709; Thu, 03 Sep 2026 11:56:32 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 5/8] target/hexagon: assert guest register pair alignment Date: Thu, 3 Sep 2026 11:56:19 -0700 Message-Id: <20260903185622.3234171-6-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: Mz1VNN38UlnGUkpUX9ZzOSquEP9h-p_T X-Authority-Analysis: v=2.4 cv=TqjWQjXh c=1 sm=1 tr=0 ts=6a99c2e2 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=IRiCDiS4x8IJ1kWjObwA:9 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-ORIG-GUID: Mz1VNN38UlnGUkpUX9ZzOSquEP9h-p_T X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX6l26VQNhHPv1 AF0R4E7KBEntjx+iZHisH1NqqN/ullir0lrmWQCYGmY2OvdQtePZlILXYzESueFAwJBUpLTzPHR e7drB3V8eMB5xl9DyJ4+w7O7HFtNLr806Je3+zYvImzT599IfKO03Eb3a3UyCPaM6oPMOf8ki8O U7ZjDPoqHLJPWVwZ+xx2ZVjgqYqqRiEJowsPGa8488tPQ7SJHWZvxPFXG1C/L5wauQyWRuXnJSq wGWxCakMiPJVrQOIOpGwfVPgFXltQukmADU0kq955lE9oxAT9nOqiB2MVIMTzSJ8J0XreNv6oOV 3jMoZu+CDwxccip2cuNBs6Qu141IHWOd4Yy+wHImqEFSNwTslDmx0ysAVRSbgrYUi8AanBxGAVK 0xxPNYhfL7Hk+cx9UOJM7TLixwEtbRoSGmctsrNwHFNeu5IA9QRhYtQ+nLrPfZjzHEHxKFwYG4I ypd4aIm7dAn/cd/Pt+g== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX8CDIHitck8Bq 8F/wiCA18Xj0uXd/0QJG2wr3DWCE4x9lUU/qoAieHqsYKdgoqbszblNxWngn+bgWTv+SV85AsN0 DLUawRkP/R4Oexw9CneE71OpADhOfeo= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461865585158500 Content-Type: text/plain; charset="utf-8" Link: https://lore.kernel.org/qemu-devel/f7f34a43-c1cc-4dd8-a859-9ab72e1b01= 5f@oss.qualcomm.com/ Suggested-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Brian Cain Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- target/hexagon/op_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 5d64c5523bb..7ad99ced7ab 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -1927,6 +1927,8 @@ uint32_t HELPER(greg_read)(CPUHexagonState *env, uint= 32_t reg) uint64_t HELPER(greg_read_pair)(CPUHexagonState *env, uint32_t reg) =20 { + g_assert((reg & 1) =3D=3D 0); + if (reg =3D=3D HEX_GREG_G0 || reg =3D=3D HEX_GREG_G2) { return (uint64_t)(env->greg[reg]) | (((uint64_t)(env->greg[reg + 1])) << 32); --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461873; cv=none; d=zohomail.com; s=zohoarc; b=fUAQQFG9CIk0NpGK+rvSVqcKnf0U5nGMKh6+AllLerpVanrRMiB3QvFpM5YX9TCRSiUgl7fs+lemsyW2FpNanxUhGysonewJesRV+WRK0SshY1IYD7BN1VjFT3cjIIgOYz2dpTPKYRUuPl5A+akn6fxIyFUM8iz0mxLLRI93xmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461873; 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=wVznByCgK+i9gSXEJKo6KBY6Af47d8yQQJ0eBo38CYg=; b=bFoJh4jvD8iR1EROxc7ubdFYLLyyd/QBhN/XhxfvseAVq3SA6i97xIaojzW3WoNjS8NlikCWAMvVnu6u3EdHXa3/1HAJToAW+80RVq/KqIb0uEcz42pgsErsuGl5Lgd19esMHuCxb2nlgu93h1WeOS98zEFbmfigc65tDH30TLg= 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 1788461873562739.6998004642594; Thu, 3 Sep 2026 11:57:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cc5-0000ZZ-Ma; Thu, 03 Sep 2026 14:56:41 -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 1x2Cc3-0000Yp-U3 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:39 -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 1x2Cc0-0000Yg-SU for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:39 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G3drD1431114 for ; Thu, 3 Sep 2026 18:56:35 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf1j4kkv6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:35 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-396b9ef3070so168467a91.3 for ; Thu, 03 Sep 2026 11:56:35 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:33 -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= wVznByCgK+i9gSXEJKo6KBY6Af47d8yQQJ0eBo38CYg=; b=ZofCDRY66Xtat1DF CFpOYqWhFUbizoiy60dfHUALBNNrAG4TaLyFsfzFO1fxyDgf2sTbI0Ps0AViYwWS 1WuDkPxf5CRp3VB7M5prXXgsHR1/nNF55RzhXF8aMhl3Ll4M2PWEUoUfCcJySNnU TN63ZTV5dQ4tFrQxYLF12l8R9RAehc9070k/dE4qvXD7KNynl2dWGpCd1IfxywTd +KrNGmuGqS0Z4uWUDrSFUCwes63lhhSz2+xK0ChwXLJYjmRJNKcacjdxifrlMpHj 3PA0YSgmT4fCed+PPgMXzhYQodtHpYwWb9Os1PHIlYZPlK0Kkd9sl4Qf5hmmALmE +Jqbtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461795; x=1789066595; 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=wVznByCgK+i9gSXEJKo6KBY6Af47d8yQQJ0eBo38CYg=; b=cOzuvMJ5TMJ72Lud+dfAWOreLGzd96kkKKe2Pv3miTsbiODyPU4LY3Tg7ASt8quL1j 15q/GflTWtJOwFJY1hSa6a1SDK+LsJVZSjomVaGtv1vn370TBeNSUR87/n6kAiCC3IAX wwk8yEatbQDI6kFzt6U0I3p/MCzCcjTSiOcnxAHgUtiGdDNu5vE4u+9cLzgPoodAqTp1 H6YbhxGPak8sErqAhF6djShlYePnZ7WbOB8cNq00usn9TDoj5WOJpVYl/cSOoUuKNLxs qcbzB8yYXkyZGxObcJLKGtktbPV3KBkBbnWpgLr2FQ7VN/U6S9TqGXlayUWfiTE76h1l 9nog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461795; x=1789066595; 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=wVznByCgK+i9gSXEJKo6KBY6Af47d8yQQJ0eBo38CYg=; b=IDG7rYqXyBL12IWQF13ai9KKUHw4l3U7zpSQGBohtrU4CHEFSQVXNNDGx6Wnsv62rq DCUXd6v9N23WeuOH8NJ5CqZ9S+7wntcFI/7m9VpJ5S/2jufoDFKnXisYeOLQlBCtLl+c vz0DfhjKUGFw0YeWBozQgH4gojnos/9ghJptKBkzXWSfoffmVOTN0t02ds6DaFjcBTmH HB/wJc0vZS9vUzaAcUp+xqpP6gcur7hyzBNAZQpthjOgU6vXbGYrQCfl77e3o3TSmS+b hCWcXeGTPRHv4m5f9roqyrzi2EXcCxk+Axmp0tZ+i7XpeUoHnZdDBM6gooPkfJE81lgp Sadg== X-Gm-Message-State: AFuF++lGDNq3tyDidez4+qEfCn5bp17Qk/baulDUN91neC9A06bZskq9 kZF8r6biRHMPFiwxQvRzk65te1RmpyVT8LPgbuE8eS1xqTP4PVFQ/7ZY8wuyDLv0ozWAJZ7l+Fe 6tQdvdV9/1fhwMHSDkvzE9dIG7PeWA7HRPzBBnubyXRTLh08ks0p+RwR0vGLDJ6uZ5g== X-Gm-Gg: AYBFou2RJf5pXFp0oS9Yth01mCuz31IC9Pcb0eNbF2WNe1wpWDidJ/F2aI5ZiP83avY ibuYTgWOZU1jk/BPVsGHGpcvBP7QYFLgU0xiqeWDe9Myvsw/tgnEjgGl/X8mhkn26tfYC9XpPGY KGML8eaW0LS/KfkPWECgDGp8W/XJ/xpwA3m37EemK/ev7GBOzpceDDILm4yCDQorMmum7MRs8fl ATHI2ZVkro3woygcQT1NcTO0Ow9uK6jajWoCtqHq6hjd7nwAGAymgY+mzP0E2dhwgIu2Yd37y3V TI8q3pTD3j2NJolM/cLCgdHB/lOkVXuQyHb5aYXx6jrXXiTa00zqeWK3BTfj3l9aUc1h0TR7uzR F2t6WaY4330F4OD++FLXxMOjJQHUgaZ/H96LqNSi3ur1lfY1S X-Received: by 2002:a17:90b:4c51:b0:38e:57a3:f218 with SMTP id 98e67ed59e1d1-39b26204e5bmr599310a91.13.1788461794538; Thu, 03 Sep 2026 11:56:34 -0700 (PDT) X-Received: by 2002:a17:90b:4c51:b0:38e:57a3:f218 with SMTP id 98e67ed59e1d1-39b26204e5bmr599261a91.13.1788461794037; Thu, 03 Sep 2026 11:56:34 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 6/8] hexagon: raise imprecise exception for multi-TLB matches Date: Thu, 3 Sep 2026 11:56:20 -0700 Message-Id: <20260903185622.3234171-7-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=dufrzVg4 c=1 sm=1 tr=0 ts=6a99c2e3 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=afvixaqROyvvyxJKKgMA:9 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: Lmn1WjxSerdEIaeBRgaU4fXrERXhPYU3 X-Proofpoint-ORIG-GUID: Lmn1WjxSerdEIaeBRgaU4fXrERXhPYU3 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX8G4XuHtj9Md6 6BBP3Urivycw//ksPKzPUZplaauoPjhqu/FY9hqGmolRl307pOm2SMi8natEdv7stY3MncgYA8T THJU9ya34OepEBgVD35gJOVgGtZ1jjw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX1fe/Qt4Ms/Pi cZ84uy7DOv0iSl5CHo7YSkZTHk2j+kmBuSBF72zVuZD9Vo/1gzR0FylkHS+Wnm94wQQXY/fsuY8 8SbPne5Yw+EiIZMFe6vs2bxB7OjvvuI0ltWIY9RFPm/0/OfRnjg4AhoKeeGYmk1VGtQe7dtf+0l oV6+lHXWEJXaN6nyclnk/7CxqyLG84zZaenmi5QF/WP72L2pZ/0TVH2h4rheQjiRmgnBl2r1szk u9WC8tO8Ul8Xq4jEl018vgx2nfMya5U8p3PzsF4h03SaM/U6uLoJRHn7Nb1d7uFVKU447+Qi447 fZdFeqeGrRA7saT4g0c1CykBMqYJUnvNSUuf5SgntEPx5YjI/S3plqLxAE0qzEcez7l1wf3HtLH 4Wzt75sMNnTDhqq0l3uCks6STOGwpHtua1oswohKuXIV2F3jGz1kIRkJytOzj1tN9sRw4QfWbct hxL11lC/m6RebcYtM/A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 malwarescore=0 bulkscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461875643158501 The TLB walk stopped at the first matching entry, so instruction and data translations did not detect a second valid mapping for the same VA and ASID. Scan the remaining entries after selecting the translation. On a second match, retain the first entry for the access but record HEX_CAUSE_IMPRECISE_MULTI_TLB_MATCH as a pending imprecise exception. Move that exception out of the synchronous TLB-fill result and check for it after every packet, rather than only packets containing tlbp. This delivers the architectural imprecise exception after an ordinary memory access and avoids treating it as a precise permission fault. Clear the pending state when starting a new translation and after delivering the exception. The v0.2.14 mmu_multi_tlb systest uncovered this bug. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- hw/hexagon/hexagon_tlb.c | 10 ++++++++++ target/hexagon/hex_mmu.c | 12 +++++++++--- target/hexagon/hexswi.c | 1 + target/hexagon/translate.c | 22 ++++++++-------------- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/hw/hexagon/hexagon_tlb.c b/hw/hexagon/hexagon_tlb.c index c76805abac9..157d03e51bf 100644 --- a/hw/hexagon/hexagon_tlb.c +++ b/hw/hexagon/hexagon_tlb.c @@ -326,6 +326,16 @@ bool hexagon_tlb_find_match(HexagonTLBState *tlb, uint= 32_t asid, for (uint32_t i =3D 0; i < tlb->num_entries; i++) { if (hex_tlb_entry_match(tlb->entries[i], asid, VA, access_type, PA, prot, size, excp, cause_code, mmu_idx)= ) { + if (*excp =3D=3D 0) { + for (i++; i < tlb->num_entries; i++) { + if (hex_tlb_entry_match_noperm(tlb->entries[i], asid, + VA)) { + *excp =3D HEX_EVENT_IMPRECISE; + *cause_code =3D HEX_CAUSE_IMPRECISE_MULTI_TLB_MATC= H; + break; + } + } + } return true; } } diff --git a/target/hexagon/hex_mmu.c b/target/hexagon/hex_mmu.c index d6258c673d1..d6ee7c40798 100644 --- a/target/hexagon/hex_mmu.c +++ b/target/hexagon/hex_mmu.c @@ -71,10 +71,16 @@ bool hex_tlb_find_match(CPUHexagonState *env, uint32_t = VA, uint32_t ssr =3D env->t_sreg[HEX_SREG_SSR]; uint8_t asid =3D GET_SSR_FIELD(SSR_ASID, ssr); int cause_code =3D 0; + bool found; =20 - bool found =3D hexagon_tlb_find_match(cpu->tlb, asid, VA, access_type, - PA, prot, size, excp, &cause_code, - mmu_idx); + env->imprecise_exception =3D 0; + found =3D hexagon_tlb_find_match(cpu->tlb, asid, VA, access_type, + PA, prot, size, excp, &cause_code, + mmu_idx); + if (*excp =3D=3D HEX_EVENT_IMPRECISE) { + env->imprecise_exception =3D *excp; + *excp =3D 0; + } if (cause_code) { env->cause_code =3D cause_code; } diff --git a/target/hexagon/hexswi.c b/target/hexagon/hexswi.c index 75f0a9cc520..4705e915aea 100644 --- a/target/hexagon/hexswi.c +++ b/target/hexagon/hexswi.c @@ -934,6 +934,7 @@ void hexagon_cpu_do_interrupt(CPUState *cs) break; =20 case HEX_EVENT_IMPRECISE: + env->imprecise_exception =3D 0; if (get_exe_mode(env) =3D=3D HEX_EXE_MODE_WAIT) { env->gpr[HEX_REG_PC] =3D env->wait_next_pc - 4; clear_wait_mode(env); diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index be75e5fdeb8..5d3d67e5d3e 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -1065,20 +1065,14 @@ static void update_exec_counters(DisasContext *ctx) * A tlbp instruction may detect multiple TLB matches and set a pending * imprecise exception. Raise it after the packet that ran the tlbp. */ -static void check_imprecise_exception(Packet *pkt) +static void check_imprecise_exception(DisasContext *ctx) { - for (int i =3D 0; i < pkt->num_insns; i++) { - if (pkt->insn[i].opcode =3D=3D Y2_tlbp) { - TCGv PC =3D tcg_constant_tl(pkt->pc); - TCGLabel *label =3D gen_new_label(); - tcg_gen_brcondi_tl(TCG_COND_EQ, hex_imprecise_exception, - 0, label); - gen_helper_raise_exception(tcg_env, - hex_imprecise_exception, PC); - gen_set_label(label); - return; - } - } + TCGv PC =3D tcg_constant_tl(ctx->pkt.pc); + TCGLabel *label =3D gen_new_label(); + + tcg_gen_brcondi_tl(TCG_COND_EQ, hex_imprecise_exception, 0, label); + gen_helper_raise_exception(tcg_env, hex_imprecise_exception, PC); + gen_set_label(label); } #endif =20 @@ -1182,7 +1176,7 @@ static void gen_commit_packet(DisasContext *ctx) } =20 #ifndef CONFIG_USER_ONLY - check_imprecise_exception(&ctx->pkt); + check_imprecise_exception(ctx); #endif =20 if (ctx->pkt_ends_tb || ctx->base.is_jmp =3D=3D DISAS_NORETURN) { --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461863; cv=none; d=zohomail.com; s=zohoarc; b=Lo9dzWQwrFRYoBLzTJZxwwuZ7s7DmuUx11nkAXNpghQAlaVUvYPTQPuzY89rHGw7SjJD0so2qB+gyu3H5YxJ8Cf7SyF2dsnJkS4gIl3POVCnn1m3SCTvPklZNXVR3nxysW3MQ0EJp3BtE0sdx/rckk+wYi++iG188fohhJ3N6NU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461863; 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=PDUTVxdbtqz6HDwF25RIQroV6wpy3KD4BQ7i6+l4IAE=; b=LCy/5TN/RgMECyVZ2YqPoEHBg+uKdsO4U7COADqguwX5YC5ggLe9rNyLjNEz7zHmWSzGWot4LqVQow3VTY4QT651Jgk6VRVNo2qd2psUAJ6syieAsjh8aKflCs4Np6ZtzS6VwKeSrXKiQRgKE4cbN+MhXPliN3X4gm4NlN0LbDY= 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 1788461863665200.90132717098152; Thu, 3 Sep 2026 11:57:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cc6-0000Zd-4b; Thu, 03 Sep 2026 14:56:42 -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 1x2Cc4-0000Yt-42 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:40 -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 1x2Cc1-0000Yr-CV for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:39 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G39vF927750 for ; Thu, 3 Sep 2026 18:56:36 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf6tx2c4r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:36 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-38f5ac7416eso142849a91.3 for ; Thu, 03 Sep 2026 11:56:36 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:34 -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= PDUTVxdbtqz6HDwF25RIQroV6wpy3KD4BQ7i6+l4IAE=; b=GP3uTXB0SVMvYWxc iMdq1+XS0wSOzX1Xrj+q4Oq9K+wVTOYCoo4aswfa6KMgb422pTP9Oml+rO7J8qr8 UVvoozp+iHcM+jNQZs6JknfmJZumIMk0KVjM2Mv94uz/7JZ2OpIMFEzchs5LVLPe IXUFHx6pZQKy+BoHZtAz/WNfK8mUOY0jnM3UMANw2bZkJfYeC0yVMLQjnE2W86pK RYyzoc21VOEKxTNiLbRkJX51nZFQUhxT9JYW3B6ihOH8OAj0EUkMP4Mbek+dGUFl ZSP6Do+CV6LsBeQJBHzjmaqYJ06q4Y10HzznMzMT3IRfXg0DsQ5fvG+OoTkjdnKI yxPBoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461795; x=1789066595; 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=PDUTVxdbtqz6HDwF25RIQroV6wpy3KD4BQ7i6+l4IAE=; b=OvUNleRELM54goj/lhK5myXk/jeIGuv2hHy0aM1rgyoTweo5cxim9LtxvuKKLExfuI J9hSWe74LEe7zcovr5QX6kH5I3SnqzJetMMgbY3m7qIfWNHLXR1PrxmCNGWXRLd+Id02 9UcEVqMbepnfhKHtojhHOwBuPvS+RTip2DAUxmxWXb3sB8ULU2iHTHgtB8PR5OZ5E9m5 5m8qSm0G5rAfR0mk78ijrDOA52o+11GUsGskornmj17ecLDOS1pms4V/Ia+VBTi0usO4 +PPyQyw870VL3YqvdPYSS4CN4bb5ViN7OjFjETkidnb9yMT0e5wCRrblAvD4M/VZb93Y Bnvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461795; x=1789066595; 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=PDUTVxdbtqz6HDwF25RIQroV6wpy3KD4BQ7i6+l4IAE=; b=eygcAeZmNjuU+Vac3nElxCid1eoEIF2IhCLPW1izvlDG4JXXnI+q+6LUhZbRc39EoG 1JFDsZVWT2tCBi/6B6TAZGH42oSfnGZjIvdlWGYny8PuXp3m2Y/oFXF9db7RwWBGljUU BLqrk4Ot00TjXXbtUwwSWvBlzyY+AYDn2Q4N9W0pLhkzOpxlNGpRdqcgxleujQx/Fq25 Fmkl9EpP/XRdqS3e81CMV3pHgKLKNMXSEgZcC9aVtjaiWhehL532pp1zATzoB6Yn2yfC K7H7cPJZskoGxhAkpmYkrYczbd5RjOsXH/Sj+L0ZvApQx7pweul1WLj8DFS0XqRSaISV b87w== X-Gm-Message-State: AFuF++mQwi26tr815TFe2xD/Mw9hEMC8dXCUlOswg2xrXtsUarhwkRJt JQxZ0xWLxwiuPIeyZnyt/gk42FukocvdkdXIphAGdnVIP7f09qHsp1ySCQlaxd4FSWE7oX7PufY shS+7onKbvUa4/VD6SQkJ/wh4kxwyAt2gABYWnQGSNGGhHtiLDuKFPua30QyzXp1Vvg== X-Gm-Gg: AYBFou3czn9LOpMWrbkuN9nlC7D1MOyWw1pC82eFsu8kjCuV/YnqCg/R2Gk7GCdzaFm zgc6eCo9WrBRJtXPsVn9yjwdhaE/XkvNmM9bhCIQgKI5rTemp5HCJg6LGnPA7qVrDxThZdpR4Mp fSgyORNCofxrBATIKCAYW+gzWmMAjrCCHw/RMXoHJ1lfcM1wV608i2Bgv9LTkBsZEfMlgj0cqNS UMQdUNXHYh9lYnXRsGzjPMnWIrfv2D0GT9IZ6EZ6ugQD0yfHB4CRnvSUBQCZYPxdKGCL9zTe/v4 AKxdHuMJFSKFF/yMG51vPUQjWiyuRS2C4+rYR0Z/njf566fz1vVO8pagu5M3VR2xl2IXy0ycjlC /wP5qBn4NJJ3TmuTjHKHYkPqhOfZ8oHBiXLs8DYkhYW9HSHVV X-Received: by 2002:a17:90b:5243:b0:38e:c232:9d3f with SMTP id 98e67ed59e1d1-39b2614df1emr884383a91.5.1788461795532; Thu, 03 Sep 2026 11:56:35 -0700 (PDT) X-Received: by 2002:a17:90b:5243:b0:38e:c232:9d3f with SMTP id 98e67ed59e1d1-39b2614df1emr884303a91.5.1788461795028; Thu, 03 Sep 2026 11:56:35 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 7/8] tests/functional/hexagon: add tests, update to v0.2.14 Date: Thu, 3 Sep 2026 11:56:21 -0700 Message-Id: <20260903185622.3234171-8-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-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: MYAeSevmmCTUklgjP4fYD1AQhoGyZr6h X-Authority-Analysis: v=2.4 cv=TqjWQjXh c=1 sm=1 tr=0 ts=6a99c2e4 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=5vFef2XoAAAA:20 a=EUspDBNiAAAA:8 a=Hk3-jCc9Ay6NLlPe0nAA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-ORIG-GUID: MYAeSevmmCTUklgjP4fYD1AQhoGyZr6h X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfXwQYTIPFlecvs iywNI0NQSArYSYXeJ8Mi7rdfYk13vc+30AyDcojhCE7IqUJb42QSvFIT1/b58wfEXYXOaYM9rLZ hrfJIRr2xAYEHvq1GFiQYDRFx198E5+n4JspGe5ebRTpI4ydrI0bYUWGTg0bzfIGWuwMeGwmbNq /a0enlvJw0dxDV94xBv+WQw0abVrHL5fkbWipT3MrQExFfgkfhUiytwsIY/bvEzQCdMUyCih2T4 SqRKPBqEOCe5y20Bo3xswAoT1MdPopwHepV/sHXA93r1nlrFs05JJwBRi6BvjCi1P8KVX/zHp/B 84qtGOQm1F6dYea3OonfMjZOJjWChihvoUK4iPrcs6Be/MQ8mo2ELcUbrxuYrAx6m3HJ+co0jRu hH1LAG7LsDq+gSQnnW3K9M4dLOhzqr9/uB0b5TZ8eSMNgP+N8/CelBBQfha8a+H6WrgaWRXToup iOXN+lR6aRxI7CdxUHg== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX72MoSYFjSZrL 4gmRdmViuk/HZAUZZf/KPw3d09DltaNhs3xRIVeighKh6YipEOc/3OpyzTTRW4zJtcqnTam80DF cpUlnR89ljRovQIbOnSje2S9GEHKxq8= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461865620158500 Add tests for direct-to-guest interrupts, multi-TLB match case, {u,}timer registers. Update to the v0.2.14 tests and switch to the new 'sim' machine name. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- tests/functional/hexagon/test_systests.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/functional/hexagon/test_systests.py b/tests/functional/h= exagon/test_systests.py index f36e015f502..983ee1672ce 100755 --- a/tests/functional/hexagon/test_systests.py +++ b/tests/functional/hexagon/test_systests.py @@ -21,8 +21,8 @@ class SysTestsStandaloneTests(QemuSystemTest): SYSTEST_TIMEOUT_SEC =3D 30 =20 ASSET_TARBALL =3D Asset( - "https://github.com/qualcomm/qemu-hexagon-testing/releases/downloa= d/v0.2.11/systests_standalone.tar.gz", - "b5777aa65245de7710a7a08d717953c1362be7c8b60d9014c9fee8b17610ad1c", + "https://github.com/qualcomm/qemu-hexagon-testing/releases/downloa= d/v0.2.14/systests_standalone.tar.gz", + "f0c535d746384126954757b6ce54452c5fe82624618c79862495eec24718a6ff", ) =20 def setUp(self): @@ -34,7 +34,7 @@ def binary(self, name): self.assertTrue(os.path.exists(path)) return path =20 - def run_exit_zero(self, binary_name, *extra_args, machine=3D"V66G_1024= "): + def run_exit_zero(self, binary_name, *extra_args, machine=3D"sim"): self.set_machine(machine) self.set_vm_arg("-display", "none") self.set_vm_arg("-kernel", self.binary(binary_name)) @@ -47,7 +47,7 @@ def run_exit_zero(self, binary_name, *extra_args, machine= =3D"V66G_1024"): f"code {self.vm.exitcode()}, expected 0") =20 def run_console_pattern(self, binary_name, pattern, *extra_args, - machine=3D"V66G_1024"): + machine=3D"sim"): self.set_machine(machine) self.set_vm_arg("-display", "none") self.set_vm_arg("-kernel", self.binary(binary_name)) @@ -90,5 +90,14 @@ def test_access(self): def test_semihost(self): self.run_console_pattern("semihost", "PASS", "-append", "arg1", "a= rg2") =20 + def test_dtg_interrupt(self): + self.run_exit_zero("dtg_interrupt") + + def test_mmu_multi_tlb(self): + self.run_exit_zero("mmu_multi_tlb") + + def test_timer_reg(self): + self.run_exit_zero("timer_reg") + if __name__ =3D=3D "__main__": QemuSystemTest.main() --=20 2.34.1 From nobody Sat Sep 26 20:50:57 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=1788461860; cv=none; d=zohomail.com; s=zohoarc; b=O/Dchm+WbZlr8CMJPEFtWcXZILqGQjlhRGoB0fwi7fuARQyyYfp4DPE0+j+e0kqFVU1+Oy4ttLojQ3uEN+oN18ZEhRVZTSRtmx9S2vZgBYNpf3Hp9IfYGV93dDTJoAfrcsZMPc+lm+1uJGYIfLjeMsjlNN4eZw1d818fQ/aufVg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788461860; 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=dQ9BnuZ5QmzgOwiAjdsZaMI5EMASpOR6tBbeOiaVbqM=; b=BrVFYYliL0y0h0yXCDTeqrHynREXG9UFNt92O+Ez6YuqUiVZ6p5q35WzlJJXyAo1y4GtWDrVYBYoywcNMyTbzJ0nj9BlWOi0T0f9zzvy9KnrIo+zgI+7VotCNEpIr79SVpokP77o5/uY6XoiMEcTTku4+VVLH4lFyc7fZ05LuRE= 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 1788461859972460.2073969046496; Thu, 3 Sep 2026 11:57:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2Cc6-0000a7-Iw; Thu, 03 Sep 2026 14:56:42 -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 1x2Cc4-0000ZL-N2 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:40 -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 1x2Cc3-0000ZG-0E for qemu-devel@nongnu.org; Thu, 03 Sep 2026 14:56:40 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 683G38pg927729 for ; Thu, 3 Sep 2026 18:56:38 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf6tx2c4x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 18:56:38 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-398d0010cfaso174395a91.3 for ; Thu, 03 Sep 2026 11:56:37 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339c0ec914sm922974eec.31.2026.09.03.11.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 11:56:35 -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= dQ9BnuZ5QmzgOwiAjdsZaMI5EMASpOR6tBbeOiaVbqM=; b=InL61AQXJ5E+64R6 JF3bl/jJgUmnPfQMO5D8zrbGpap0V0v/FUd0zjs/XKTIwatzkPNnQVcAd1M+/lUV WtD/SLqwa90yxWsyD5dLfpcQQAQqlO96zGCurU1fkrk7chDQoVpEr18ZxJt/41+A p5GMRNzwuX8mI/ybWFycjck661cb79g6QOHgrM9hDN15SQlmiQg+L+j50h+g3m18 /HpKdThE2b2opixwdvjRFjLjVECQOxMVhD/h2j0H5R++EjaHrdi2YAtR6WMHZfnV nnIyK40XA7Jpi00qRA4wCrFJXnSfFe8f6+XhqmbmoB4jJhkBMVTp9tNf3K5eqdiH Al6YPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788461797; x=1789066597; 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=dQ9BnuZ5QmzgOwiAjdsZaMI5EMASpOR6tBbeOiaVbqM=; b=NZua6ChKSxvJS1XjOnsr1k6xqYZBQqLcr4T9iVPlNDqvAgEv74jul2AB9LONi1tE7R Tag5fWDd5yxZCuKqmby3u5cCqQF+eE3EO8RA/K4ljR2CeO5dd3FtNJVRW3cR4p/YdCsZ orXyd6x/tGZ1z27THqFnNO7Hj1mPpg4as00A61ZoPd1jCjqswIbI5wcZX1+cN4kNo2h+ fivtoVO+JyzHlWmL7iKW29+sm3qPRNTTpWPufMvYxN0EO4oC2cD9+ZE4/Tdz/4fQ7gUj CgcJA5fryXeSUP0WOHuB5oiXY3jnzZcQF4S/wwhHuJd1Jmw+tB7yuLqlYD5EltzobGEO jj+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788461797; x=1789066597; 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=dQ9BnuZ5QmzgOwiAjdsZaMI5EMASpOR6tBbeOiaVbqM=; b=ky27trenljD/W/mWhKjrjXvYT2Pk//fELozrVpwlVXe7vsn0nMwjixiBn95CSPybio cewHsvYmmM5x0RajrQ07C8wsxwzIuCBuce2QyOGlf/ZvlwW6uU+hfg1Mim+Ws9vXjtil lcd+jKYxJcDL3T/prDYEq9vbiRr+I1fAzunDex1qQ8UfGnqsP4j+fHk/CBJV2IjVeAhv wsFeba4F+HFtzqkczLF31oiPftPJZW4/584dCw6wNR3M7m3Nn+g/73/cv7GjmBq6ROxB GJKSZpZmtKigpBTEbFEDbjAoKnLyBztnbc3AVOkqUvNYhemFUgoeuki7UVfxk/gpOtXP ELJg== X-Gm-Message-State: AFuF++lyCqbkf3burXZIyAyRhHaHucLBos7s4RyhZf/C/WtTKP/25hmV j57IXpTCTqOlVBB5tJF4dyq3AGxc1gUPv7oLCitqZQxuT+gcEdB1vybOiN7yElJhiEBWEokbJjx 1GWBBPpNrEMOGgSbOg0Nyf+MzOe5nVfcoxu8BOQJXzB9cu5hqWQ/OwOMIrg12/0TBFg== X-Gm-Gg: AYBFou0+KOp8K4ErbsByVigULWhCLFhh6IdstzbzO8yo1+ZbBu5BTi2+Wn9gUmEX0b9 1eMSvKN2zWBUrR23u4u4G5v5/l4g6G+jzpjKNcEGbeq35EOkTTDtdD+qsvzkBkY8ckwNOv8YCXG hmP1vMIOhrivTvVj1DbOVtz/qssC4jiuQgNpDZETwcxbesWzCMF4fmX9ygxoIFRx6JSaQ1w/MCn /8ZSxA0gLgl4GFM+39jm3bYCW2MXrgzE6ydLxh7O6FdNX8emDpHTiDViata/xzKfF81LWpU6xCS RH+tK4kz7G/ip+DS1i2de65y+LEFpkiiyQLiETb8mGNfzlDuz3f7l2miNnZjgmJuL3/XCZsf48j QvLoascBRhlBgWzq67h85Jse6k/o8SZksakm8vB1YGTOLz2L9 X-Received: by 2002:a17:90b:4a48:b0:381:6c5:3f63 with SMTP id 98e67ed59e1d1-39b260d2d58mr743507a91.6.1788461797101; Thu, 03 Sep 2026 11:56:37 -0700 (PDT) X-Received: by 2002:a17:90b:4a48:b0:381:6c5:3f63 with SMTP id 98e67ed59e1d1-39b260d2d58mr743445a91.6.1788461796624; Thu, 03 Sep 2026 11:56:36 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: Brian Cain , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 8/8] tests/functional/hexagon: update arch tests to v0.2.14 Date: Thu, 3 Sep 2026 11:56:22 -0700 Message-Id: <20260903185622.3234171-9-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903185622.3234171-1-brian.cain@oss.qualcomm.com> References: <20260903185622.3234171-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: r9mwXRZntpa81Xltwia8vp8PbGPeY3bO X-Authority-Analysis: v=2.4 cv=TqjWQjXh c=1 sm=1 tr=0 ts=6a99c2e6 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=5vFef2XoAAAA:20 a=EUspDBNiAAAA:8 a=EqftbGKkiOAk-SFv07wA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-ORIG-GUID: r9mwXRZntpa81Xltwia8vp8PbGPeY3bO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfXyohC5WcmXwIu 1gdWTbuSsUS865n/QPRtOGbSe1SkmkMSDfFVWZu45s3hRQPOfsWYv1M3ylfuwMghdbch/0sUi9O vU2SVEccslKWTdBrCj9ZeAxmJtboT2fjr/3fWoAnLHHiNgEz70N5NoEcNBhMEhoXqRxN6fRuYUT FPjSR2yUdjL+gyIEs5LyTYPluYWwZm7KWEaUY4/nl6GpkLYDW1whiISvEkMxEAsILqpny52JS/N bJiecz48TVgelqjkUhJUTZkzCRW79x2TpnmWeTPL0e9KzyuaJu0GlQep9q86hIwPdf6mYoKy1Ox PJnwJDblOvKVz0CC0up7BoVh/cfazZ+qBUR2LoGOcE65mXGllfHMDmHl14CLL6w8W2F2oDp6D+E pRN7lI/Y0jFfKuDSGGOYXPHK9wV/PWPH+qRQ12/B21SJaP2Wofu+9rO56OeNyJG6Xl4vry8rOy5 wcDk0V3GcRFQaICaLIA== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDE2NSBTYWx0ZWRfX9u3+8nSDXRtj K+ziQp/wrPILM/Vp4UKK7FS1LRJHZ2w15U26yrjFJBdHsBJL6JiBUgnfo7TnY94QIgOBSluKzLc 5lE2lylu1ZU2PN7wLsBJLbvHyy+r5Uo= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-03_05,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609030165 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: 1788461861575158500 Some of the tests run longer now, extend the timeout to 180s in order to keep it robust. Signed-off-by: Brian Cain Reviewed-by: Pierrick Bouvier --- tests/functional/hexagon/test_arch_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/hexagon/test_arch_tests.py b/tests/functional= /hexagon/test_arch_tests.py index 8e71386c186..5d7ce487436 100755 --- a/tests/functional/hexagon/test_arch_tests.py +++ b/tests/functional/hexagon/test_arch_tests.py @@ -17,12 +17,12 @@ class ArchTestsUart(QemuSystemTest): =20 Tests output results via UART. """ - timeout =3D 60 + timeout =3D 180 =20 ASSET_TARBALL =3D Asset( "https://github.com/qualcomm/qemu-hexagon-testing/releases/" - "download/v0.2.12/arch_tests_uart.tar.gz", - "871a339bf78cac0ebaf1b2509bfcd5b249ad8190be33e0cf848283b2f6915323", + "download/v0.2.14/arch_tests_uart.tar.gz", + "ce93cb90b9d757c1946dfe8fe6abcec8292b08a66546ac51b2dd48650b05fa91", ) =20 def run_uart_test(self, test_name: str, --=20 2.34.1