]> Git Repo - qemu.git/commitdiff
target-ppc: enable SPE and Altivec in user mode
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 10 Dec 2008 15:02:33 +0000 (15:02 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 10 Dec 2008 15:02:33 +0000 (15:02 +0000)
Signed-off-by: Aurelien Jarno <[email protected]>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5965 c046a42c-6fe2-441c-8c8c-71466251a162

target-ppc/helper.c

index 689291ccb2d3e3f66515c7a331dd59706ab3867b..33e8b3ba5b2e48129500922b1c3702f24c8927f8 100644 (file)
@@ -2903,6 +2903,8 @@ void cpu_ppc_reset (void *opaque)
 #endif
 #if defined(CONFIG_USER_ONLY)
     msr |= (target_ulong)1 << MSR_FP; /* Allow floating point usage */
+    msr |= (target_ulong)1 << MSR_VR; /* Allow altivec usage */
+    msr |= (target_ulong)1 << MSR_SPE; /* Allow SPE usage */
     msr |= (target_ulong)1 << MSR_PR;
     env->msr = msr & env->msr_mask;
 #else
This page took 0.032583 seconds and 4 git commands to generate.