Commit 4c2ab988693eead8798dd4e199281012eaaba3a0
1 parent
fe463b7d
target-ppc: enable SPE and Altivec in user mode
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5965 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
target-ppc/helper.c
... | ... | @@ -2903,6 +2903,8 @@ void cpu_ppc_reset (void *opaque) |
2903 | 2903 | #endif |
2904 | 2904 | #if defined(CONFIG_USER_ONLY) |
2905 | 2905 | msr |= (target_ulong)1 << MSR_FP; /* Allow floating point usage */ |
2906 | + msr |= (target_ulong)1 << MSR_VR; /* Allow altivec usage */ | |
2907 | + msr |= (target_ulong)1 << MSR_SPE; /* Allow SPE usage */ | |
2906 | 2908 | msr |= (target_ulong)1 << MSR_PR; |
2907 | 2909 | env->msr = msr & env->msr_mask; |
2908 | 2910 | #else | ... | ... |