Skip to contentSkip to conversation

linux-user: x86_64: Don't use 16-bit UIDs

PATCH In review Peter Maydell 1 participant 2 messages Mar 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: x86_64: Don't use 16-bit UIDs

The 64-bit x86 syscall ABI uses 32-bit UIDs; only define USE_UID16 for 32-bit x86.

---
 linux-user/syscall_defs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/syscall_defs.h +2 -1
index 9e2b3c2..34af15a 100644
@@ -55,7 +55,8 @@
 #define TARGET_IOC_NRBITS	8
 #define TARGET_IOC_TYPEBITS	8
 
-#if defined(TARGET_I386) || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \
+#if (defined(TARGET_I386) && defined(TARGET_ABI32)) \
+    || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \
     || defined(TARGET_SPARC) \
     || defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS)
     /* 16 bit uid wrappers emulation */
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Peter Maydell

The 64-bit x86 syscall ABI uses 32-bit UIDs; only define USE_UID16 for 32-bit x86.

Obviously I only cc'd qemu-arm on this (and the other UID patches) because my brain was on autopilot...

-- PMM