target-ppc: Fix and enable fri[mnpz]
commitc73860803f8f8f56ee01b6e796507bfb4ea073ec
authorTom Musta <tommusta@gmail.com>
Tue, 7 Jan 2014 16:06:05 +0000 (7 10:06 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:42 +0000 (5 03:06 +0100)
tree4b3610b99fe5322286c1e18fd465a3aed8d1ac92
parent28288b48a83e903198ee22d8558c43b021e39a17
target-ppc: Fix and enable fri[mnpz]

The fri* series of instructions was introduced prior to ISA 2.06 and
is supported on Power7 and Power8 hardware.  However, the instruction
is still considered illegal in the P7 and P8 QEMU emulation models.
This patch enables these instructions for the P7 and P8 machines.

Also, the existing helper is modified to correctly handle some of
the boundary cases (NaNs and the inexact flag).

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/fpu_helper.c
target-ppc/translate_init.c