x86: Fix to decode grouped AVX with VEX pp bits
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Fri, 10 Feb 2012 05:33:40 +0000 (14:33 +0900)
committerIngo Molnar <mingo@elte.hu>
Sat, 11 Feb 2012 14:11:35 +0000 (15:11 +0100)
commitf8d98f1095210da708a59f3a0b6fd267ad8f3f03
treee950cbe3f00efa648a41c463ed33c8087d240573
parent86f5e6a7b192721995ece919985ac75222402351
x86: Fix to decode grouped AVX with VEX pp bits

Fix to decode grouped AVX with VEX pp bits which should be
handled as same as last-prefixes. This fixes below warnings
in posttest with CONFIG_CRYPTO_SHA1_SSSE3=y.

 Warning: arch/x86/tools/test_get_len found difference at <sha1_transform_avx>:ffffffff810d5fc0
 Warning: ffffffff810d6069: c5 f9 73 de 04        vpsrldq $0x4,%xmm6,%xmm0
 Warning: objdump says 5 bytes, but insn_get_length() says 4
 ...

With this change, test_get_len can decode it correctly.

 $ arch/x86/tools/test_get_len -v -y
 ffffffff810d6069:       c5 f9 73 de 04          vpsrldq $0x4,%xmm6,%xmm0
 Succeed: decoded and checked 1 instructions

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: yrl.pp-manager.tt@hitachi.com
Link: http://lkml.kernel.org/r/20120210053340.30429.73410.stgit@localhost.localdomain
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/inat.h
arch/x86/include/asm/insn.h
arch/x86/lib/inat.c
arch/x86/lib/insn.c