From patchwork Tue Mar 15 13:15:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 597535 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3qPZqd4s1Fz9t3Z for ; Wed, 16 Mar 2016 00:15:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753878AbcCONP0 (ORCPT ); Tue, 15 Mar 2016 09:15:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40246 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbcCONPZ (ORCPT ); Tue, 15 Mar 2016 09:15:25 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id BB80C8E22C; Tue, 15 Mar 2016 13:15:22 +0000 (UTC) Received: from thinkpad.redhat.com (ovpn-112-35.ams2.redhat.com [10.36.112.35]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2FDFJ6E002392; Tue, 15 Mar 2016 09:15:20 -0400 From: Laurent Vivier To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Cc: drjones@redhat.com, thuth@redhat.com, dgibson@redhat.com, pbonzini@redhat.com, Laurent Vivier Subject: [PATCH] powerpc: enable 64-bit mode Date: Tue, 15 Mar 2016 14:15:17 +0100 Message-Id: <1458047717-25052-1-git-send-email-lvivier@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org 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 Reviewed-by: Thomas Huth --- 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,