target/ppc: Enable fp exceptions for user-only
commite82c42b7c5c1acbcfd5e5fe2b1b850c56e619c0d
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Jul 2018 15:17:26 +0000 (3 08:17 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 21 Aug 2018 04:28:45 +0000 (21 14:28 +1000)
tree443402216f196353a9fc3ce4e698a6382b586abb
parent1368898d4b7e36f8a69e4dfd017853e15de6ef81
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>
target/ppc/fpu_helper.c
target/ppc/translate_init.inc.c