From nobody Sun Jul 26 13:28:54 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=1781624113; cv=none; d=zohomail.com; s=zohoarc; b=llr9MUb9oIaILBcbVWYH3sm/NcmtfBZeFrfST+1MA45RKG/XtoPSwdqbwAB32DLTjWS0n1qxBVLb9wKFRtWjqzUC4FW1NCiR5ByVnUrL55i6DdDcq2M5/ahIZwxoIJQgn5ZiGG1Rjul8TH1j0j+BA5EoYyait49CKnVVvXf1WSI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781624113; 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=Rv29csQEZH85cVfCfb9eY61DceKcy2/QKf0FeFbH1qE=; b=IoFAvHFNhcKKkt7AMLzNur8xABTP+1F50zZ9/H4GeoU1OokWGQgjqSGJ+ZRm4sIB1xKzfsq4/jc4ubx2lVk5TEx1Uk8wgWN163LP4pOQXmD+lcaLm4FGYAtHx1tOfkbcLEArfv2QaMQEOvOMsgmWuNBnmyVnEZ7rtv+SQUM0GRk= 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 1781624113265427.82109054929015; Tue, 16 Jun 2026 08:35:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wZVoU-0001LM-Me; Tue, 16 Jun 2026 11:34:55 -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 1wZVoR-0001Jc-AT for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:34:51 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wZVoP-0004ue-Q8 for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:34:51 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65GDxbd7769696 for ; Tue, 16 Jun 2026 15:34:47 GMT Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eu2xs9ynk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 15:34:47 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-6c6dc39a6afso2024685137.3 for ; Tue, 16 Jun 2026 08:34:47 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49230a58fddsm69670755e9.8.2026.06.16.08.34.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Jun 2026 08:34:40 -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= Rv29csQEZH85cVfCfb9eY61DceKcy2/QKf0FeFbH1qE=; b=p61+Uabe1rTYRdzW N2h5K2X4MRPaePmcjOZ5Qr1FrzXyLAZDmDFL21oc3/v2lwVtxM8+VTbAkrzCuEUV v/QRMYRoon09a7MOYFYq/DrPaMzr05/RRRSm1v0Sad4U25orqjio5UYbJAvn1z3e WLk433OUVZmcwbKRxbOPjomD+jeuE7z/2NU1/F5zhc7RmNEdAlk9xicT7t5trohI uONCmKi3Y2WqzX5skjAyj9PefVCbKmPwPBS904HrErxFB0jHG1iLxgpoHH1xiE6h 5xZVaI4pNmzlLJItZ2znWYl/8D1+89OpmoZ2MKWN8DVu7CdmKNVUSH5yj2T1cNOQ lgPQXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781624086; x=1782228886; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Rv29csQEZH85cVfCfb9eY61DceKcy2/QKf0FeFbH1qE=; b=EVbQM7GCK+Pg5czwhvEoi4+wrwI9kTeZqqJs51rsQrsPwK3Z0M2uTF3rX0e79xhPZq kffr16N/lXgkROEpxQdQyEWtsDrvJ/OtO094Anh3AtRYxuonueWr835wWEY+V7Ry0YQZ iVF+JEO9YwXXIYusd3wJcUSFwIiPdDpiwomS8Q3hGqcm5Ewx5wGaP96MWir408/X5/M5 QMhyP9GyQ9/Vu6/GlBceBN4Vbif1GGyO5UDrRgnQ50dLCNjTctC+NrYQ0mDKEIJ4o0hg zd07fhcvLObcRN8nV9dDnqhUXyl4MNOdcyK3js2NNpsGWl37JfbVEK3TrwvUOvXhfOGA EOGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781624086; x=1782228886; h=content-transfer-encoding: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; bh=Rv29csQEZH85cVfCfb9eY61DceKcy2/QKf0FeFbH1qE=; b=qo8dSCNI+q6npLUn15z3AO8agHj/JZeXgTMVT/9ywwdctnXDgXTjXJvqC+67ld1y8m I/9f1FekXWWtT7bYt9IkJOX+1na2c6sS/Y0CTk1up/0U6yuMEezZqCkwDEppkT6/SyVK PgvusUVOZWKAi1CB2x2a2KLLGkKIFa95dQ0jeFPpWf++A0G6wWhNLpeN65MXJ7P8SRTQ teCdiiC/LVIfOaonRrX9PGF89Tlu4nEidl0jEiOrMMBBIPvjOuj83oI1vHWNjqREYXUL o7rMXT8CH1dFLfIND0gT7S6UyYiGMaPEIr/7GKE/fgnuSqKOUbV8HufWCIJrjXFIsrTR 6dfQ== X-Gm-Message-State: AOJu0YwjQaLfu0lEXw4fTtVazkauMKjYmZc4iA2ag3aE3d3ESoRV+YJO bhvSCXbXCKyFC7Oiy0yYWeeJ4J+ium3SQGXOOl3mk/1Dv35aqyqkdtoIkx/ZYUCRVYO3R5mwYee JrOn0OhjbKrO3ixBaX9+19hK9Z9/YN0icD72sKr6qSuzB98Tv8oMnL7I0zMfnum0/cg== X-Gm-Gg: Acq92OELarlzyG66D3HO/cJq+P8K0ihRg9DaLkpkIjvxuwtcY93QBkLy18Ydwk3X+3X aGLRj0YCf/bqsjTYuohvfM4M6tc6KfSi/BwTst9M7BZPTTYLu2pcEf3rUz66EF1IUORXrORFQcy dCfBD8n0N9+kC7PD2B2q0u65wKGaee1bFO8HeCZ+64cBKAtIybWBtkMV7xNN1qEQ2nJRsQDSS7v Wsl4acFvK960o/qTa6HvuoHkGaoeyk5/YpRXHsrAe1Y1M/uYjKh1+d6eW5ZMcs+4A3vYDT1XWqG 7n9/y8hRNQeu13mgTlXO9FhJ2i5y6v10GMCkCvWX7pGHzdubxQWLm6humgvFk3hSI0bKLZMmHn7 E/PFOrHmhzBafEXIWGHsLpJPu5tdxGZmSvZZhJS6OInqrlilu+0ggRGIDMAEsF+zJ46aMiXemMH ALdz4= X-Received: by 2002:a05:6102:3e1a:b0:6a2:cf9a:9221 with SMTP id ada2fe7eead31-71f60c24a5amr8535448137.20.1781624081709; Tue, 16 Jun 2026 08:34:41 -0700 (PDT) X-Received: by 2002:a05:6102:3e1a:b0:6a2:cf9a:9221 with SMTP id ada2fe7eead31-71f60c24a5amr8535377137.20.1781624081261; Tue, 16 Jun 2026 08:34:41 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Maydell , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/5] tcg: Include missing 'qemu/bitops.h' header in tcg-gvec-desc.h Date: Tue, 16 Jun 2026 17:34:27 +0200 Message-ID: <20260616153432.92939-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260616153432.92939-1-philmd@oss.qualcomm.com> References: <20260616153432.92939-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: yyyfsQFLj22JHdRD2lDMj6jqSbdJDACK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfX3tCnQ4S1wgt6 MYLoKiNKDr7bjWAkfGzBOwSywvTcLMi/knVur9USXEWG1AuT+uIu4THfE1TT63EvSS2WN+d0ifD gcgB6ksQ5eG8T3VAwei4emoZnDt1ggcoxGSaMdu3v8dBLxcDXoGF2ymSTjVK0lvqMuXfQBSLVWy 5xp3dVQRKpf2YDf+xUgNc4s90rG9EkxKYFcAPmJ5Paih0p+vz3NM/ANvOWrcsoWzys3KoD48t1D njBJaZLG22uyei8ZCmHPU1lhYNQb3+HU6v/7r6W84f7tjHMHyBkL3OaV8KCmwskacl9y/7prIV5 m3qkdvbrIGo3m/eLMGSKEcOsg9XXlvyGkONCGOuaU4ADYkoiwxMHzDZflxr8UG+7Fmh6isYfhe0 d16emOh6XVAUxl5oKaQeqP2N4SiRQ4O7VcA5U2+1alY9+ztlf0tEc8TO3bjJiRDMMad8k9nNsAs r/ZyTs/N+CDWBguqLTw== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfXzF0YjI+dFDam 1EMi03ILv2PPDHkqK6xWtuuwVPsyTYL9oAeW4YRRznFDqpNEZc5r7qW8NQ+P0rH2xZ7SjW713Br AILljrIIGoWddKBfL922ZAfR824QH2w= X-Authority-Analysis: v=2.4 cv=MdJcfZ/f c=1 sm=1 tr=0 ts=6a316d17 cx=c_pps a=N1BjEkVkxJi3uNfLdpvX3g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=qZliQKhbN-6Z782_CFEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=zZCYzV9kfG8A:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-GUID: yyyfsQFLj22JHdRD2lDMj6jqSbdJDACK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160159 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.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-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: 1781624114012158500 Include the missing 'qemu/bitops.h' header to avoid when refactoring unrelated headers: In file included from target/arm/internals.h:34: include/tcg/tcg-gvec-desc.h:48:12: error: call to undeclared function 'ex= tract32' 48 | return extract32(desc, SIMD_MAXSZ_SHIFT, SIMD_MAXSZ_BITS) * 8= + 8; | ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- include/tcg/tcg-gvec-desc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tcg/tcg-gvec-desc.h b/include/tcg/tcg-gvec-desc.h index 704bd864549..94c7d14b264 100644 --- a/include/tcg/tcg-gvec-desc.h +++ b/include/tcg/tcg-gvec-desc.h @@ -20,6 +20,8 @@ #ifndef TCG_TCG_GVEC_DESC_H #define TCG_TCG_GVEC_DESC_H =20 +#include "qemu/bitops.h" + /* * This configuration allows MAXSZ to represent 2048 bytes, and * OPRSZ to match MAXSZ, or represent the smaller values 8, 16, or 32. --=20 2.53.0 From nobody Sun Jul 26 13:28:54 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=1781624141; cv=none; d=zohomail.com; s=zohoarc; b=IJW1/ESbcFe7ZOOiXYrL5+3A+cu/Dac147E7sOXN6A6RBG3imKR+v1I79ruwAfqVIiUOANak8nkrIg1dIk8YnTGurPSAXXp7tdOBFRPU88g3fHp+nAwCyxMvIU4QLhzIwnossJ+RlmAdJdu4YdBtnq5jBGrKHL8ItCrMc+Uod2g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781624141; 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=LeNV1xXFFaZiL+0/3j//h+tIzT2zzLnWROSmDnlwF3w=; b=apVlko18pl233cIXeUMUcwUGhpQrughtwamoyF7ErHs/Db1K0cbQ3Uz42pdhuu4KJ8lACiy7REvY+70CeDbxXSiwNaGilC87GT/fGE12oESk6VUUVliiaSKqN0VHuHdPecr84S07uoBgn8CjAFmBCJnYfbcqREIYztwV46lOm20= 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 1781624141025358.01782566614963; Tue, 16 Jun 2026 08:35:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wZVoW-0001Nm-UQ; Tue, 16 Jun 2026 11:34:56 -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 1wZVoT-0001LD-4A for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:34:53 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wZVoR-0004v3-EL for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:34:52 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65GDxWd61934623 for ; Tue, 16 Jun 2026 15:34:50 GMT Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eu3ct1sd0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 15:34:49 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-963b11561bbso1894520241.0 for ; Tue, 16 Jun 2026 08:34:49 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f2ce361sm43497826f8f.31.2026.06.16.08.34.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Jun 2026 08:34:47 -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= LeNV1xXFFaZiL+0/3j//h+tIzT2zzLnWROSmDnlwF3w=; b=QtsLKwvUcby0YbZY xwVZQIQXHbXx6irjzjKQE7rHH2OSgIIxSuespTapWIeIiToG4jlAkRm73gKaGmAA s4YFpupgvPFtP5/RZLdAPvp/lnMEMTdjbFGZga1Vwe3oFVfMcf3NwHABPnIGRyjG iEEWOxzDybzsQb9jlAVMEgYzUkzlLoIPqdmU/GL/HPRnqfQn3TVAw1hYE722r3Zm b38qnHOEgmPH7Fq7NsrHYZ9lPUM82qj/DhjJ1GjXLSjZ0cNHlDsuslQLB1Xeqy5v 6Hm1bb4JNHrArjtek1xZehOTFNJTdXysocD73IXbY7nYcrHC+VREKhcUENKyyccJ B9nghA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781624089; x=1782228889; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LeNV1xXFFaZiL+0/3j//h+tIzT2zzLnWROSmDnlwF3w=; b=TlWAQmP5CRTn4zPPD99gPw3w2dCasJdRnShlo9VxDJuCLU0MtoLfmU1FkpkT3R4NeD snXRZjXIFnAea0Hy1nZJv3Bb5yDzKFDnMQW53KQAEZ6weWuqXwLsUT7UD52el39IUMho 4JhkuJlfbgphLexS1uHJenznCxeKEvUm8Bax499lyLnQaAcw5eMbYR5RxDt8O7rX32MP aUIxuGwH/72gpBkQC3Ncci6kMEtG69gu29E7jafAg/3B9txYeOUffsHCl/zKyFBC4otK wDAQqwWxafj19B+1kem6q15+3FlD/ismnaDjLpAdtpfw2zzj/HbpPncy/DbWAJVz0sas NSWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781624089; x=1782228889; h=content-transfer-encoding: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; bh=LeNV1xXFFaZiL+0/3j//h+tIzT2zzLnWROSmDnlwF3w=; b=C/oWvhWz3j0m/bVvWSe+PnfI3ImsZ7n234sUf+y5KOop6zs9kzx5JsBBjq5Y2Qs0I8 st1wzCnLlrJy+iBBdDb/CDVESAUadkqRgqUUPFS9DdhmIqRbqze20g8baSo+I+amt0b1 cyn3MiHctyEX9OcpXaXYzEmSgXJ3s9N3jrrvjPUZDmz/CwF9so2AVQwjwkKy9e+Q3ZTa pachO/cIWKkjzbT5fCC0UYGFGWKcfpoEMvcT5onr2SfiF+fpptWSuEcWu2KaF2H7HMj+ 7Mi+80ItKAFmQVkVrn/HuodE2c8fMdIJh3HYkpiScDAdtWBfOXQ6MefW/cFZDrQLmEV3 RSeQ== X-Gm-Message-State: AOJu0YwQgFXE49rC+50+wtjGIx4hj2SwY4lXP37EPaZsqtOyRRN218+B TDjBZKFzorwP8e3NffROCJ3MO68MQ2lTS0xw+6YdiSzQlX9SZYlX35e/kkIeeFJ2kjKFLc/7XF3 o6FUaEPc5qP3sqRDT2jgDIG6ZIwuO1sSVvsSS/MpTUVjk6SekAH+4ESVDrAjANzr7zA== X-Gm-Gg: Acq92OGFZ4616xEUfIBoMQsrcacWeE3i5e2n5VaJX8JA6CiSy+ebFDDxYY3YBCHHGY7 RqgJxjH0w2A9EZaYmBmhX/z63jKuGf2v2FP6I4jF17B7WWEFEHBTVblSqkIcApJTCbztRig0H4w PN6lLzjQc8rtPUz7R2F92Vls5Oz4viql1IaEF8MTNYHSakTYO24dmXV7E8RMlVOygyf1gq77XSD gB6iCv4lgdr1Q1PVrgMIj2vLlHxyZ3U8TF1SWBBcFBBYp2AviCP4wDLRomo15AyDfLEMcpIns2h hyoSbh6oTBhYuMnl7SEQxcG/uDCby6cuIJHs3qV3VKyuUswunyqN09ZWLOC8b5x7aUnb1c54xq2 IslBJ8q7Isukq8vrr06PbGwjn9s7QMKMzlUlPYxdGUyuD7hvvi4YfqxLkW/1NAkd1k6vfew3oLU hUPco= X-Received: by 2002:a05:6102:915:b0:639:43f5:1fdc with SMTP id ada2fe7eead31-722da9a9bdemr2026553137.26.1781624088724; Tue, 16 Jun 2026 08:34:48 -0700 (PDT) X-Received: by 2002:a05:6102:915:b0:639:43f5:1fdc with SMTP id ada2fe7eead31-722da9a9bdemr2026491137.26.1781624088277; Tue, 16 Jun 2026 08:34:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Maydell , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org Subject: [PATCH 2/5] target/arm/ptw: Restrict PMSAv8 code to TCG Date: Tue, 16 Jun 2026 17:34:28 +0200 Message-ID: <20260616153432.92939-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260616153432.92939-1-philmd@oss.qualcomm.com> References: <20260616153432.92939-1-philmd@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=SoCgLvO0 c=1 sm=1 tr=0 ts=6a316d19 cx=c_pps a=UbhLPJ621ZpgOD2l3yZY1w==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=wSUaFbrerrTpWb88fUQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-GUID: vANujoUmE9QKeb5ShfK3M-_9CKlCbXKY X-Proofpoint-ORIG-GUID: vANujoUmE9QKeb5ShfK3M-_9CKlCbXKY X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfX4kVB3BMIpGFG LmzXnHz8YKRhL9uz81TumULIVgnsArM2amx63nf7b8K6pVBMNNg/s2fAMWBkt688+Slb9g5or9z KrgUOk1EQiBzwOr4pREy55dZ5iW61Kv6Wu+HJ+liSouvR83Vjn0s24Hf0eTIpur9eIU25oPSbxr 6H9riWboOAaaq4mxZUCapi311LrV4hcuMsN+bEOkdNVWmK9kIaOZq6Ggd0nTXoyZqmy5PpVIPCt /iidfEboSVbWMJF53I/e1AW14mUMmLMkq6/mnMRLVPzcXod5IBOnNtSk4yaUsno4de36ERqvb4o TbgllM1slynCA1cNeq0M6KkvJ+uYw3SfASb3w0vJVoLVmwW+4DUKVaq3eu3SivOYfdnhB9oq3C2 X2l4cKoPrIbPOhpzmkQ86XC1Yy1WPDtT11NMUkU4i87RqIdFklFlIv92oYGOdW6N9eTwSRrFM5S mzpYWxfa2gnGX9hMo4A== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfXxnhLFQtj0MLP SHZgxzzFbBu6i/0RIlJ8Cq6BK6GXnnt3JyMv8SZI2dz8MT5ol1wmDhL1Eral2w8wDEyF91lS0Cz oQ4IdgTGLrn3VyEPtb5DKVEW7Ts2Fmw= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160159 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.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-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=unavailable 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: 1781624143239158500 Armv8-M Protected Memory System Architecture can only be emulated, therefore restrict it to TCG to avoid compiling it on hardware accelerators. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell --- target/arm/ptw.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/target/arm/ptw.c b/target/arm/ptw.c index 8b54018c988..1470de30108 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -13,11 +13,13 @@ #include "exec/page-protection.h" #include "exec/target_page.h" #include "exec/tlb-flags.h" +#ifdef CONFIG_TCG #include "accel/tcg/probe.h" +#include "target/arm/tcg/idau.h" +#endif #include "cpu.h" #include "internals.h" #include "cpu-features.h" -#include "target/arm/tcg/idau.h" =20 typedef struct S1Translate { /* @@ -2818,6 +2820,8 @@ static bool get_phys_addr_pmsav7(CPUARMState *env, return (ptw->in_prot_check & ~result->f.prot) =3D=3D 0; } =20 +#ifdef CONFIG_TCG + static uint32_t *regime_rbar(CPUARMState *env, ARMMMUIdx mmu_idx, uint32_t secure) { @@ -3247,6 +3251,20 @@ static bool get_phys_addr_pmsav8(CPUARMState *env, return ret; } =20 +#else /* !CONFIG_TCG */ + +static bool get_phys_addr_pmsav8(CPUARMState *env, + S1Translate *ptw, + uint32_t address, + MMUAccessType access_type, + GetPhysAddrResult *result, + ARMMMUFaultInfo *fi) +{ + g_assert_not_reached(); +} + +#endif /* !CONFIG_TCG */ + /* * Translate from the 4-bit stage 2 representation of * memory attributes (without cache-allocation hints) to --=20 2.53.0 From nobody Sun Jul 26 13:28:54 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=1781624113; cv=none; d=zohomail.com; s=zohoarc; b=gtey3zLdx43n7YdJoBzScCY3d3f0/iYGjXjzw9DmobkQsmq8eOlkk1mL436cBpkxgGGJR7q+wWqUx8pfazET8L1hRlr+Qvw/rZRR0PgsAxnxsPqz4bZLOl9XY0+NzzD0ewZu+Ijb/wzV60QMcFaNged3dg5HUxeh6q6FHTEDgu0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781624113; 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=Xeu8tBqbijTrsroTzP2ZlpdNk1D/p74BXzHdUiyh+qs=; b=QdTdTrjAC5EW9qqS7P1g2IFKR7ZutVYBKYs9KoG7YdTsXnzoCk+uEa8XS3euPaX2bMYePWH53OWgYEyWChLOXnGBT4dQHMiaNdezSgkn9OxcKG8bcEORA4r6xaoZJ/bWwcFlQdt6eZ9+hrVIHjgjB59vozaSgUzymzu7eqPEm2o= 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 1781624113634312.39023153519554; Tue, 16 Jun 2026 08:35:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wZVoc-0001SJ-D7; Tue, 16 Jun 2026 11:35:02 -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 1wZVoa-0001QQ-0F for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:35:00 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wZVoY-0004zU-7q for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:34:59 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65GDxcFA3432049 for ; Tue, 16 Jun 2026 15:34:57 GMT Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eu1762dre-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 15:34:56 +0000 (GMT) Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-7e6b73b3920so5559776a34.0 for ; Tue, 16 Jun 2026 08:34:56 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f2c3782sm40578196f8f.25.2026.06.16.08.34.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Jun 2026 08:34:54 -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= Xeu8tBqbijTrsroTzP2ZlpdNk1D/p74BXzHdUiyh+qs=; b=E+5IKGA2lzwhmNYO CsfkzZztk7xWYJW47qpO4Y/toe22s06V21aWReCQm+IUdfrWu/+QudpKv595NSg7 SrovKzNfAaijxWwH1I9Lsqdggbbt9EH4L4tmok0R9hZJVbPYNL2pJ+H61UQ9hZlB W+j0TjjLPCVuulI6RnqPxk6vRcBK2wmvwqsRMgY56JSyk8boXxS9PCs7c/0mOIWV O1jB6eiQ4czYvcW+mV3ZV6dfPwryKVR92Z3hZgXXzbDquFr700vm6BnHNdrX4B1j xc8rKBKx5sklLWewqq0+SHGcRrBv38iVDiajUFQNU4HVs9+Y62/qKjqpik6FbNxQ gtS0VQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781624096; x=1782228896; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xeu8tBqbijTrsroTzP2ZlpdNk1D/p74BXzHdUiyh+qs=; b=JRb/kUk3G47m5F1hC23QBeY0FX4MePyk7CY9pYG9EhmhYahIjfbG0TInFep38g/Zc5 XLQLunlDKWJpjTpxK1ml+OS2p9RZaGCsZlAx3ri7gIshCX35LnarBywcrMBMHGaGorQu WSSZcq6Kr9oL5rUbooC45cRfwa1OwrlUfuV7avgYqNNVJG3x9bJeQ21SR7Dqx9SRh69Q G2I64VUVWSe/E/9UMKbaxrF7GSj10V6fHvETUljApyW1cr2/2Mileobnd3fVIt+hAKr9 mQCQgF1cNsKbZ5cFFTPDhVaUM2uoK6sCpQbvN2MhXCRa2uu9KZoPzPfLu1dsgiODHap5 MgvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781624096; x=1782228896; h=content-transfer-encoding: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; bh=Xeu8tBqbijTrsroTzP2ZlpdNk1D/p74BXzHdUiyh+qs=; b=sKQGaxdpib6xT2WhMFbPkN53fRdSITS7K5iAc21c6jtGiSdq1l3HSJgXQkY9SffGe+ 1Gz1B8qE/Z7OhGwvs/Vu+GZIu4uEzx7uxXgMCfV3Xgqfjb00ay81pkOwMDWLGqGcKM7B gWHXAkMMVk17mrbhZNu6JmD5/6MwONq38jIc3LIj5pygszaZwmllBxRUABwDF80bBiY9 ZJkveKJhCViyVuavBq3bWqlAJ3gbY/RhAQ4BIya6lkcKghUnbVCsrTyA5WYmoQOqyuHF ZQtU234HDYJDpnuIuZTpnJUVug83Iqvi+r+/qHODGKZAzO91Uj5UekuYd7OZIK19dSoE FlRA== X-Gm-Message-State: AOJu0Yw5vuowEJkdgTvPAcwNb5e4SbQwbxlAkk0YNnk5xLNl8h0XjmeK jmmi4v9P9Acjbg/Ovs9bJhsDc+Wn0ad2TJI5ll+yj0+6e2E2iFj8n+T05FRgyPX7LE/5e7bbG1/ Fd95JWAY6vgI1P9B2ughfNarRYqEAsMmMuTDd719cQ6xrwGx4YHqwvI0KbrrIeSo1TA== X-Gm-Gg: Acq92OE2oywZ/NqnhW8dHBt8n828DkswQvw0EvSCZyCVANenQD0wQ5elnqSoEHKVacF rYiTuhkRl9HTVFTXH7/NXPIGtup1UhCPjBA16L9QTtCc2bt5PhCYZzW3Ap4psBOf0igHz9OJfJy FeRIz9ZPUn38bhbRGol9C/246ZAwK/NdM6mIVxMpIbsyVl3b1eE/hpnnGiXuUZibZovNMq1t5Cl ALm4r7mC+aDhPTr/QESLQk64RH+h5K93Xhi4uwswmM/sBvwTivGrtPWpycvRebLgdvCNWCmT5hV gFoCmiZUuFwgI9Ca5FgseSCgJqM855a9U/thxmVB0EzyNBwP7lo84FQfmqmkDA28IFvsrgMLcpG S6Z0BZqPIAbnukj0rghIQbrW9rI4C9nOO9zvH2uqSmuxrzJm9FZYgTtjLl3u4F65X7v0Nsd5xb7 q7VaQ= X-Received: by 2002:a05:6820:807:b0:69e:2cb4:2ed8 with SMTP id 006d021491bc7-69eec9d8ea9mr8552608eaf.26.1781624095980; Tue, 16 Jun 2026 08:34:55 -0700 (PDT) X-Received: by 2002:a05:6820:807:b0:69e:2cb4:2ed8 with SMTP id 006d021491bc7-69eec9d8ea9mr8552587eaf.26.1781624095564; Tue, 16 Jun 2026 08:34:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Maydell , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Nicholas Piggin , Chinmay Rath , Glenn Miles , Harsh Prateek Bora , qemu-ppc@nongnu.org Subject: [PATCH 3/5] target/ppc: Restrict TCGTBCPUState to TCG Date: Tue, 16 Jun 2026 17:34:29 +0200 Message-ID: <20260616153432.92939-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260616153432.92939-1-philmd@oss.qualcomm.com> References: <20260616153432.92939-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: drL4Ug6ypWopuC-8Kbqc0sSvT7_nK4CU X-Proofpoint-ORIG-GUID: drL4Ug6ypWopuC-8Kbqc0sSvT7_nK4CU X-Authority-Analysis: v=2.4 cv=I4RVgtgg c=1 sm=1 tr=0 ts=6a316d20 cx=c_pps a=7uPEO8VhqeOX8vTJ3z8K6Q==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=HPnlhGH_Al5Q2uv1BhQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=EXS-LbY8YePsIyqnH6vw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfX7BQOsh4cUpN5 12SGcLplhfwnADtxcORtwDw/G3Yu9m4ZF2D/WcEunBHcYj/suhHOLl5dcG8lCQtXV9LU94yzHc7 ngSPeo8Xs7l24UnLMTz8ZZMwkEvOWVA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfXxFQBYZreem7p iC+wtFtddaOqd/ZpBYlEYgkaKNW7fpk+SD1HxYSUeOzPiFQnFYCdiH5EN2EddeKbKiqsQVm7WhW bz4DyoJk/klj8kc84FPAxd69Ix0rYcncxlhQP+nzRwvEehBfhRrZYKu/YhQR1m4GaP4DmagaXFT NM1y/Z53L/yWGfPPHDnnstjI75sltDbPVZbIDaXID+An61phX87I+BCXhQzJAIsL6AQ9Kl9KCYP e+8Dqsekp8sXTN9Yy7QJu+rsuo86TeDBhWEc4aG00HDkwkdS3wwPi3KIXfv13yw+aw8s/Vt28rz uJJ3Vg1bxbx4VYrEkugEBK5CKrTe9cIoAvOEd3M0SulM2GoZs5aigH72KKgz/P/oLaA21vYokmf ziuZLMzaoabIm+uNbVu3J8PGtmEsQM3Phr1gWfvGpzDrXTSzcIQo0WppSMV9/FaUAmiYy+DSZS+ barm+XUjlc/xdguZHZg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160159 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.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-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: 1781624114039158500 TCGTBCPUState is a structure used during TCG translation, therefore not needed when TCG is not available. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/ppc/internal.h | 5 ++++- target/ppc/helper_regs.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/ppc/internal.h b/target/ppc/internal.h index dda23b66096..a3bb12afd93 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -22,7 +22,6 @@ #include "exec/memop.h" #include "hw/core/registerfields.h" #include "exec/page-protection.h" -#include "accel/tcg/tb-cpu-state.h" =20 static inline bool ppc_env_is_little_endian(const CPUPPCState *env) { @@ -326,6 +325,10 @@ static inline int ger_pack_masks(int pmsk, int ymsk, i= nt xmsk) return msk; } =20 +#ifdef CONFIG_TCG +#include "accel/tcg/tb-cpu-state.h" + TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs); +#endif =20 #endif /* PPC_INTERNAL_H */ diff --git a/target/ppc/helper_regs.c b/target/ppc/helper_regs.c index a07e6a7b7b6..acf74c543a1 100644 --- a/target/ppc/helper_regs.c +++ b/target/ppc/helper_regs.c @@ -27,7 +27,6 @@ #include "power8-pmu.h" #include "cpu-models.h" #include "spr_common.h" -#include "accel/tcg/cpu-ops.h" #include "internal.h" =20 /* Swap temporary saved registers with GPRs */ @@ -261,6 +260,7 @@ void hreg_update_pmu_hflags(CPUPPCState *env) env->hflags |=3D hreg_compute_pmu_hflags_value(env); } =20 +#ifdef CONFIG_TCG TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs) { CPUPPCState *env =3D cpu_env(cs); @@ -277,6 +277,7 @@ TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs) =20 return (TCGTBCPUState){ .pc =3D env->nip, .flags =3D hflags_current }; } +#endif /* CONFIG_TCG */ =20 #ifndef CONFIG_USER_ONLY void cpu_interrupt_exittb(CPUState *cs) --=20 2.53.0 From nobody Sun Jul 26 13:28:54 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=1781624130; cv=none; d=zohomail.com; s=zohoarc; b=EkHNM3nOLewfnjr/LLV+hAlaMODR/fOI7L/hyu9iiH6wIKY9IXl7VgCznOXwj5advcmo69GZyvroRyh98syWtvIDVH9Ci3x0jBM2C0kI3XV1lO65LsfOLpHXgdcXgmiTvKV/FeAxfMjR5VnuVpGVlUYvEk+xSsYtcFdgqt9ji84= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781624130; 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=quGeWyIj+ay0uGXkySM3O/jRcX2BsNxbJSEHdVFTLB8=; b=d1kcn5CDQjbeSWLbIv78F5UaONqigLp7nnwNVx1kCL2MSZWQtrtkGuAEGU/G/F0/Qlx46k8Z1t1a/uxnKm5fRsfK2PoRujKH08IrCgI2s49c/02KH7RdYNZlU5gxwbMV9FTg3EMjTTi3MLYA68qf9INMl35U+j+rZRAZTi47TLk= 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 178162413053112.394066741894562; Tue, 16 Jun 2026 08:35:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wZVon-0001xG-P8; Tue, 16 Jun 2026 11:35:13 -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 1wZVol-0001lq-Nk for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:35:11 -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 1wZVoj-0005FQ-QM for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:35:11 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65GDxaBT3731593 for ; Tue, 16 Jun 2026 15:35:09 GMT Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eu1yst5eb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 15:35:08 +0000 (GMT) Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-59eb3f8969aso2925331e0c.0 for ; Tue, 16 Jun 2026 08:35:08 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f26393asm48210285f8f.5.2026.06.16.08.35.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Jun 2026 08:35:02 -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= quGeWyIj+ay0uGXkySM3O/jRcX2BsNxbJSEHdVFTLB8=; b=Erm6BYKzAVZSZUta h2XedqyI/G8jnzM9UTvUyPBPif4FiABxXaQUz/Z0xqXGyH5lnBTOT9FFU5qzWLmg d19pcZMXwXmoIYTmji5E8m6MFGdQ5eTOnq+I36it/Q5LPxs5DX386SwDunUEudXN O/put5VwAp+bNE+wff0ISv9sXr57Yj6ECuxASEPe9a+kzPnyALvWNw5PoqzLlugo Ji/fSrVxuXtRqsB7VP0JfmWzrZzc2twY9ZoHD5RCS4QkyCkERYxqdPVaHU20QpvF na6J7Rpk/yUnmXp823RH9MxR0M33lhpGm024tRS2wIqiXePOCJW9TAknoom17Mxi UBPUxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781624108; x=1782228908; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=quGeWyIj+ay0uGXkySM3O/jRcX2BsNxbJSEHdVFTLB8=; b=GkDjQSlA0ivZNEaOwia2Sq8j3dmZaPy60jCm8jbLP0c24BnCotivVeIMYns8/H7/EW ORS4Ub9dHXnApboevKqn0v0tb5oHt74FUrJuc9SS1TXCPWFBrXhyMSdAFK8lahe0CreY 8vt/mFOBX8gy7Rap1rj3p1kb+rdmiBmp7WmXifwaTgQ7eGrBpQj7yMNY/AeAyOxrRR1n 5GbW7uD77tz0BU6+VlU7V+eSIQMTEYQNAzdC8zucUBfTP5NIetwK+pr/sQ8HcjgbLFDE OQiJF6Y9v0DtqkUQPd3FhtMCR2mmVAksik1TxXrMlwI71EdDlGd+EJ6+nVKkqLzOgIBb GiQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781624108; x=1782228908; h=content-transfer-encoding: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; bh=quGeWyIj+ay0uGXkySM3O/jRcX2BsNxbJSEHdVFTLB8=; b=BbMai9VENl3txuZY3tOa8+0ayGOihombEfJjYUwuNQyHQNgs+EOoMp90DZjnp/6bk+ qO9enbo5n5rL6RfZp34M1Wr6YngPYZ4uAOOYnA/n8zbe/6Hc80rsp3STo6M9RLWLBa+a 9A+/QVvu7btZ0qHgf8twgEAockT4qTVp2oD/qOI2DJg5HWA1slniuFoTUou9MF0EPpEv q9ekxUGMYyynMvkcYiYwgXzjREM3UuwRU70FcEr/StaTpgczMo4xEMdowLDREBywsNVE 4KiaMQwn/lz7F0MWOGMmsI7pTrnFTRhaJm8aIGUUaq3Ig+GgBmCZumIDt+3i5Y7gfCpt c+0w== X-Gm-Message-State: AOJu0YywrID/KTFkZV4IxMCIRQ1VrUjlEWSdcJ888qyeJezwwpzGvdni GIOHzfvznQ2mbRwQIKiPUmZmeP4mKAmFh6LqH7I0ie73HOGCL2JcbEXbFfN3chXSi8xC5FuoRuP sAaC9nTt2+JMo/aSq80LAo47dwamMC6KaKKgbR9BVPDVkS3ECo1PqvbYKn6jk/Jr12w== X-Gm-Gg: Acq92OFmtHEl3cdrXdN5nKGuyJdGPeHG6LWtFsaduRWFGDKgGX/OOVy0natYziBWuR2 Xnl4IQLHIzMmt5Q/RCCpp8FuytDr6JGSubBQvYiqTW8s8paq9tY0oZ+zNYm4xPidimF2/DGFSnK MUOmp7bpepr/R2ciQBnuOOwtK1Faep3mF0KVMdASFDUfzlp1tQ7ViWrz8grdAZjqVZdhEiaUXEw CJQ2KO/3uIBbokmZwN9VoqCCOrnE+0oiThpliT4Is4VgZfQawyxUcCRAqA0Cp2zqrtscefYWGbL FrJI7AJ9EyGS0QrKhfnBHKC2S3BSZ8U1feoSBnEV2PhVxBYpfHIApx3u5pE5YhTKcBtzXI1Kj6u x4k/NxUYfUpZ9OJYTT4pf3cdef3AHjlspfT3nyaZkkRHeaRyagPZspueKLWopKdwYhddU2tcqip ZzbOo= X-Received: by 2002:a05:6102:3749:b0:6d3:9409:d1bb with SMTP id ada2fe7eead31-71f60c13d05mr7776383137.19.1781624108010; Tue, 16 Jun 2026 08:35:08 -0700 (PDT) X-Received: by 2002:a05:6102:3749:b0:6d3:9409:d1bb with SMTP id ada2fe7eead31-71f60c13d05mr7775842137.19.1781624102712; Tue, 16 Jun 2026 08:35:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Maydell , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Stafford Horne Subject: [PATCH 4/5] target/or1k: Have exception_helper.c absorb exception.c Date: Tue, 16 Jun 2026 17:34:30 +0200 Message-ID: <20260616153432.92939-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260616153432.92939-1-philmd@oss.qualcomm.com> References: <20260616153432.92939-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: u9PuYID62X8n-yGcn7UyaLudkA4nviEA X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfXyJV6oEv4+Fol rkCUri3h0BWidxbmgdIEt7QQ+mUTWbHpslEDs1UOLsLR4ySiJfaX8U1WwXngJtcHHOwlBMBPq35 RU23vP7FmUMlAFzKkBI71IQAyAXs7ys= X-Proofpoint-ORIG-GUID: u9PuYID62X8n-yGcn7UyaLudkA4nviEA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfX9L65SDuGqTNj 0eBc0FHNI0ypTTXRuogphGlg6ws2fXJuRh1/t8rgey4Zfa3uJJ+u/nzI4Xzd2T5XPHG3hsFJfyy oWDj8sPZXFKGmj5Fwb6x+xS+lrQ7Yon8S35ymumxcYncI4QVwEdUxNsbQcGRvnzL3oiWIm+uEj+ k7x9MBydcDrNhkJhZ+WS3cXnjy6Ka/EuUPufrq3MTfx0BhCtjRi8I6fyXJ9Qe7JWtnIJ+FJGppe rZeWUu5uUYgJtp28UwIKXmdETmpEClwv31F8PrC+MmUqNgE6YI7Cn14KypLE2I5Sk+LMeaHbQdO vZ70KLOe+S0NnkLH0q4rq4x7SmwzU+Hv2P1a6Dxktx4VqNUlxrtGRm7PY/JNpAAT4ARSzehE9f9 FgA4fuzXmF9ST/Nhr6Dx77u0qj6xZbKB7bU5FJcByzibERcMsvfeFRYvB6tMJJCm9mO0WtCrs2F WkuSKHRb1rrSndQS9dw== X-Authority-Analysis: v=2.4 cv=JJcLdcKb c=1 sm=1 tr=0 ts=6a316d2c cx=c_pps a=+D9SDfe9YZWTjADjLiQY5g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=mDV3o1hIAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=GxDvOs8Khul7NjIAD50A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=vmgOmaN-Xu0dpDh8OwbV:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 priorityscore=1501 adultscore=0 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160159 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=philmd@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: 1781624132192158500 OpenRISC is only available with TCG. No need to keep raise_exception() in a distinct file unit, merge it with exception_helper.c. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/or1k/exception.h | 2 +- target/or1k/exception.c | 30 ------------------------------ target/or1k/exception_helper.c | 13 +++++++++++-- target/or1k/meson.build | 1 - 4 files changed, 12 insertions(+), 34 deletions(-) delete mode 100644 target/or1k/exception.c diff --git a/target/or1k/exception.h b/target/or1k/exception.h index f62fc314c1f..654ac9e515d 100644 --- a/target/or1k/exception.h +++ b/target/or1k/exception.h @@ -20,7 +20,7 @@ #ifndef TARGET_OPENRISC_EXCEPTION_H #define TARGET_OPENRISC_EXCEPTION_H =20 -#include "cpu.h" +#include "target/or1k/cpu-qom.h" =20 G_NORETURN void raise_exception(OpenRISCCPU *cpu, uint32_t excp); =20 diff --git a/target/or1k/exception.c b/target/or1k/exception.c deleted file mode 100644 index e213be36b6b..00000000000 --- a/target/or1k/exception.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * OpenRISC exception. - * - * Copyright (c) 2011-2012 Jia Liu - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, see . - */ - -#include "qemu/osdep.h" -#include "cpu.h" -#include "exception.h" - -G_NORETURN void raise_exception(OpenRISCCPU *cpu, uint32_t excp) -{ - CPUState *cs =3D CPU(cpu); - - cs->exception_index =3D excp; - cpu_loop_exit(cs); -} diff --git a/target/or1k/exception_helper.c b/target/or1k/exception_helper.c index c2c9d136528..3e76acae9c3 100644 --- a/target/or1k/exception_helper.c +++ b/target/or1k/exception_helper.c @@ -18,9 +18,18 @@ */ =20 #include "qemu/osdep.h" -#include "cpu.h" #include "exec/helper-proto.h" -#include "exception.h" + +#include "target/or1k/cpu.h" +#include "target/or1k/exception.h" + +G_NORETURN void raise_exception(OpenRISCCPU *cpu, uint32_t excp) +{ + CPUState *cs =3D CPU(cpu); + + cs->exception_index =3D excp; + cpu_loop_exit(cs); +} =20 void HELPER(exception)(CPUOpenRISCState *env, uint32_t excp) { diff --git a/target/or1k/meson.build b/target/or1k/meson.build index 7cea45287a2..dba5044b655 100644 --- a/target/or1k/meson.build +++ b/target/or1k/meson.build @@ -5,7 +5,6 @@ or1k_ss.add(gen) or1k_ss.add(files( 'cpu.c', 'disas.c', - 'exception.c', 'exception_helper.c', 'fpu_helper.c', 'interrupt_helper.c', --=20 2.53.0 From nobody Sun Jul 26 13:28:54 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=1781624144; cv=none; d=zohomail.com; s=zohoarc; b=RtGalmPWyjLNfbsIlUAsDcO9Riea56aPEukfUh0o87A4D3S2m35jooecKEf5T5UrRz4eAbDnSDRHgqJ7m41rTBKIe5BmkdUqD32k4xoVALmxm3LZBFB5eZj470RJ9ncu1EfKTC2ZwjeMCNL67+sWFzy+ZGv250lGW1yG9w8Ez3c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781624144; 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=nYrBXz9JCsBBTqmEmF5WL2AQ9KJg8a+iVzB8DU5JPw0=; b=I44uoDhH+y1nZ9e0uL0Ic5gDB23SqVahZ0wM7i5/fowU5FCo/AzllbRkSwbBNzbKwbaGMxLCOm60xNZMN/zRYKKvzbArb8MMCsIpKIwey5R/5wqNel/F4D8iYGUNcO2XtcrZiAXiNnnZbSv6aX6Avk7h9WDbgO8Iag3D+BhloKo= 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 1781624143891532.7217861809162; Tue, 16 Jun 2026 08:35:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wZVou-00024N-AK; Tue, 16 Jun 2026 11:35:20 -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 1wZVos-000234-O8 for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:35:18 -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 1wZVoq-0005IB-SM for qemu-devel@nongnu.org; Tue, 16 Jun 2026 11:35:18 -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 65GDxlAl3970296 for ; Tue, 16 Jun 2026 15:35:16 GMT Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eu4dkhgrg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 15:35:15 +0000 (GMT) Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-5a10b940840so6046415e0c.2 for ; Tue, 16 Jun 2026 08:35:15 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49230a9a399sm64654075e9.14.2026.06.16.08.35.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Jun 2026 08:35:09 -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= nYrBXz9JCsBBTqmEmF5WL2AQ9KJg8a+iVzB8DU5JPw0=; b=APD+rZiB8jtSXB6p Pckjavi15oj1H91JiIPX9ZEgB5e1+/YU1roM2ItquBgd6eCpBqVWw7u73Q/UEpyo q5nmOZomXB3tPJGjrACJHYoJ1gEk3jyyModAomkSsHEqMeLkYwMXvVn5HHREruLu aGbF4y5umHjLiUlOKw1qBtV22fxHtFIPvftsQImZCDD910CFuO9WEbKlC5BpfJT/ 7VnJtviukH468r3CgHmTescZBUDd6pkrVoMpTjYEI2AEQNRMUHwknUSuW6uVNY44 6kcIX7bg+E7Aekidm95Gqt7BBZgt/QcKbXOEP98XhjXO5Lsos0Dlp9DsjwdnmsX+ qqQBfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781624115; x=1782228915; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nYrBXz9JCsBBTqmEmF5WL2AQ9KJg8a+iVzB8DU5JPw0=; b=CVhgcP6s/cJVsCgdAW/gHn4QxEs59W70ZxmOf//PXQvusi8KHuLxZCejWhndKtYqiG oflvp3kfboFZu3uX8n3eLSwXOfwfqXVcRpwjAnGY22P5YHtR9kkpn5IBrCJWQX8Ej9KE dCN3bs9KY+6GNPJQ3jECvBcSUoyCZ7FRyl/cG8ZV+Q0lb2ybe6yKNKzNcDnvwMSx1vLe 1wJ5EI7wWy+z9JRScBpOwcK9VfX1gCFvXd7+b22DC+WnaiMoDgxC1loH7qblrJY6l5Pi yuNXbVEL/Y7p4yeHPd/z02qHEe4VbuWX5/ORe73B/YsGKUATQNHpLaircWNTo5/bY2pA Kxnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781624115; x=1782228915; h=content-transfer-encoding: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; bh=nYrBXz9JCsBBTqmEmF5WL2AQ9KJg8a+iVzB8DU5JPw0=; b=UDg26dLvKJHnr4+grK55W13OrvMvBeJ9CgGAxT1GhWFLfVevxCGFYJ4Ru9AaGOnPfn EIA8r/+rTK+Q7t9rvtn1cWNRJn+VdCzuMnfObzlDRMS7FH+JxtKaardbmAqWa49DkauA zPN0555+LWYWuYwsDwRy80v5YmY+BiXqzRmBDajdWjV3t642/JDOY/zp1cPIoMUgwN8y ylbMXiCxn3QsNlEOWlqWAl6+eUVzo172o+uZbQr5rbTebQMqXJFSFWnPBq5aANVmLkzi HdOWBoFDaZoLUrKd13s+5lkNxTDRUhYH5wgaqR96Am3qVrQe0uSZoLI4/KjXKrFOLznP Blcw== X-Gm-Message-State: AOJu0YyQ5NjwrDOmEInLpzEAOXesBgdiEBDXm0smRJ09tGdRhbsF16E/ jSMBfiy+0+a3UTsJgq7Qmnpe+m/tr6FCuEkffyfH2q34qIdJqF+cSbRJCMiQ7olsS6lgY92INVK Dq+bqBj4wcGkFGsFjJDkS0R/5ijdQGMU1zw8wh5hxVCIWgD3JDVuaEiFNF6zt+PzGrQ== X-Gm-Gg: Acq92OHPJ0PFkmOriilMhUMWV2WWKyH7OhpTlxlw39RibjdFORSagXSjHXXyAD++3SS g7xnNr5cgBavlwMmCezNik2frh7EUVjDYy8Qgk7vm+CjR1YwHIf0NaGUdrpmY5TcGYmpjK7L0gx ll5GYnGT2SvwuUCdEwZgfZKFWOqABjjs5gA2pT7yP/Na/aIsXOvbwSgR3TMhkXoy7+hS7IqnPEO B2bYilGBXR99L8QI7LeUxKeE/gGDRDlRNjN0dPxStDkVEJf/rwuB+a6v0imlfNKCVQp1avVwJWQ zKdR8VNhA1Tlhp7wSEpslTBQCj2rkpoHH0Ret8xt3Brq50Sg/1q0qQh6qhbspwG5/UK7goc+UfS IPBYtpWXICW/157QiJdXNbmh35UvSE9wjWwylg5OtrOn5NWlle9/r9A9YX9ySx4DQFlH4HFUXeh AUQB8= X-Received: by 2002:a05:6102:3582:b0:62f:2d6f:cc11 with SMTP id ada2fe7eead31-71e88ad70f7mr13455074137.2.1781624110388; Tue, 16 Jun 2026 08:35:10 -0700 (PDT) X-Received: by 2002:a05:6102:3582:b0:62f:2d6f:cc11 with SMTP id ada2fe7eead31-71e88ad70f7mr13455015137.2.1781624109969; Tue, 16 Jun 2026 08:35:09 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Maydell , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Zhao Liu Subject: [PATCH 5/5] accel/tcg: Remove pre-vCPU ignore_memory_transaction_failures flag Date: Tue, 16 Jun 2026 17:34:31 +0200 Message-ID: <20260616153432.92939-6-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260616153432.92939-1-philmd@oss.qualcomm.com> References: <20260616153432.92939-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: gzzmGotZT7fBpmPahYXKxdfI9PjctIah X-Proofpoint-ORIG-GUID: gzzmGotZT7fBpmPahYXKxdfI9PjctIah X-Authority-Analysis: v=2.4 cv=Ibi3n2qa c=1 sm=1 tr=0 ts=6a316d33 cx=c_pps a=+D9SDfe9YZWTjADjLiQY5g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=fsqqm1fM6BaVY0jH1QMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=vmgOmaN-Xu0dpDh8OwbV:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfX4z/m/pcfWYus ASU+NRM/WJ+Z9ysngE4QdeJeKvr95jzMKxQD3M6PEyHPTqx6x227ajHpYaOL1D3k8qzgfKd8kJh 0VyY2qDu4hYlAYbY98vEO79UMVxdMjY22xwNxObtDBk3PVGGr1TOP8IsPF4R8N60VDpgQZukKCL UPWpHLIB93d7pihMWyrBtv9t/RKrFGdzUsnEBgVdnMV5lZFpy0qWke9VXOs3rjTBYBhWwMhDbYv iQeDvzy9pdmxSv/+iKaXWBBamoDqzmXe9MBlG3nz9XE0OVTpO1S53M2XFuUmTudhvgtRtZZkegw NPMiTx6e39R2u/gDY8a0/nCP2ING9I0wAK4FCk8ev8vhWoIs9r+kXLxy197R9M2tEUpUdQ2gvqB 8mvpO6SJrqVcIE1BY/AsCM8bkJo1NH5Ju4Qtt3DGxlSxL/Jw1p4C2QWHoBmpPCPl/3qgM6CVape Y3pWebTCT6nXdwwr4nQ== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE1OSBTYWx0ZWRfX9x6GdKKpdCaT QwYCkhVbtxUxoe5fN13nqyo/ePEC04M6zCaJIixy0c9zFyo5bvgLDUrByiDJ0ct1qKsxqBmvUIA +Bgyg/sNF6O71XNhhBxS7WMAhQJKrj8= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160159 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=philmd@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: 1781624146352158500 The %ignore_memory_transaction_failures flag is meant for legacy machines, and is defined once per machine, then applied to all vCPUs such machine creates, to be eventually only used by the TCG soft MMU layer. We can decouple it of the vCPU layer by making it a global, setting it once when the machine is initialized, allowing to remove machine code in the common vCPU Realize() handler. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Even better is to make it an accelerator property. --- include/hw/core/cpu.h | 2 -- include/system/tcg.h | 2 ++ accel/stubs/tcg-stub.c | 1 + accel/tcg/cputlb.c | 9 +++++++-- hw/core/cpu-common.c | 15 --------------- hw/core/machine.c | 5 +++++ 6 files changed, 15 insertions(+), 19 deletions(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 59d601465b4..72666189774 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -575,8 +575,6 @@ struct CPUState { */ int64_t throttle_us_per_full; =20 - bool ignore_memory_transaction_failures; - /* Used for user-only emulation of prctl(PR_SET_UNALIGN). */ bool prctl_unalign_sigbus; =20 diff --git a/include/system/tcg.h b/include/system/tcg.h index 7622dcea302..0c5af81b511 100644 --- a/include/system/tcg.h +++ b/include/system/tcg.h @@ -25,4 +25,6 @@ extern bool tcg_allowed; */ bool qemu_tcg_mttcg_enabled(void); =20 +extern bool tcg_ignore_memory_transaction_failures; + #endif diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c index 77055e39644..855e5d43171 100644 --- a/accel/stubs/tcg-stub.c +++ b/accel/stubs/tcg-stub.c @@ -11,6 +11,7 @@ */ =20 #include "qemu/osdep.h" +#include "system/tcg.h" #include "exec/cpu-common.h" =20 G_NORETURN void cpu_loop_exit(CPUState *cpu) diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index d6115bbb0a4..31c8351231a 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -26,6 +26,7 @@ #include "exec/page-protection.h" #include "system/memory.h" #include "system/physmem.h" +#include "system/tcg.h" #include "accel/tcg/cpu-ldst-common.h" #include "accel/tcg/cpu-mmu-index.h" #include "exec/cputlb.h" @@ -90,6 +91,8 @@ */ QEMU_BUILD_BUG_ON(sizeof(vaddr) > sizeof(run_on_cpu_data)); =20 +bool tcg_ignore_memory_transaction_failures; + #define ALL_MMUIDX_BITS ((1 << NB_MMU_MODES) - 1) =20 static inline size_t tlb_n_entries(CPUTLBDescFast *fast) @@ -1291,8 +1294,10 @@ static void io_failed(CPUState *cpu, CPUTLBEntryFull= *full, vaddr addr, unsigned size, MMUAccessType access_type, int mmu_id= x, MemTxResult response, uintptr_t retaddr) { - if (!cpu->ignore_memory_transaction_failures - && cpu->cc->tcg_ops->do_transaction_failed) { + if (unlikely(tcg_ignore_memory_transaction_failures)) { + return; + } + if (cpu->cc->tcg_ops->do_transaction_failed) { hwaddr physaddr =3D full->phys_addr | (addr & ~TARGET_PAGE_MASK); =20 cpu->cc->tcg_ops->do_transaction_failed(cpu, physaddr, addr, size, diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index e314f916f84..b74a39c96ac 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -32,7 +32,6 @@ #include "exec/log.h" #include "exec/gdbstub.h" #include "system/tcg.h" -#include "hw/core/boards.h" #include "hw/core/qdev-properties.h" #include "trace.h" #ifdef CONFIG_PLUGIN @@ -247,20 +246,6 @@ bool cpu_exec_realizefn(CPUState *cpu, Error **errp) static void cpu_common_realizefn(DeviceState *dev, Error **errp) { CPUState *cpu =3D CPU(dev); - Object *machine =3D qdev_get_machine(); - - /* qdev_get_machine() can return something that's not TYPE_MACHINE - * if this is one of the user-only emulators; in that case there's - * no need to check the ignore_memory_transaction_failures board flag. - */ - if (object_dynamic_cast(machine, TYPE_MACHINE)) { - MachineClass *mc =3D MACHINE_GET_CLASS(machine); - - if (mc) { - cpu->ignore_memory_transaction_failures =3D - mc->ignore_memory_transaction_failures; - } - } =20 if (dev->hotplugged) { cpu_synchronize_post_init(cpu); diff --git a/hw/core/machine.c b/hw/core/machine.c index 4d8b15d99e9..bc388dd8442 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -29,6 +29,7 @@ #include "system/runstate.h" #include "system/xen.h" #include "system/qtest.h" +#include "system/tcg.h" #include "hw/pci/pci_bridge.h" #include "hw/mem/nvdimm.h" #include "migration/global_state.h" @@ -1213,6 +1214,10 @@ static void machine_class_base_init(ObjectClass *oc,= const void *data) strlen(cname) - strlen(TYPE_MACHINE_SUFFIX)); mc->compat_props =3D g_ptr_array_new(); } + if (tcg_enabled()) { + tcg_ignore_memory_transaction_failures + =3D mc->ignore_memory_transaction_failures; + } } =20 static void machine_initfn(Object *obj) --=20 2.53.0