[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/6] linux-user/sparc: Don't use 16-bit UIDs on SPARC V9
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 1/6] linux-user/sparc: Don't use 16-bit UIDs on SPARC V9 |
Date: |
Thu, 30 Mar 2023 15:18:51 +0200 |
The 64-bit SPARC V9 syscall ABI uses 32-bit UIDs. Only enable
the 16-bit UID wrappers for 32-bit SPARC (V7 and V8).
Possibly missed in commit 992f48a036 ("Support for 32 bit
ABI on 64 bit targets (only enabled Sparc64)").
Reported-by: Gregor Riepl <onitake@gmail.com>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: Zach van Rijn <me@zv.io>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1394
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20230327131910.78564-1-philmd@linaro.org>
---
linux-user/syscall_defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 614a1cbc8e..cc37054cb5 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -61,7 +61,7 @@
#if (defined(TARGET_I386) && defined(TARGET_ABI32)) \
|| (defined(TARGET_ARM) && defined(TARGET_ABI32)) \
- || defined(TARGET_SPARC) \
+ || (defined(TARGET_SPARC) && defined(TARGET_ABI32)) \
|| defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS)
/* 16 bit uid wrappers emulation */
#define USE_UID16
--
2.38.1
- [PULL 0/6] Misc fixes for 2023-03-30, Philippe Mathieu-Daudé, 2023/03/30
- [PULL 1/6] linux-user/sparc: Don't use 16-bit UIDs on SPARC V9,
Philippe Mathieu-Daudé <=
- [PULL 2/6] linux-user/mips: Use P5600 as default CPU to run NaN2008 ELF binaries, Philippe Mathieu-Daudé, 2023/03/30
- [PULL 4/6] tests/avocado: Enable TuxRun/mips64 (big-endian) test, Philippe Mathieu-Daudé, 2023/03/30
- [PULL 5/6] hw/i2c: pmbus: block uninitialised string reads, Philippe Mathieu-Daudé, 2023/03/30
- [PULL 3/6] hw/mips/gt64xxx_pci: Don't endian-swap GT_PCI0_CFGADDR, Philippe Mathieu-Daudé, 2023/03/30
- [PULL 6/6] block/dmg: Ignore C99 prototype declaration mismatch from <lzfse.h>, Philippe Mathieu-Daudé, 2023/03/30
- Re: [PULL 0/6] Misc fixes for 2023-03-30, Peter Maydell, 2023/03/31