target-i386: Use gen_nop_modrm for prefetch instructions

Backports commit 26317698ef3be5942c5ee5630997dbc98431c5f6 from qemu
This commit is contained in:
Richard Henderson 2018-02-21 21:22:47 -05:00 committed by Lioncash
parent 55c2a21fe8
commit c7d5d85979
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -8154,7 +8154,7 @@ case 0x101:
case 3: /* prefetchnt0 */
if (mod == 3)
goto illegal_op;
gen_lea_modrm(env, s, modrm);
gen_nop_modrm(env, s, modrm);
/* nothing more to do */
break;
default: /* nop (multi byte) */
@ -8686,8 +8686,7 @@ case 0x101:
mod = (modrm >> 6) & 3;
if (mod == 3)
goto illegal_op;
gen_lea_modrm(env, s, modrm);
/* ignore for now */
gen_nop_modrm(env, s, modrm);
break;
case 0x1aa: /* rsm */
gen_svm_check_intercept(s, pc_start, SVM_EXIT_RSM);