From patchwork Tue Oct 18 13:21:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 78040 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp885842qge; Tue, 18 Oct 2016 06:29:02 -0700 (PDT) X-Received: by 10.55.118.2 with SMTP id r2mr473783qkc.117.1476797342436; Tue, 18 Oct 2016 06:29:02 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z15si20965347qka.254.2016.10.18.06.29.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 18 Oct 2016 06:29:02 -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]:41530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwURx-0002ni-QH for patch@linaro.org; Tue, 18 Oct 2016 09:29:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwULG-0006GX-5q for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwULE-0000f2-Oq for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:06 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:35937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwULE-0000eX-Gt for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:04 -0400 Received: by mail-lf0-x232.google.com with SMTP id b75so346721477lfg.3 for ; Tue, 18 Oct 2016 06:22:04 -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=A3CaVHQJ8szVwiR0wdXfF7U9LyGEMuAVe4rxDstQtBk=; b=ame+t3gkGhBg4Vor0ySi8LyxQqPcEWwnp8QujLcfFn/JHLcVEV9eoibOzqasodRZ23 ig/MNNfoDJ7JS6BG66HAdJ6U7kh5Px2+/pQZl95cYj2LyQjR29YCpLEjU7Elsd3AJLlh VQunYLJ1YTCEAJmRuHsrvIQ8jiXYVqCTNQQLw= 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=A3CaVHQJ8szVwiR0wdXfF7U9LyGEMuAVe4rxDstQtBk=; b=Yef+Jmmp0CgMZiAr5KQQnlEQDdzfVZ/BT7SUuguYPy/MZYaBfblXQPHX61crG6iGM9 PcupLN2g7SFXSZ9zjLEGlh5XbFoJrCG9cXdvggedymovLpxkpAW3z4u12XFvTGJTuE4V TnYLzeyW2OxsP7r1R5fDu7aiIvNdFw5Yxlpkc1mVuXWAVY82xbc4A5uND/Ss52kptDGv 6RU328y8IPEDUMy5O5gKQieQYvatWG6tIBMR35s0UJHYu2s5eM2lhN53BguXixvO3XNX 6IAF72nY5AVm9G/Vm00yKU+OjeM7RZe4FMqNFLtAknrM/3Y74OBcNyHHZFwdZw6cVPab 2qcw== X-Gm-Message-State: AA6/9RktclCt+NbmTmZuokg9DQZv+tPlsKhw1SHExBvkYoqc3LMYoMYaZQ9DcOijTZOLKXVA X-Received: by 10.25.24.205 with SMTP id 74mr650037lfy.34.1476796921883; Tue, 18 Oct 2016 06:22:01 -0700 (PDT) Received: from beaming.home (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id 201sm9535359ljf.48.2016.10.18.06.22.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 06:22:01 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 18 Oct 2016 16:21:36 +0300 Message-Id: <7ff289e741b3ad6cc77b248e82afcede8c246180.1476796525.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::232 Subject: [Qemu-devel] [PULL v2 08/22] linux-user: sparc64: Use correct target SHMLBA in shmat() 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 In commit 40df8c0c0722 support was added for target-specific handling of SHMLBA. Unfortunately the sparc64-specific part of the change got lost somewhere between the patch being posted to the list and going into master: http://patchwork.ozlabs.org/patch/646980/ http://patchwork.ozlabs.org/patch/673339/ Add the accidentally-dropped code. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/sparc64/target_syscall.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.1.4 diff --git a/linux-user/sparc64/target_syscall.h b/linux-user/sparc64/target_syscall.h index b7e3bf8..2cbbaae 100644 --- a/linux-user/sparc64/target_syscall.h +++ b/linux-user/sparc64/target_syscall.h @@ -23,4 +23,11 @@ struct target_pt_regs { #define TARGET_MLOCKALL_MCL_CURRENT 0x2000 #define TARGET_MLOCKALL_MCL_FUTURE 0x4000 +#define TARGET_FORCE_SHMLBA + +static inline abi_ulong target_shmlba(CPUSPARCState *env) +{ + return MAX(TARGET_PAGE_SIZE, 16 * 1024); +} + #endif /* SPARC64_TARGET_SYSCALL_H */