]> git.proxmox.com Git - qemu.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)
committerAlexander Graf <agraf@suse.de>
Mon, 2 Sep 2013 08:06:42 +0000 (10:06 +0200)
commit779f659021d1754117bce1aab9370dc22f37ae07
tree462f2142352096ba8dd0e05498fd7d1fb2df910f
parentad9990acc5ac29ce505fbb2b955928ce335eddfd
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>
target-ppc/translate.c