Fixed the decoding of opcodes after getting vex2 using 0xc5 (#1064)
* Fixed the decoding of opcodes after getting vex2 using 0xc5 * Added testcase for vex. Can and should be expanded * Fixed warning of testcase for vex (parentheses for assignment)
This commit is contained in:
@ -5145,7 +5145,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
|
||||
rex_r = (~vex2 >> 4) & 8;
|
||||
if (b == 0xc5) {
|
||||
vex3 = vex2;
|
||||
b = cpu_ldub_code(env, s->pc++);
|
||||
b = cpu_ldub_code(env, s->pc++) | 0x100;
|
||||
} else {
|
||||
#ifdef TARGET_X86_64
|
||||
s->rex_x = (~vex2 >> 3) & 8;
|
||||
|
Reference in New Issue
Block a user