ppc: Add support for 'mffscrn','mffscrni' instructions
commita2735cf483814b1c0e5773eee4a52f8e32d438cf
authorPaul A. Clarke <pc@us.ibm.com>
Wed, 18 Sep 2019 14:31:21 +0000 (18 09:31 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 00:25:23 +0000 (4 10:25 +1000)
treebd97e35550ae7cb6490901b2fbefdb9ce57dfbfa
parent4c3539d491026a0cc68e3b886f16cb7f57efd46b
ppc: Add support for 'mffscrn','mffscrni' instructions

ISA 3.0B added a set of Floating-Point Status and Control Register (FPSCR)
instructions: mffsce, mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl.
This patch adds support for 'mffscrn' and 'mffscrni' instructions.

'mffscrn' and 'mffscrni' are similar to 'mffsl', except they do not return
the status bits (FI, FR, FPRF) and they also set the rounding mode in the
FPSCR.

On CPUs without support for 'mffscrn'/'mffscrni' (below ISA 3.0), the
instructions will execute identically to 'mffs'.

Signed-off-by: Paul A. Clarke <pc@us.ibm.com>
Message-Id: <1568817081-1345-1-git-send-email-pc@us.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h
target/ppc/dfp_helper.c
target/ppc/internal.h
target/ppc/translate/fp-impl.inc.c
target/ppc/translate/fp-ops.inc.c