Denys Vlasenko
8a764a875f
x86/asm/decoder: Create artificial 3rd byte for 2-byte VEX
...
Before this patch, users need to do this to fetch vex.vvvv:
if (insn->vex_prefix.nbytes == 2) {
vex_vvvv = ((insn->vex_prefix.bytes[1] >> 3) & 0xf) ^ 0xf;
}
if (insn->vex_prefix.nbytes == 3) {
vex_vvvv = ((insn->vex_prefix.bytes[2] >> 3) & 0xf) ^ 0xf;
}
Make it so that insn->vex_prefix.bytes[2] always contains
vex.wvvvvLpp bits.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Frank Ch. Eigler <fche@redhat.com>
Cc: Jim Keniston <jkenisto@linux.vnet.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1423767879-31691-1-git-send-email-dvlasenk@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-02-18 21:01:50 +01:00
..
2015-01-29 10:51:32 -08:00
2015-01-30 10:31:14 -08:00
2015-02-09 14:28:42 -08:00
2015-02-09 17:53:53 -08:00
2015-01-29 10:51:32 -08:00
2015-01-08 15:10:52 -08:00
2014-12-10 15:17:46 -05:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2014-12-19 17:57:51 -08:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2015-02-09 14:28:42 -08:00
2015-02-05 13:35:30 -08:00
2015-02-09 09:47:05 +08:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2015-02-09 14:28:42 -08:00
2015-02-09 14:28:42 -08:00
2015-01-29 10:51:32 -08:00
2015-01-29 10:51:32 -08:00
2015-02-05 13:35:30 -08:00
2015-02-09 14:28:42 -08:00
2015-01-29 10:51:32 -08:00
2014-12-11 14:27:06 -08:00
2015-02-18 21:01:50 +01:00
2015-01-29 10:51:32 -08:00