From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag8ia-0000yt-7D for qemu-devel@nongnu.org; Wed, 16 Mar 2016 06:30:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag8iW-000400-53 for qemu-devel@nongnu.org; Wed, 16 Mar 2016 06:30:20 -0400 References: <1458121432-2855-1-git-send-email-lvivier@redhat.com> <56E92C01.1030600@suse.de> <56E92FE4.2070606@redhat.com> <56E93033.1040305@suse.de> From: Laurent Vivier Message-ID: <56E935B4.8050703@redhat.com> Date: Wed, 16 Mar 2016 11:30:12 +0100 MIME-Version: 1.0 In-Reply-To: <56E93033.1040305@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ppc64: set MSR_SF bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: dgibson@redhat.com, thuth@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 16/03/2016 11:06, Alexander Graf wrote: > > > On 16.03.16 11:05, Laurent Vivier wrote: >> On 16/03/2016 10:48, Alexander Graf wrote: >>> >>> >>> On 16.03.16 10:43, Laurent Vivier wrote: >>>> When a qemu-system-ppc64 is started, the 64-bit mode bit >>>> is not set in MSR. >>>> >>>> Signed-off-by: Laurent Vivier >>> >>> I guess commit 2cf3eb6df552cee74b52de9989e270b74e42847e broke this. I'm >>> surprised it didn't cause us more problems :). >> >> Linux kernel is ready to manage that: see enable_64b_mode in >> arch/powerpc/kernel/head_64.S > > We don't boot Linux directly though, only openBIOS and SLOF :). Same thing in SLOF: ./board-qemu/llfw/startup.S _start: ... mfmsr r11 /* grab the current MSR */ li r12,(MSR_SF | MSR_ISF)@highest sldi r12,r12,48 or r11,r11,r12 mtmsrd r11 isync And openbios seems to disable it explicitly: ./arch/ppc/qemu/start.S _entry: ... /* clear MSR, disable MMU, SF */ [BTW, I've never been able to compile a 64bit version of openbios...] Laurent