From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Vivier Date: Tue, 15 Mar 2016 13:43:11 +0000 Subject: Re: [PATCH] powerpc: enable 64-bit mode Message-Id: <56E8116F.8080700@redhat.com> List-Id: References: <1458047717-25052-1-git-send-email-lvivier@redhat.com> In-Reply-To: <1458047717-25052-1-git-send-email-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Cc: drjones@redhat.com, thuth@redhat.com, dgibson@redhat.com, pbonzini@redhat.com Missing in the subject: it's a kvm-unit-tests patch. Laurent On 15/03/2016 14:15, Laurent Vivier wrote: > When they are started, processors are in 32-bit mode, > as we are testing ppc64 processors, enable the 64bit mode > on starting. > > Signed-off-by: Laurent Vivier > --- > powerpc/cstart64.S | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/powerpc/cstart64.S b/powerpc/cstart64.S > index c87e3d6..634b854 100644 > --- a/powerpc/cstart64.S > +++ b/powerpc/cstart64.S > @@ -18,6 +18,15 @@ > .globl start > start: > FIXUP_ENDIAN > + > + /* enable 64-bit mode */ > + mfmsr r11 > + li r12,-1 > + rldicr r12,r12,0,0 > + or r11,r11,r12 > + mtmsrd r11 > + isync > + > /* > * We were loaded at QEMU's kernel load address, but we're not > * allowed to link there due to how QEMU deals with linker VMAs, > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Vivier Subject: Re: [PATCH] powerpc: enable 64-bit mode Date: Tue, 15 Mar 2016 14:43:11 +0100 Message-ID: <56E8116F.8080700@redhat.com> References: <1458047717-25052-1-git-send-email-lvivier@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: drjones@redhat.com, thuth@redhat.com, dgibson@redhat.com, pbonzini@redhat.com To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:33110 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934119AbcCONnP (ORCPT ); Tue, 15 Mar 2016 09:43:15 -0400 In-Reply-To: <1458047717-25052-1-git-send-email-lvivier@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Missing in the subject: it's a kvm-unit-tests patch. Laurent On 15/03/2016 14:15, Laurent Vivier wrote: > When they are started, processors are in 32-bit mode, > as we are testing ppc64 processors, enable the 64bit mode > on starting. > > Signed-off-by: Laurent Vivier > --- > powerpc/cstart64.S | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/powerpc/cstart64.S b/powerpc/cstart64.S > index c87e3d6..634b854 100644 > --- a/powerpc/cstart64.S > +++ b/powerpc/cstart64.S > @@ -18,6 +18,15 @@ > .globl start > start: > FIXUP_ENDIAN > + > + /* enable 64-bit mode */ > + mfmsr r11 > + li r12,-1 > + rldicr r12,r12,0,0 > + or r11,r11,r12 > + mtmsrd r11 > + isync > + > /* > * We were loaded at QEMU's kernel load address, but we're not > * allowed to link there due to how QEMU deals with linker VMAs, >