From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9CSU-0008IB-Ia for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:45:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9CST-0003aC-Ln for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:45:02 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9CST-0003ZH-Fa for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:45:01 -0500 From: Peter Maydell Date: Thu, 8 Jan 2015 12:19:44 +0000 Message-Id: <1420719588-8138-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1420719588-8138-1-git-send-email-peter.maydell@linaro.org> References: <1420719588-8138-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 2/6] linux-user/alpha: Add define for NR_shmat to enable shmat syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Richard Henderson , patches@linaro.org 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 Signed-off-by: Peter Maydell --- Possibly other _osf_ syscalls need similar defines; somebody who cares about Alpha might like to audit? --- 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 -- 1.9.1