Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63520CA0EFA for ; Mon, 25 Aug 2025 11:48:21 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uqVf7-0006C7-6R; Mon, 25 Aug 2025 07:46:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uqVex-00069Q-0u; Mon, 25 Aug 2025 07:46:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uqVes-00076D-Fv; Mon, 25 Aug 2025 07:46:46 -0400 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57P7arcK025629; Mon, 25 Aug 2025 11:46:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=Hrm2fm 7QNpX320iBu4t2gxHq5JzilpzQVUE1C3YQTy0=; b=QhUQA1TUpsDAYa6Wc7xMTl LeprkK8MaJicBtctm/dmhc8AZ8crlFv0KSw+BnJjDxGJahuAdPq+ghlxggt5WpG2 k8NDqbza8CHk4H4/yGFGPp6EtJLXaDXhj9Sf5HgQT/rlkHKlbjCWILCzBNV4MIeY P+HWaZGi9Dkk1nNvhyUWrygFQnJLEmKNbvEUmBfzmYI+o4bzOreGpcOxIKhbG95g aEudSZLhSZIcHi574VKptAh2SiWmbpdMqFfmbLxn4Aj6dGQfJjbH7icwfFfX8I67 4cmTr7aOR/d4NnW8QdFBYkf8v5AASewH60AGo3zXBDzgWUi6M3/IM11PnEuJ2drg == Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 48q5av8msk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Aug 2025 11:46:36 +0000 (GMT) Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.18.1.12/8.18.0.8) with ESMTP id 57PBP89c025901; Mon, 25 Aug 2025 11:46:35 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 48q5av8mse-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Aug 2025 11:46:35 +0000 (GMT) Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 57P9ZQo2020869; Mon, 25 Aug 2025 11:46:34 GMT Received: from smtprelay07.dal12v.mail.ibm.com ([172.16.1.9]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 48qrc0dq9a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Aug 2025 11:46:34 +0000 Received: from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com [10.39.53.233]) by smtprelay07.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 57PBkX5v10683542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Aug 2025 11:46:33 GMT Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E569158054; Mon, 25 Aug 2025 11:46:32 +0000 (GMT) Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 86A0E58056; Mon, 25 Aug 2025 11:46:29 +0000 (GMT) Received: from [9.39.20.14] (unknown [9.39.20.14]) by smtpav06.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 25 Aug 2025 11:46:29 +0000 (GMT) Message-ID: Date: Mon, 25 Aug 2025 17:16:24 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] target/ppc: Add IBM PPE42 family of processors To: Thomas Huth , Glenn Miles , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, clg@redhat.com, npiggin@gmail.com, rathc@linux.ibm.com, richard.henderson@linaro.org, =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Pierrick Bouvier References: <20250819212856.219932-1-milesg@linux.ibm.com> <20250819212856.219932-2-milesg@linux.ibm.com> <0d2c9aa2-2dcc-4c22-8f33-e5ecac907cf4@linux.ibm.com> Content-Language: en-US From: Harsh Prateek Bora In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: _dXwFa5gUT4_uhIouY0_pkaGkko2eJ68 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODIzMDAyMSBTYWx0ZWRfX1yLYiq82TfxS Kpt/rRCbr4oLNYv9PgZ5SoeYYgbVDGa2+cxymkQPxjk51edO0AVZY94bPD+m/acFZSTSbzP/P/3 4NAbg6piWZ9KzLIV/I6yZbYG4xV4+RJ5sqUIsGDiVrgfk2IJnX50RyEi8DpA369euPAFN/+rbKy +JILsIl5AdtLdbYL30jNFV4fopuOir+o4xnMhMsXSYHUykHYHp46YozIzbE/rnoa2+zSZ26W8Af xndMqN4AqxIiRFbH8Ov+q8ISQ2WqpwGrbDaF2vS3/prOCwZg81UUE0TE192RzZHZRg2qd1Y4cd8 yr0gqUa0iskXrtrTWNUhKeNkTZ9z8+3WObpwSr4SSlvnQL7A/iXL8up6SpJs55zbq9m+OvM3iF4 pErQJkqq X-Proofpoint-ORIG-GUID: XLNomKRe2_oKQEFZLVS-HKnGBPSt9uEx X-Authority-Analysis: v=2.4 cv=SNNCVPvH c=1 sm=1 tr=0 ts=68ac4d1c cx=c_pps a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17 a=IkcTkHD0fZMA:10 a=2OwXVqhp2XgA:10 a=f7IdgyKtn90A:10 a=jRLB2SoPAAAA:8 a=VnNF1IyMAAAA:8 a=LeJAtNB4pwwDkPGm2W8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=yloqiLrygL2q3s9aD-8D:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-25_05,2025-08-20_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 clxscore=1011 impostorscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508230021 Received-SPF: pass client-ip=148.163.156.1; envelope-from=harshpb@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hi Thomas, On 8/25/25 17:04, Thomas Huth wrote: > On 25/08/2025 13.24, Harsh Prateek Bora wrote: >> Hi Glenn, >> >> This seems significant work. Thanks for upstreaming. >> >> On 8/20/25 02:58, Glenn Miles wrote: >>> Adds the IBM PPE42 family of processors supporting the >> >> family of 32-bit processors ? >> >>> PPE42, PPE42X and PPE42XM processor versions.  These >>> processors are used as embedded processors in the IBM >>> Power9, Power10 and Power12 processors for various >>> tasks.  It is basically a stripped down version of the >>> IBM PowerPC 405 processor, with some added instructions >>> for handling 64-bit loads and stores. >>> >>> For more information on the PPE 42 processor please visit: >>> >>> https://wiki.raptorcs.com/w/images/a/a3/PPE_42X_Core_Users_Manual.pdf >>> >>> Supports PPE42 SPR's (Including the MSR) and  Exceptions. >>> >>> Does not yet support new PPE42 instructions and does not >>> prevent access to some invalid instructions and registers >>> (currently allows for access to invalid GPR's and CR fields). >>> >>> Signed-off-by: Glenn Miles >>> --- >>>   target/ppc/cpu-models.c      |   7 + >>>   target/ppc/cpu-models.h      |   4 + >>>   target/ppc/cpu.h             |  66 +++++++- >>>   target/ppc/cpu_init.c        | 286 ++++++++++++++++++++++++++++++----- >>>   target/ppc/excp_helper.c     | 171 +++++++++++++++++++++ >>>   target/ppc/helper_regs.c     |  28 +++- >>>   target/ppc/tcg-excp_helper.c |  12 ++ >>>   target/ppc/translate.c       |   6 +- >>>   8 files changed, 535 insertions(+), 45 deletions(-) >>> >>> diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c >>> index ea86ea202a..09f73e23a8 100644 >>> --- a/target/ppc/cpu-models.c >>> +++ b/target/ppc/cpu-models.c >>> @@ -116,6 +116,13 @@ >>>                   NULL) >>>       POWERPC_DEF("x2vp20", >>> CPU_POWERPC_X2VP20,                 405, >>>                   NULL) >>> +    /* PPE42 Embedded >>> Controllers                                            */ >>> +    POWERPC_DEF("PPE42",         CPU_POWERPC_PPE42, >>> ppe42, >>> +                "Generic PPE 42") >>> +    POWERPC_DEF("PPE42X",        CPU_POWERPC_PPE42X, >>> ppe42x, >>> +                "Generic PPE 42X") >>> +    POWERPC_DEF("PPE42XM",       CPU_POWERPC_PPE42XM, ppe42xm, >>> +                "Generic PPE 42XM") >> >> Can all the PPE42 specific code be conditionally compiled only for >> !TARGET_PPC64 (and !CONFIG_USER_ONLY wherever possible)? >> Not only to reduce the bloating size of respective binaries, but also to >> avoid some code being added to hot path routines like >> hreg_compute_hflags_value(). > > qemu-system-ppc64 is a superset of qemu-system-ppc, and there are even > efforts to unify all system functionality into a singly binary, so > excluding a 32-bit feature from qemu-system-ppc64 sounds like a step > into the wrong direction to me right now...? We do have existing code getting conditionally compiled for TARGET_PPC64 which I guess gets enabled with: --configure target-list=-softmmu I understand the efforts are towards having a single binary to support both, but what gets built-in is still decided with configure choice? Please correct/clarify with above understanding. regards, Harsh > >  Thomas >