[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/11] linux-user/alpha: Add define for NR_shmat to e
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PULL 02/11] linux-user/alpha: Add define for NR_shmat to enable shmat syscall |
Date: |
Tue, 27 Jan 2015 23:07:13 +0200 |
From: Peter Maydell <address@hidden>
For historical reasons, the define for the shmat() syscall on Alpha is
NR_osf_shmat; however it has the same semantics as this syscall does
on all other architectures, so define TARGET_NR_shmat as well so that
QEMU's code for the syscall is enabled.
This patch brings our behaviour on the LTP shmat tests into line
with that for ARM (still not a perfect pass rate but not "this syscall
is completely broken" as we had before).
(Problem detected via a clang warning that the do_shmat() function
was unused on Alpha.)
Cc: Richard Henderson <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/alpha/syscall_nr.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux-user/alpha/syscall_nr.h b/linux-user/alpha/syscall_nr.h
index 625f301..dde8d5c 100644
--- a/linux-user/alpha/syscall_nr.h
+++ b/linux-user/alpha/syscall_nr.h
@@ -185,6 +185,10 @@
#define TARGET_NR_osf_utsname 207
#define TARGET_NR_lchown 208
#define TARGET_NR_osf_shmat 209
+/* this has the usual shmat semantics so give it the name syscall.c expects
+ * so that our support for it is enabled.
+ */
+#define TARGET_NR_shmat TARGET_NR_osf_shmat
#define TARGET_NR_shmctl 210
#define TARGET_NR_shmdt 211
#define TARGET_NR_shmget 212
--
2.1.4
- [Qemu-devel] [PULL 03/11] linux-user/arm/nwfpe: Delete unused aCC array, (continued)
- [Qemu-devel] [PULL 03/11] linux-user/arm/nwfpe: Delete unused aCC array, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 04/11] linux-user/main.c: Call cpu_exec_start/end on all target archs, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 08/11] linux-user: Fix ioctl cmd type mismatch on 64-bit targets, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 01/11] linux-user/signal.c: Remove current_exec_domain_sig(), riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 09/11] mips64-linux-user: Fix definition of struct sigaltstack, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 06/11] linux-user/signal.c: Remove unnecessary wrapper copy_siginfo_to_user, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 11/11] linux-user: support target-to-host SCM_CREDENTIALS, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 07/11] linux-user: translate resource also for prlimit64, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 05/11] linux-user/main.c: Mark end_exclusive() as possibly unused, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 10/11] linux-user: Fix broken m68k signal handling on 64 bit hosts, riku . voipio, 2015/01/27
- [Qemu-devel] [PULL 02/11] linux-user/alpha: Add define for NR_shmat to enable shmat syscall,
riku . voipio <=
- Re: [Qemu-devel] [PULL 00/11] linux-user-updates, Peter Maydell, 2015/01/27