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 X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02A3EC4338F for ; Thu, 29 Jul 2021 10:07:55 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 950B961040 for ; Thu, 29 Jul 2021 10:07:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 950B961040 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:49046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m92xF-0003sG-MM for qemu-devel@archiver.kernel.org; Thu, 29 Jul 2021 06:07:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m92wW-0002fj-Mh for qemu-devel@nongnu.org; Thu, 29 Jul 2021 06:07:08 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]:11601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m92wS-0002eM-9w for qemu-devel@nongnu.org; Thu, 29 Jul 2021 06:07:07 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id E799B7462D3; Thu, 29 Jul 2021 12:06:59 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id B553D7462FD; Thu, 29 Jul 2021 12:06:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id B3B2374570A; Thu, 29 Jul 2021 12:06:59 +0200 (CEST) Date: Thu, 29 Jul 2021 12:06:59 +0200 (CEST) From: BALATON Zoltan To: Howard Spoelstra Subject: Re: Bug in qemu-system-ppc running fedora 12 ppc guest In-Reply-To: Message-ID: <214af2d-c11e-862d-2c4c-4273ef4cef1b@eik.bme.hu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: matheus.ferst@eldorado.org.br, qemu-devel qemu-devel Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hello, On Thu, 29 Jul 2021, Howard Spoelstra wrote: > Hi, > > Qemu-system-ppc built from current master can no longer run Fedora 12 ppc > as guest. (This the only ppc distro I tested.) Host is Fedora 34. Please > see screen shot attached. > Booting from both an installation DVD and from an installed system fail. > > To reproduce: > compile qemu-system-ppc from current master and run: > > ./qemu-system-ppc \ > -M mac99,via=pmu \ > -m 1024 \ > -L pc-bios \ > -boot d \ > -cdrom Fedora-12-ppc-DVD.iso \ > -g 1024x768x8 > > I tracked the issue down to this commit: > > 8f0a4b6a9b40e18116a2bb6bbcc00feb8119c792 is the first bad commit > commit 8f0a4b6a9b40e18116a2bb6bbcc00feb8119c792 There's a fix for a similar problem I've seen with AROS and pegasos2 firmware 1.2 that's in today's pull request: https://lists.nongnu.org/archive/html/qemu-ppc/2021-07/msg00281.html That should likely fixes this. Can you try with that (either once it's merged or from David's for-6.1 branch). Regards, BALATON Zoltan > Author: Matheus Ferst > Date: Tue Jun 1 16:35:28 2021 -0300 > > target/ppc: Move cmp/cmpi/cmpl/cmpli to decodetree > > Additionally, REQUIRE_64BIT when L=1 to match what is specified in The > Programming Environments Manual: > > "For 32-bit implementations, the L field must be cleared, otherwise the > instruction form is invalid." > > Some CPUs are known to deviate from this specification by ignoring the > L bit [1]. The stricter behavior, however, can help users that test > software with qemu, making it more likely to detect bugs that would > otherwise be silent. > > If deemed necessary, a future patch can adapt this behavior based on > the specific CPU model. > > [1] The 601 manual is the only one I've found that explicitly states > that the L bit is ignored, but we also observe this behavior in a 7447A > v1.2. > > Signed-off-by: Matheus Ferst > Message-Id: <20210601193528.2533031-15-matheus.ferst@eldorado.org.br> > Reviewed-by: Richard Henderson > [dwg: Corrected whitespace error] > Signed-off-by: David Gibson > > target/ppc/insn32.decode | 14 ++++++++ > target/ppc/translate.c | 52 > ------------------------------ > target/ppc/translate/fixedpoint-impl.c.inc | 31 ++++++++++++++++++ > 3 files changed, 45 insertions(+), 52 deletions(-) > > Best, > Howard > > [image: Qemu-system-ppc-Fedora-Crashing.png] >