diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2018-07-03 08:17:26 -0700 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-08-21 14:28:45 +1000 |
commit | e82c42b7c5c1acbcfd5e5fe2b1b850c56e619c0d (patch) | |
tree | 443402216f196353a9fc3ce4e698a6382b586abb /target/ppc/translate_init.inc.c | |
parent | 1368898d4b7e36f8a69e4dfd017853e15de6ef81 (diff) | |
download | qemu-e82c42b7c5c1acbcfd5e5fe2b1b850c56e619c0d.zip qemu-e82c42b7c5c1acbcfd5e5fe2b1b850c56e619c0d.tar.gz qemu-e82c42b7c5c1acbcfd5e5fe2b1b850c56e619c0d.tar.bz2 |
target/ppc: Enable fp exceptions for user-only
While just setting the MSR bits is sufficient, we can tidy
the helper code by extracting the MSR test to a helper and
then forcing it true for user-only.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/translate_init.inc.c')
-rw-r--r-- | target/ppc/translate_init.inc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c index 7813b1b..fe0cb98 100644 --- a/target/ppc/translate_init.inc.c +++ b/target/ppc/translate_init.inc.c @@ -10278,6 +10278,8 @@ static void ppc_cpu_reset(CPUState *s) #endif #if defined(CONFIG_USER_ONLY) msr |= (target_ulong)1 << MSR_FP; /* Allow floating point usage */ + msr |= (target_ulong)1 << MSR_FE0; /* Allow floating point exceptions */ + msr |= (target_ulong)1 << MSR_FE1; msr |= (target_ulong)1 << MSR_VR; /* Allow altivec usage */ msr |= (target_ulong)1 << MSR_VSX; /* Allow VSX usage */ msr |= (target_ulong)1 << MSR_SPE; /* Allow SPE usage */ |