From: Laurent Vivier Date: Wed, 16 Mar 2016 09:43:52 +0000 (+0100) Subject: ppc64: set MSR_SF bit X-Git-Tag: v2.6.0-rc0~12^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b9f2118ca40b1de72d8f75b59a5fb4d347a69f7;p=thirdparty%2Fqemu.git ppc64: set MSR_SF bit When a qemu-system-ppc64 is started, the 64-bit mode bit is not set in MSR. Signed-off-by: Laurent Vivier Reviewed-by: Alexander Graf Signed-off-by: David Gibson --- diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index fb206aff29a..11d5fd37b4e 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -9703,7 +9703,7 @@ static void ppc_cpu_reset(CPUState *s) #if defined(TARGET_PPC64) if (env->mmu_model & POWERPC_MMU_64) { - env->msr |= (1ULL << MSR_SF); + msr |= (1ULL << MSR_SF); } #endif