From patchwork Sun Mar 2 19:36:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 25578 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1587620E0B for ; Sun, 2 Mar 2014 19:36:46 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf7650727vcb.4 for ; Sun, 02 Mar 2014 11:36:46 -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:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=BYgUWdULEwZGz8rEYHdlSy4GdCQeJfzDRpI0596dLNQ=; b=QN3b2oggv/9lAnDKtbo0Zk99TD9g3DhfzBatNra97DBkHzVIzQHTcgqzjHMLGtpQrY vACelHvVa+3LUtaZX6xiLyp3b9tNFfborGkdSsxezx1GOgxAqBMDLVwz/eSV72RajfXm SyXCq1V3qcXjvNPc/g32DKGrd28C8andX/mNAdPdHyGYVepXC3yV0HkjtjvEZ/9ocjb9 MAlI7Th0Ki2QEZHZy/eN8Aei4n8HcCOmb2GSP5UZxT2On0vvEDx15UhxymQl3OQg5Yy2 vNbEN8MQCwfGVH3xFFd6rQufcvmAWjQtUV93ntsTcJWcDsxZM2xaS38p/14QI1YmBlK8 NopA== X-Gm-Message-State: ALoCoQlpUM+U9cRZPRhxdurim3NPLS8ZgOY31B0AgyvjQoiuJdp9mmKc/VKuylCRg0vK68lmGdpx X-Received: by 10.236.190.199 with SMTP id e47mr5060306yhn.53.1393789006403; Sun, 02 Mar 2014 11:36:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.166 with SMTP id 35ls1916827qgj.20.gmail; Sun, 02 Mar 2014 11:36:46 -0800 (PST) X-Received: by 10.220.10.2 with SMTP id n2mr13802217vcn.26.1393789006265; Sun, 02 Mar 2014 11:36:46 -0800 (PST) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id kl10si2776299vdb.129.2014.03.02.11.36.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Mar 2014 11:36:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so1893800veb.19 for ; Sun, 02 Mar 2014 11:36:46 -0800 (PST) X-Received: by 10.58.91.101 with SMTP id cd5mr12148410veb.5.1393789006196; Sun, 02 Mar 2014 11:36:46 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.130.193 with SMTP id u1csp8757vcs; Sun, 2 Mar 2014 11:36:45 -0800 (PST) X-Received: by 10.15.41.140 with SMTP id s12mr35474137eev.4.1393789004659; Sun, 02 Mar 2014 11:36:44 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id i43si19469817eev.70.2014.03.02.11.36.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Mar 2014 11:36:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WKCBm-0007nt-Kr; Sun, 02 Mar 2014 19:36:42 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Michael Matz , Andreas Schwab , Riku Voipio Subject: [PATCH 3/5] linux-user: Don't use UID16 on AArch64 Date: Sun, 2 Mar 2014 19:36:40 +0000 Message-Id: <1393789002-29960-4-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393789002-29960-1-git-send-email-peter.maydell@linaro.org> References: <1393789002-29960-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Andreas Schwab The AArch64 kernel defines its __kernel_uid_t type as 32 bits, unlike 32 bit ARM, so don't enable our 16-bit UID wrapper handling. Signed-off-by: Andreas Schwab Signed-off-by: Peter Maydell --- linux-user/syscall_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 3c8869e..d55f396 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -53,7 +53,8 @@ #define TARGET_IOC_NRBITS 8 #define TARGET_IOC_TYPEBITS 8 -#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_SPARC) \ +#if defined(TARGET_I386) || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ + || defined(TARGET_SPARC) \ || defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS) /* 16 bit uid wrappers emulation */ #define USE_UID16