From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16BF2C433F5 for ; Thu, 27 Jan 2022 23:14:06 +0000 (UTC) Received: from localhost ([::1]:35500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDDxs-0004le-K1 for qemu-devel@archiver.kernel.org; Thu, 27 Jan 2022 18:14:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDDtT-0002md-SQ; Thu, 27 Jan 2022 18:09:32 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:63778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDDtR-0007L6-0K; Thu, 27 Jan 2022 18:09:31 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20RMhs3B009739; Thu, 27 Jan 2022 23:08:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : in-reply-to : references : date : message-id : content-type : mime-version; s=pp1; bh=qRCdF8iP49vcToxsQJbzP/Xd9tLUU94B6yqt6UUIhPA=; b=KpSwqr/BG5OZJWzjkJHWDH0COl/BYAHprCOku/NXZf023LrXrLY2YOVTDwTgMZv2UL6+ YRa0s7ZrWvEJSSyyIG/c+neGu4lIF2PYRxzANjtpSW4h/U7aSHCIdffcIZyfQC/kHV1U ozgcnn4L2HV1zxSnh654XgfI9Aowzapr0ufdsWwwzIATDpJAgd8CEszKabaF82nw8XxN OAbdF70H4P1B286//QdWwxXG54M+W2q5v15a9KM1Vzg7SwwIXSoSfVUkF3xhVRpTcHu8 DgUzvcOpjbCMV8TxnxUj6XQeryX4nPS1l/eZGkMLF360mer88he7xIQiNubu63bJsgcE Eg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3dv41w8ty1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jan 2022 23:08:56 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 20RN04xT004945; Thu, 27 Jan 2022 23:08:56 GMT Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 3dv41w8txj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jan 2022 23:08:56 +0000 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 20RN8gj7017793; Thu, 27 Jan 2022 23:08:55 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma01wdc.us.ibm.com with ESMTP id 3dr9jbxrh2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jan 2022 23:08:55 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 20RN8sZ634603318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Jan 2022 23:08:54 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0E88CACA3B; Thu, 27 Jan 2022 23:08:54 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 08444ACA37; Thu, 27 Jan 2022 23:08:52 +0000 (GMT) Received: from localhost (unknown [9.211.129.51]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 27 Jan 2022 23:08:52 +0000 (GMT) From: Fabiano Rosas To: Mark Cave-Ayland , qemu-devel@nongnu.org Subject: Re: [PATCH v2 0/8] target/ppc: powerpc_excp improvements [74xx] (5/n) In-Reply-To: <633a8e99-d68b-2765-ceea-3d85935899f5@ilande.co.uk> References: <20220127201116.1154733-1-farosas@linux.ibm.com> <633a8e99-d68b-2765-ceea-3d85935899f5@ilande.co.uk> Date: Thu, 27 Jan 2022 20:08:49 -0300 Message-ID: <874k5ord32.fsf@linux.ibm.com> Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-GUID: cSnKa1tOLlUbvWjZ6USG5Ylf5QON9hH2 X-Proofpoint-ORIG-GUID: FeWyfhjf1Et9BMqcOVDRBRoeGCldgPjz X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-27_05,2022-01-27_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 malwarescore=0 impostorscore=0 adultscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 mlxlogscore=500 spamscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201270129 Received-SPF: pass client-ip=148.163.156.1; envelope-from=farosas@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, 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: , Cc: danielhb413@gmail.com, qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Mark Cave-Ayland writes: > On 27/01/2022 20:11, Fabiano Rosas wrote: > >> Changes from v1: >> >> - Restored the 'sc 1' support to avoid breaking the pegasos2 machine. >> >> I tested this version in the G4 with the following OSes: >> >> - Linux 5.15 (5.16 seems to be broken, even with master) >> - FreeBSD 13 >> - Mac OS 9.2 >> - Mac OS Darwin 6.0 >> - Mac OS X 10.4 >> - MorphOS 3.15 (-M pegasos2 and -M mac99,via=pmu) >> >> Based on legoater/ppc-7.0 >> >> v1: >> https://lore.kernel.org/r/20220126164200.1048677-1-farosas@linux.ibm.com >> >> Fabiano Rosas (8): >> target/ppc: Introduce powerpc_excp_74xx >> target/ppc: Simplify powerpc_excp_74xx >> target/ppc: 74xx: Machine Check exception cleanup >> target/ppc: 74xx: External interrupt cleanup >> target/ppc: 74xx: Program exception cleanup >> target/ppc: 74xx: System Call exception cleanup >> target/ppc: 74xx: System Reset interrupt cleanup >> target/ppc: 74xx: Set SRRs directly in exception code >> >> target/ppc/excp_helper.c | 197 +++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 197 insertions(+) > > That certainly covers a good range MacOS images so I'm happy to give: > > Acked-by: Mark Cave-Ayland > > Just out of curiosity have you tried booting MacOS 9.2 under KVM-PR? Last time I > tried on my G4 Mac Mini here, OS X worked fine but 9.2 failed early after jumping > into the 68k emulator. Unfortunately due to the split real mode (see > https://github.com/torvalds/linux/commit/c01e3f66cd5cdc1f727f4c7b0c10b3e3bdb91ba7 > where MSR_IR != MSR_DR) I can't step through with QEMU's gdbstub to see what is going > wrong... Never crossed my mind actually. =) I don't immediately see why the step wouldn't work due to split mode. Let me understand that patch first. KVM-PR is full of surprises. > > > ATB, > > Mark.