diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-29 15:12:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-08 10:33:38 +0200 |
commit | 330e6adc1acd2a235a96b502b3dd15ba6e77c228 (patch) | |
tree | daa19bc768be4afd40950c83a68d06e0091f4451 /target/i386/tcg/sysemu | |
parent | 536032566b1fc1f4b66450770dbb30b49e736b52 (diff) | |
download | qemu-330e6adc1acd2a235a96b502b3dd15ba6e77c228.zip qemu-330e6adc1acd2a235a96b502b3dd15ba6e77c228.tar.gz qemu-330e6adc1acd2a235a96b502b3dd15ba6e77c228.tar.bz2 |
target/i386: cleanup PAUSE helpers
Use decode.c's support for intercepts, doing the check in TCG-generated
code rather than the helper. This is cleaner because it allows removing
the eip_addend argument to helper_pause(), even though it adds a bit of
bloat for opcode 0x90's new decoding function.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/tcg/sysemu')
-rw-r--r-- | target/i386/tcg/sysemu/misc_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/tcg/sysemu/misc_helper.c b/target/i386/tcg/sysemu/misc_helper.c index e41c883..093cc2d 100644 --- a/target/i386/tcg/sysemu/misc_helper.c +++ b/target/i386/tcg/sysemu/misc_helper.c @@ -547,7 +547,7 @@ G_NORETURN void helper_mwait(CPUX86State *env, int next_eip_addend) /* XXX: not complete but not completely erroneous */ if (cs->cpu_index != 0 || CPU_NEXT(cs) != NULL) { - do_pause(env); + helper_pause(env); } else { helper_hlt(env); } |