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 <pbonz...@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.hender...@linaro.org>


r~

Reply via email to