kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: enable 64-bit mode
@ 2016-03-15 13:15 Laurent Vivier
  2016-03-15 13:43 ` Laurent Vivier
  2016-03-15 18:43 ` Thomas Huth
  0 siblings, 2 replies; 7+ messages in thread
From: Laurent Vivier @ 2016-03-15 13:15 UTC (permalink / raw)
  To: kvm, kvm-ppc; +Cc: drjones, thuth, dgibson, pbonzini, Laurent Vivier

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 <lvivier@redhat.com>
---
 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,
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-03-16  9:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-15 13:15 [PATCH] powerpc: enable 64-bit mode Laurent Vivier
2016-03-15 13:43 ` Laurent Vivier
2016-03-15 18:43 ` Thomas Huth
2016-03-15 18:44   ` Alexander Graf
2016-03-15 19:10     ` Thomas Huth
2016-03-15 20:12     ` Laurent Vivier
2016-03-16  9:45     ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).