qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 11/11] target/i386: implement SYSCALL/SYSRET in 32-bit emu


From: Richard Henderson
Subject: Re: [PATCH v3 11/11] target/i386: implement SYSCALL/SYSRET in 32-bit emulators
Date: Mon, 26 Jun 2023 09:56:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 6/23/23 15:17, Paolo Bonzini wrote:
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.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
  bsd-user/i386/target_arch_cpu.h     |  4 ++++
  linux-user/i386/cpu_loop.c          | 13 +++++++++----
  target/i386/cpu.c                   |  4 ++--
  target/i386/helper.h                |  2 --
  target/i386/tcg/seg_helper.c        |  7 +++++--
  target/i386/tcg/sysemu/seg_helper.c |  7 ++++---
  target/i386/tcg/translate.c         |  2 --
  target/i386/tcg/user/seg_helper.c   |  2 --
  8 files changed, 24 insertions(+), 17 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]