mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:35:16 +00:00
target-i386: Use gen_nop_modrm for prefetch instructions
Backports commit 26317698ef3be5942c5ee5630997dbc98431c5f6 from qemu
This commit is contained in:
parent
55c2a21fe8
commit
c7d5d85979
|
@ -8154,7 +8154,7 @@ case 0x101:
|
||||||
case 3: /* prefetchnt0 */
|
case 3: /* prefetchnt0 */
|
||||||
if (mod == 3)
|
if (mod == 3)
|
||||||
goto illegal_op;
|
goto illegal_op;
|
||||||
gen_lea_modrm(env, s, modrm);
|
gen_nop_modrm(env, s, modrm);
|
||||||
/* nothing more to do */
|
/* nothing more to do */
|
||||||
break;
|
break;
|
||||||
default: /* nop (multi byte) */
|
default: /* nop (multi byte) */
|
||||||
|
@ -8686,8 +8686,7 @@ case 0x101:
|
||||||
mod = (modrm >> 6) & 3;
|
mod = (modrm >> 6) & 3;
|
||||||
if (mod == 3)
|
if (mod == 3)
|
||||||
goto illegal_op;
|
goto illegal_op;
|
||||||
gen_lea_modrm(env, s, modrm);
|
gen_nop_modrm(env, s, modrm);
|
||||||
/* ignore for now */
|
|
||||||
break;
|
break;
|
||||||
case 0x1aa: /* rsm */
|
case 0x1aa: /* rsm */
|
||||||
gen_svm_check_intercept(s, pc_start, SVM_EXIT_RSM);
|
gen_svm_check_intercept(s, pc_start, SVM_EXIT_RSM);
|
||||||
|
|
Loading…
Reference in a new issue