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: 8588351 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2D3F9C0553 for ; Tue, 15 Mar 2016 13:15:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55AFD20263 for ; Tue, 15 Mar 2016 13:15:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76FBB202A1 for ; Tue, 15 Mar 2016 13:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754038AbcCONP1 (ORCPT ); Tue, 15 Mar 2016 09:15:27 -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-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,