From patchwork Tue Jan 27 21:07:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 43855 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8655E2409D for ; Tue, 27 Jan 2015 21:11:42 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id h11sf3800267wiw.1 for ; Tue, 27 Jan 2015 13:11:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=tZy3xEzpLdY1VlrRb/ncMaeX6ECAsZh+au2fYPEq9no=; b=JtN/f+nvXbpMXsLaLGkMdy19/rwCR3e46ekLzx3YwXqrL8yAtrvbNikSNIToxK/ISl ciF2wozarTxbT6Cp07alk1SM4NcNOm2nu5ao4VDyz2FKIZNUswJdE5Q/4RIj8+CNg+36 xVWwz/9iSrlMykEQve+/FSWehvjY2cQKczQS7Mhfx3R6F1v83XQqpQPS59CF11cRUGFh atH2pW/pVhLb23t+v58DO4oP2ieBHvmJTmFtApihb6vMkb3uvD6R+TlOX6leb/cAtnJA dZQA17b4JadvA0RRugO1pDRF3d9Lrbw+Y0VA0yAEtscs/FPfgwRu1rPvKPNN3pqX9UZP 7U2Q== X-Gm-Message-State: ALoCoQm45JfMq1IAWU2G3YHZ3w9JCGxwFm7+T1na96xNwrQZoGAICQmiNI4ydx5y48JH5sRB8gAZ X-Received: by 10.112.30.131 with SMTP id s3mr563242lbh.13.1422393101719; Tue, 27 Jan 2015 13:11:41 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.18.225 with SMTP id z1ls84057lad.109.gmail; Tue, 27 Jan 2015 13:11:41 -0800 (PST) X-Received: by 10.152.6.67 with SMTP id y3mr4163166lay.90.1422393101505; Tue, 27 Jan 2015 13:11:41 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id dh5si2420407lad.33.2015.01.27.13.11.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Jan 2015 13:11:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id u10so15326166lbd.12 for ; Tue, 27 Jan 2015 13:11:41 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr4124318lbc.91.1422393101379; Tue, 27 Jan 2015 13:11:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1227507lbj; Tue, 27 Jan 2015 13:11:40 -0800 (PST) X-Received: by 10.224.63.70 with SMTP id a6mr6205051qai.42.1422393100107; Tue, 27 Jan 2015 13:11:40 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id bo7si3164201qcb.35.2015.01.27.13.11.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 27 Jan 2015 13:11:40 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:49988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDQB-0007cd-43 for patch@linaro.org; Tue, 27 Jan 2015 16:11:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDMD-0004CO-Bo for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGDM4-0005lL-Ih for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:33 -0500 Received: from afflict.kos.to ([92.243.29.197]:35421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDM4-0005kv-D3 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:24 -0500 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 04498264CB; Tue, 27 Jan 2015 22:07:23 +0100 (CET) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 27 Jan 2015 23:07:13 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: peter.maydell@linaro.org, Richard Henderson Subject: [Qemu-devel] [PULL 02/11] linux-user/alpha: Add define for NR_shmat to enable shmat syscall X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell 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 Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- 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