OSDN Git Service

target-ppc: Add set_fprf Argument to fload_invalid_op_excp()
authorTom Musta <tommusta@gmail.com>
Thu, 2 Jan 2014 22:21:19 +0000 (16:21 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:27 +0000 (03:06 +0100)
commit59800ec8e52bcfa271fa61fb0aae19205ef1b7f1
tree92c0693529766f7fffdba3da17dcba1a8773cee5
parent4e38181979ec4bc80c75f0c181f9df2d4e933c13
target-ppc: Add set_fprf Argument to fload_invalid_op_excp()

The fload_invalid_op_excp() function sets assorted invalid
operation status bits.  However, it also implicitly modifies
the FPRF field of the PowerPC FPSCR.  Many VSX instructions
set invalid operation bits but do not alter FPRF.  Thus the
function is more generally useful if the setting of the FPRF
field is made conditional via a parameter.

All invocations of this routine in existing instructions are
modified to pass 1 and thus retain their current behavior.

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