From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx8MS-0002TG-Eq for qemu-devel@nongnu.org; Thu, 02 Aug 2012 23:15:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx8MR-0000Cl-4O for qemu-devel@nongnu.org; Thu, 02 Aug 2012 23:15:36 -0400 Received: from indium.canonical.com ([91.189.90.7]:49360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx8MQ-0000Ch-Un for qemu-devel@nongnu.org; Thu, 02 Aug 2012 23:15:35 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Sx8MQ-0004kq-IJ for ; Fri, 03 Aug 2012 03:15:34 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 897402E806B for ; Fri, 3 Aug 2012 03:15:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 03 Aug 2012 03:06:31 -0000 From: Samuel Bronson Sender: bounces@canonical.com References: <20110526160930.15535.57397.malonedeb@soybean.canonical.com> Message-Id: <20120803030631.29970.43819.launchpad@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 788697] Re: [PowerPC] [patch] mtmsr does not preserve high bits of MSR Reply-To: Bug 788697 <788697@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Tags added: ppc ** Tags added: ppc64 -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/788697 Title: [PowerPC] [patch] mtmsr does not preserve high bits of MSR Status in QEMU: New Bug description: The mtmsr instruction on 64-bit PPC does not preserve the high-order 32-bits of the MSR the way it is supposed to, instead setting them to 0, which takes 64-bit code out of 64-bit mode. There is some code that does the right thing, but it brokenly only preserves these bits when the thread is not in 64-bit mode (i.e. when it doesn't matter). The attached patch unconditionally enables this code when TARGET_PPC64 is set, per the ISA spec, which fixes early boot failures trying to start FreeBSD/powerpc64 under qemu. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/788697/+subscriptions