From patchwork Wed Mar 19 14:02:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 26580 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B010F20534 for ; Wed, 19 Mar 2014 14:04:28 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w5sf18710998qac.0 for ; Wed, 19 Mar 2014 07:04:28 -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=DKDoreb1ACdnG1rM5Q2BiiT0jiKn2sRaEXeAkiddnEA=; b=D5aeEFnke9hnrv1x1zrxh/AQGRL59ycruNY0g3cCTnphbCHGKYr8mvFzX8vSqV90Xq Xwnxny3ofC2JmG694U84DC8MgUqgnVrT87V0SQ7cDJgbPNjWJY0hadfCzqnbZWj/Ibx3 gPRsZbEfBv9fAWujnDrejy39ZyQEq0ETzkLwLNnQ0LX20ww2AChOjVH0PL6OShvHfxa/ taxwh3dIMUxmSSThc58spx2PYx/KlmUq27dv/WUiMK+3Y47XbIS4EjYR01tIAdkDVvUg p8FuhSxtgGoEt6ZFypwX8ideiYyBxEXmCk+yxDvIWbChXKzoidNFkspHJ51WGspALVaP x4LQ== X-Gm-Message-State: ALoCoQlNCLKnZn3knwcxNgq2sfpwJiXR34ZY4ex3k7pYDW7JZ7G/IAc3AmwJUDSAK/oQ/ceJ7jM/ X-Received: by 10.236.4.101 with SMTP id 65mr3088181yhi.57.1395237868416; Wed, 19 Mar 2014 07:04:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.100 with SMTP id u91ls737585qgu.74.gmail; Wed, 19 Mar 2014 07:04:28 -0700 (PDT) X-Received: by 10.52.180.98 with SMTP id dn2mr1087vdc.58.1395237868192; Wed, 19 Mar 2014 07:04:28 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id mp4si174442vcb.4.2014.03.19.07.04.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 07:04:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id cz12so8912534veb.16 for ; Wed, 19 Mar 2014 07:04:28 -0700 (PDT) X-Received: by 10.58.188.52 with SMTP id fx20mr1346256vec.28.1395237868123; Wed, 19 Mar 2014 07:04:28 -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 i9csp302281vck; Wed, 19 Mar 2014 07:04:27 -0700 (PDT) X-Received: by 10.194.82.35 with SMTP id f3mr28906143wjy.36.1395237865805; Wed, 19 Mar 2014 07:04:25 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t3si10233742wiz.50.2014.03.19.07.04.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 19 Mar 2014 07:04:25 -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]:41554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQH6W-0000Yr-5c for patch@linaro.org; Wed, 19 Mar 2014 10:04:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQH5L-0007k3-2Q for qemu-devel@nongnu.org; Wed, 19 Mar 2014 10:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQH5G-0005ye-84 for qemu-devel@nongnu.org; Wed, 19 Mar 2014 10:03:11 -0400 Received: from afflict.kos.to ([92.243.29.197]:54511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQH5F-0005vC-Tb for qemu-devel@nongnu.org; Wed, 19 Mar 2014 10:03:06 -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 2FF8626565; Wed, 19 Mar 2014 15:03:04 +0100 (CET) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 19 Mar 2014 16:02:57 +0200 Message-Id: <3b899ea7d405dc7634ac629aa7b0e7639d506d9f.1395237255.git.riku.voipio@linaro.org> 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 , Anthony Liguori Subject: [Qemu-devel] [PULL for-2.0 2/7] linux-user: Don't return uninitialized value for atomic_barrier 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=neutral (google.com: 209.85.128.171 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: Peter Maydell QEMU's implementation of the m68k atomic_barrier syscall, like the kernel's, is just a no-op. However we still need to return a result code from it. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ffc11de..b5eadb1 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9148,6 +9148,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, case TARGET_NR_atomic_barrier: { /* Like the kernel implementation and the qemu arm barrier, no-op this? */ + ret = 0; break; } #endif