|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 08/10] target/i386: implement 32-bit SYSCALL for linux-user |
Date: | Tue, 20 Jun 2023 18:10:23 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 6/20/23 17:16, Paolo Bonzini wrote:
@@ -211,6 +211,9 @@ void cpu_loop(CPUX86State *env)switch(trapnr) {case 0x80: +#ifdef TARGET_ABI32 + case EXCP_SYSCALL: +#endif /* linux syscall from int $0x80 */
ABI32 includes x32. I think you want TARGET_I386.
+#if defined CONFIG_SOFTMMU || defined CONFIG_LINUX_USER +#define TCG_EXT2_NOBSD_FEATURES CPUID_EXT2_SYSCALL +#else +#define TCG_EXT2_NOBSD_FEATURES 0 +#endif
Missing TARGET_I386 test per above. Better named TCG_EXT2_USERONLY_FEATURES.Warner, if I'm reading freebsd-src correctly, sys/x86 (aka 32-bit) does not use sysenter/sysret? I only see that under sys/amd64 (where fast_syscall32 is a cya nop).
r~
[Prev in Thread] | Current Thread | [Next in Thread] |