[PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-09-04 Thread Denys Vlasenko
Before this patch, users need to do this to fetch vex.: if (insn->vex_prefix.nbytes == 2) { vex_ = ((insn->vex_prefix.bytes[1] >> 3) & 0xf) ^ 0xf; } if (insn->vex_prefix.nbytes == 3) { vex_ = ((insn->vex_prefix.bytes[2] >> 3) &

[PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-09-04 Thread Denys Vlasenko
Before this patch, users need to do this to fetch vex.: if (insn-vex_prefix.nbytes == 2) { vex_ = ((insn-vex_prefix.bytes[1] 3) 0xf) ^ 0xf; } if (insn-vex_prefix.nbytes == 3) { vex_ = ((insn-vex_prefix.bytes[2] 3) 0xf) ^ 0xf;

Re: Re: [PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-21 Thread Masami Hiramatsu
(2014/05/19 23:58), Denys Vlasenko wrote: > On 05/17/2014 05:59 PM, Masami Hiramatsu wrote: >> (2014/05/17 3:34), Denys Vlasenko wrote: >>> Before this patch, users need to do this to fetch vex.: >>> >>> if (insn->vex_prefix.nbytes == 2) { >>> vex_ =

Re: Re: [PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-21 Thread Masami Hiramatsu
(2014/05/19 23:58), Denys Vlasenko wrote: On 05/17/2014 05:59 PM, Masami Hiramatsu wrote: (2014/05/17 3:34), Denys Vlasenko wrote: Before this patch, users need to do this to fetch vex.: if (insn-vex_prefix.nbytes == 2) { vex_ = ((insn-vex_prefix.bytes[1] 3)

Re: [PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-19 Thread Denys Vlasenko
On 05/17/2014 05:59 PM, Masami Hiramatsu wrote: > (2014/05/17 3:34), Denys Vlasenko wrote: >> Before this patch, users need to do this to fetch vex.: >> >> if (insn->vex_prefix.nbytes == 2) { >> vex_ = ((insn->vex_prefix.bytes[1] >> 3) & 0xf) ^ 0xf; >> } >>

Re: [PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-19 Thread Denys Vlasenko
On 05/17/2014 05:59 PM, Masami Hiramatsu wrote: (2014/05/17 3:34), Denys Vlasenko wrote: Before this patch, users need to do this to fetch vex.: if (insn-vex_prefix.nbytes == 2) { vex_ = ((insn-vex_prefix.bytes[1] 3) 0xf) ^ 0xf; } if

Re: [PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-17 Thread Masami Hiramatsu
(2014/05/17 3:34), Denys Vlasenko wrote: > Before this patch, users need to do this to fetch vex.: > > if (insn->vex_prefix.nbytes == 2) { > vex_ = ((insn->vex_prefix.bytes[1] >> 3) & 0xf) ^ 0xf; > } > if (insn->vex_prefix.nbytes == 3) { >

Re: [PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-17 Thread Masami Hiramatsu
(2014/05/17 3:34), Denys Vlasenko wrote: Before this patch, users need to do this to fetch vex.: if (insn-vex_prefix.nbytes == 2) { vex_ = ((insn-vex_prefix.bytes[1] 3) 0xf) ^ 0xf; } if (insn-vex_prefix.nbytes == 3) {

[PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-16 Thread Denys Vlasenko
Before this patch, users need to do this to fetch vex.: if (insn->vex_prefix.nbytes == 2) { vex_ = ((insn->vex_prefix.bytes[1] >> 3) & 0xf) ^ 0xf; } if (insn->vex_prefix.nbytes == 3) { vex_ = ((insn->vex_prefix.bytes[2] >> 3) &

[PATCH 1/2] x86: insn decoder: create artificial 3rd byte for 2-byte VEX

2014-05-16 Thread Denys Vlasenko
Before this patch, users need to do this to fetch vex.: if (insn-vex_prefix.nbytes == 2) { vex_ = ((insn-vex_prefix.bytes[1] 3) 0xf) ^ 0xf; } if (insn-vex_prefix.nbytes == 3) { vex_ = ((insn-vex_prefix.bytes[2] 3) 0xf) ^ 0xf;