]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-ppc: fix bit extraction for FPBF and FPL
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 15 Aug 2013 11:32:38 +0000 (13:32 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 24 Sep 2013 23:46:32 +0000 (18:46 -0500)
commit52f99b02e5ff1004fb3b41846d2c34f190127456
tree9b0a2359be339ade7f355ce1c96025caf2ff6d13
parentc0c080c5d1ce6c236ba8ab5db3a17043c665d0f6
target-ppc: fix bit extraction for FPBF and FPL

Bit extraction for the FP BF and L field of the MTFSFI and MTFSF
instructions is wrong and doesn't match the reference manual (which
explain the bit number in big endian format). It has been broken in
commit 7d08d85645def18eac2a9d672c1868a35e0bcf79.

This patch fixes this, which in turn fixes the problem reported by
Khem Raj about the floor() function of libm.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
CC: qemu-stable@nongnu.org (1.6)
Signed-off-by: Alexander Graf <agraf@suse.de>
(cherry picked from commit 779f659021d1754117bce1aab9370dc22f37ae07)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-ppc/translate.c