]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-ppc: add support for extended mtfsf/mtfsfi forms
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 20 Apr 2013 08:56:22 +0000 (08:56 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 21:02:43 +0000 (23:02 +0200)
commit7d08d85645def18eac2a9d672c1868a35e0bcf79
treebb70d80e36ac6fe6878dc29bff4ee9376f70ffa9
parent44bc0c4d3e90bfa1fafdbcc19d023d2d4b119eed
target-ppc: add support for extended mtfsf/mtfsfi forms

Power ISA 2.05 adds support for extended mtfsf/mtfsfi form, with a new
W field to select the upper part of the FPCSR register.

For that the helper is changed to handle 64-bit input values and mask with
up to 16 bits. The mtfsf/mtfsfi instructions do not have the W bit
marked as invalid anymore. Instead this is checked in the helper, which
therefore needs to access to the insns/insns_flags2. They are added in
the DisasContext struct. Finally change all accesses to the opcode fields
through extract helpers, prefixed with FP for consistency.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/fpu_helper.c
target-ppc/translate.c