From patchwork Mon Mar 10 12:22:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 25956 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 43E6F2055F for ; Mon, 10 Mar 2014 12:24:06 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf17339461qcq.0 for ; Mon, 10 Mar 2014 05:24:06 -0700 (PDT) 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=3eCT21j9wCvWp+QrynkLxV22u1OKk8LYtXP+ubD4SbY=; b=jPvYB6xqH5ZmK8gEGkLNxs2T+olLVEEOJjedBns7MKpcW1/wayrOnZCLc1G8mdw51U Wrrsf0ZJIxLP1I4xKT/mAnARJdfyCAt3X++RjCgud09Ng9pv4/Bl2Yl8UakMPidFkb5z xK7JvpiZx3vzPPbUp+1S+Fz9ACpFMptLW9m2LJA/JOb2XbwHUVXE4UougVjJNJIdR6SL q5Vly7QgbpBxbA+PSxjx2cfMPyNr58zklGP9eL39Enc4xn/9nc23yA89Gm9MvmGe2Km7 d7nGNMlgO599ArtGIbEZa5jBOfcfoulxVwtkcIk53rjIL5U8ThU9XFoGCW/kCul2bkHD cugA== X-Gm-Message-State: ALoCoQlK3KMwP8BnYMwv3ptnPoF4zAI0UHxbwn1K+2vWVxCEaMgt1dVARwNXTZZX0NjyaXQRiN35 X-Received: by 10.58.22.166 with SMTP id e6mr12274055vef.6.1394454246106; Mon, 10 Mar 2014 05:24:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.80 with SMTP id w74ls2076703qgd.95.gmail; Mon, 10 Mar 2014 05:24:06 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr22413771vcb.17.1394454245979; Mon, 10 Mar 2014 05:24:05 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id yv5si4657482veb.64.2014.03.10.05.24.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 05:24:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 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.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so6833608veb.37 for ; Mon, 10 Mar 2014 05:24:05 -0700 (PDT) X-Received: by 10.52.113.1 with SMTP id iu1mr321974vdb.35.1394454245851; Mon, 10 Mar 2014 05:24:05 -0700 (PDT) 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.220.78.9 with SMTP id i9csp114640vck; Mon, 10 Mar 2014 05:24:05 -0700 (PDT) X-Received: by 10.224.11.196 with SMTP id u4mr40746799qau.4.1394454245351; Mon, 10 Mar 2014 05:24:05 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q64si9296330qgd.70.2014.03.10.05.24.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Mar 2014 05:24:05 -0700 (PDT) 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]:48393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzFU-0003jb-T7 for patch@linaro.org; Mon, 10 Mar 2014 08:24:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzEZ-0002on-C0 for qemu-devel@nongnu.org; Mon, 10 Mar 2014 08:23:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMzEU-00083y-Uv for qemu-devel@nongnu.org; Mon, 10 Mar 2014 08:23:07 -0400 Received: from afflict.kos.to ([92.243.29.197]:50039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzEU-00083j-Oo for qemu-devel@nongnu.org; Mon, 10 Mar 2014 08:23:02 -0400 Received: from localhost.localdomain (afflict [92.243.29.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id B339126563; Mon, 10 Mar 2014 13:23:01 +0100 (CET) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 10 Mar 2014 14:22:55 +0200 Message-Id: X-Mailer: git-send-email 1.7.2.5 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, Andreas Schwab Subject: [Qemu-devel] [PATCH 3/8] linux-user: Don't use UID16 on AArch64 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=neutral (google.com: 209.85.128.178 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 Signed-off-by: Riku Voipio Reviewed-by: Richard Henderson --- 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