target-ppc: fix xscmpodp and xscmpudp decoding
commit1f21d3b8dc11231c58b1f53804d33151ceeac84b
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Sep 2015 21:03:45 +0000 (13 23:03 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Oct 2015 04:04:01 +0000 (20 23:04 -0500)
treefb1a4e82405229a3025e81e57fd5e9b0c9ad355f
parentbac9ce97d33c8034e41bedc1e8d4c0604f069f5e
target-ppc: fix xscmpodp and xscmpudp decoding

The xscmpodp and xscmpudp instructions only have the AX, BX bits in
there encoding, the lowest bit (usually TX) is marked as an invalid
bit. We therefore can't decode them with GEN_XX2FORM, which decodes
the two lowest bit.

Introduce a new form GEN_XX2FORM, which decodes AX and BX and mark
the lowest bit as invalid.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
(cherry picked from commit 8f60f8e2e574f341709128ff7637e685fd640254)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-ppc/translate.c