target-ppc: fix xscmpodp and xscmpudp decoding
commit8f60f8e2e574f341709128ff7637e685fd640254
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Sep 2015 21:03:45 +0000 (13 23:03 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 20 Sep 2015 20:48:39 +0000 (20 22:48 +0200)
tree733b14777790da56e378facdfa1fc396d6e55657
parent65cf1f65be0fc4883edbd66feeab3ddaceb11c00
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>
target-ppc/translate.c