aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-03-02 10:31:35 -0800
committerRichard Henderson <rth@twiddle.net>2016-03-14 10:52:56 -0700
commit26317698ef3be5942c5ee5630997dbc98431c5f6 (patch)
treef3c12d359bf95b75de30a7dfba2f610160070d79 /target-i386
parente2e02a820741ec4d96b8f313b06a2a7ed5e94fbd (diff)
target-i386: Use gen_nop_modrm for prefetch instructions
Tested-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/translate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 0b67165c51..2631c774b7 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -7475,7 +7475,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
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) */
@@ -7973,8 +7973,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
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);