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:
dmarxn
2019-02-25 15:14:20 +02:00
committed by Nguyen Anh Quynh
parent 738d102989
commit 5bf6d77e4e
2 changed files with 59 additions and 1 deletions

View File

@ -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;