Re: [PATCH 4/7] target/i386: TCG supports 32-bit SYSCALL

2023-06-19 Thread Paolo Bonzini
Il dom 18 giu 2023, 23:51 Paolo Bonzini ha scritto: > TCG supports both 32-bit and 64-bit SYSCALL, so expose it > with "-cpu max" even for 32-bit emulators. > Nope, this is broken... My bad for assuming that glibc will use syscall if available—that doesn't happen because the syscall instruction

Re: [PATCH 4/7] target/i386: TCG supports 32-bit SYSCALL

2023-06-19 Thread Richard Henderson
On 6/18/23 23:51, Paolo Bonzini wrote: TCG supports both 32-bit and 64-bit SYSCALL, so expose it with "-cpu max" even for 32-bit emulators. Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson r~

[PATCH 4/7] target/i386: TCG supports 32-bit SYSCALL

2023-06-18 Thread Paolo Bonzini
TCG supports both 32-bit and 64-bit SYSCALL, so expose it with "-cpu max" even for 32-bit emulators. Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index fc4246223d4..be16c66341d 100