From patchwork Wed May 25 10:32:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 68577 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1150663qge; Wed, 25 May 2016 04:17:48 -0700 (PDT) X-Received: by 10.55.217.89 with SMTP id u86mr2794073qki.167.1464175068252; Wed, 25 May 2016 04:17:48 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 19si7316502qhi.122.2016.05.25.04.17.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 25 May 2016 04:17:48 -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; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Wot-0008ES-II for patch@linaro.org; Wed, 25 May 2016 07:17:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5W7S-0001WI-2S for qemu-devel@nongnu.org; Wed, 25 May 2016 06:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5W7H-0003Px-5U for qemu-devel@nongnu.org; Wed, 25 May 2016 06:32:52 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:32998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5W7G-0003Pc-TO for qemu-devel@nongnu.org; Wed, 25 May 2016 06:32:43 -0400 Received: by mail-lf0-x22b.google.com with SMTP id e131so16313457lfb.0 for ; Wed, 25 May 2016 03:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VPGDLCL/rCqghy7NcqnmsUTi7f/Y4Xxtb3AKl0/xUKk=; b=W5Yzhd9SSuC7hyVca7pDsm6jg+8I7KAPT5NR0kbsDx97eUlVtHLvceAvnLh2FrOVvh TokK5UtPSVzLrHd0p8WfjPS5cvPDOhNweu64TiDSuiC2kqkn0ChMTjqksHcpOO3PnBSb JXRO47o2felY258X7L4HCJGGXaQJ0+Cg9hGC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VPGDLCL/rCqghy7NcqnmsUTi7f/Y4Xxtb3AKl0/xUKk=; b=NrgXLpivA8EGLanZx3J0U/XxRNY8Ea7MsHMoLecmDVGRvtB5VC7qI1enbaHUsFB/L4 zKQpLwvSBZWuWmWwTESCnwAm5BJkmfCOwZwgMNYMjuJ94b9zD6L6aCUPQQqcv98TgaRC eo2po+ruJNffs+PLnmyxxpktLIiimoQN6lsUjE82QMm1+UCM/bNnVsmgw1xkCLbdyOIB JPVMfqsHVB1fcWSA8deIF6lZPrzpjQATJ7ApwF+ONd77n0KdfX3NOQLZUOwtsa3dpnmL Mp213bjwhHBzTnz95jYt82PCNM4FNuKCS+JKZmPR0B9Kz5knQpH23a4K1I5B8ZlI0im5 6Kuw== X-Gm-Message-State: ALyK8tLcmtzYOQwmwaXxX5784BbmXvV0gk1sXIBbPI/HW48t4IOpsbrUEayljhJQCaZcyOpN X-Received: by 10.25.83.11 with SMTP id h11mr769764lfb.36.1464172362211; Wed, 25 May 2016 03:32:42 -0700 (PDT) Received: from beaming.home (91-157-168-132.elisa-laajakaista.fi. [91.157.168.132]) by smtp.gmail.com with ESMTPSA id o75sm1379610lfi.9.2016.05.25.03.32.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 May 2016 03:32:41 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 25 May 2016 13:32:04 +0300 Message-Id: <5f13357c85bfa1e598d34f6b01ad79bfe441e386.1464153942.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22b Subject: [Qemu-devel] [PULL 32/38] linux-user: x86_64: Don't use 16-bit UIDs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell The 64-bit x86 syscall ABI uses 32-bit UIDs; only define USE_UID16 for 32-bit x86. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.1.4 diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 9e2b3c2..34af15a 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -55,7 +55,8 @@ #define TARGET_IOC_NRBITS 8 #define TARGET_IOC_TYPEBITS 8 -#if defined(TARGET_I386) || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ +#if (defined(TARGET_I386) && defined(TARGET_ABI32)) \ + || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ || defined(TARGET_SPARC) \ || defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS) /* 16 bit uid wrappers emulation */