mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/i386: implement SYSCALL/SYSRET in 32-bit emulators
AMD supports both 32-bit and 64-bit SYSCALL/SYSRET, but the TCG only exposes it for 64-bit targets. For system emulation just reuse the helper; for user-mode emulation the ABI is the same as "int $80". The BSDs does not support any fast system call mechanism in 32-bit mode so add to bsd-user the same stub that FreeBSD has for 64-bit compatibility mode. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6750485bf4
commit
63fd8ef080
8 changed files with 20 additions and 17 deletions
|
@ -26,7 +26,6 @@
|
|||
#include "tcg/helper-tcg.h"
|
||||
#include "tcg/seg_helper.h"
|
||||
|
||||
#ifdef TARGET_X86_64
|
||||
void helper_syscall(CPUX86State *env, int next_eip_addend)
|
||||
{
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
@ -36,7 +35,6 @@ void helper_syscall(CPUX86State *env, int next_eip_addend)
|
|||
env->exception_next_eip = env->eip + next_eip_addend;
|
||||
cpu_loop_exit(cs);
|
||||
}
|
||||
#endif /* TARGET_X86_64 */
|
||||
|
||||
/*
|
||||
* fake user mode interrupt. is_int is TRUE if coming from the int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue