target-ppc: Fix Floating Point Move Instructions That Set CR1
commit4814f2d116c057d6fdfd57f3b979c77d5668e878
authorTom Musta <tommusta@gmail.com>
Wed, 12 Nov 2014 21:46:00 +0000 (12 15:46 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 7 Jan 2015 15:16:25 +0000 (7 16:16 +0100)
tree0db660d9eb28a6416089cc3cd5114b62b060f525
parentb748863a7f7d2996255dd2cb5a20e49785cc7387
target-ppc: Fix Floating Point Move Instructions That Set CR1

The Floating Point Move instructions (fmr., fabs., fnabs., fneg.,
and fcpsgn.) incorrectly copy FPSCR[FPCC] instead of [FX,FEX,VX,OX].
Furthermore, the current code does this via a call to gen_compute_fprf,
which is awkward since these instructions do not actually set FPRF.

Change the code to use the gen_set_cr1_from_fpscr utility.

Signed-off-by: Tom Musta <tommusta@gmail.com>
[agraf: whitespace fixes]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c