target/i386: disable jmp_opt if EFLAGS.RF is 1
If EFLAGS.RF is 1, special processing in gen_eob_worker() is needed and
therefore goto_tb cannot be used.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 8225bff7c5
)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
0854469050
commit
89ed6d4b6c
@ -6971,7 +6971,7 @@ static void i386_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cpu)
|
|||||||
dc->cpuid_7_1_eax_features = env->features[FEAT_7_1_EAX];
|
dc->cpuid_7_1_eax_features = env->features[FEAT_7_1_EAX];
|
||||||
dc->cpuid_xsave_features = env->features[FEAT_XSAVE];
|
dc->cpuid_xsave_features = env->features[FEAT_XSAVE];
|
||||||
dc->jmp_opt = !((cflags & CF_NO_GOTO_TB) ||
|
dc->jmp_opt = !((cflags & CF_NO_GOTO_TB) ||
|
||||||
(flags & (HF_TF_MASK | HF_INHIBIT_IRQ_MASK)));
|
(flags & (HF_RF_MASK | HF_TF_MASK | HF_INHIBIT_IRQ_MASK)));
|
||||||
/*
|
/*
|
||||||
* If jmp_opt, we want to handle each string instruction individually.
|
* If jmp_opt, we want to handle each string instruction individually.
|
||||||
* For icount also disable repz optimization so that each iteration
|
* For icount also disable repz optimization so that each iteration
|
||||||
|
Loading…
Reference in New Issue
Block a user