From patchwork Fri Oct 2 13:01:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 54435 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 17E3323009 for ; Fri, 2 Oct 2015 13:49:10 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf8293135wic.1 for ; Fri, 02 Oct 2015 06:49:09 -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=Q42P9Lb6dNnrFetrX2eo+lo5F8Yc+Gbxekf2PBYOq4Y=; b=Jn47rRuB9FJkVar8nDHXfsbr8pQW4pOa4CLrpVj0pwzX/n1izGc/bkk7A1O40jbsl9 wiXDFfyeRzgqEKDuBgO1AqXrfIeQcLcN3Om27P5ohbSIsBfLAil0lrh+bjVBDvJ79+H0 Vuu+JqDDIxOpOPjxhyXjRuOP7Tgzl4j0Z3TlfYi+NvPYjuP55Uksnas8YttR0QSUnfcC Fa59ibZtS8zmOt3GsGYF5JJbubCG5KAPLnLO8dAX4EwTUd3q0ODGdvLhILXJTMoESKBT ZlounZnOUb4GGk5hmJGhMt/1A/zdTxsiqgysZMn/TYWC0P57HeJFVFG6Yb3B/F5cTh/T zYUQ== X-Gm-Message-State: ALoCoQn2WwhmtTfBq1A0vjrrstxmPSWwfd6B74bBjoCYgtJWJDADx733q+h2x7dhl2iSTk5gu9/D X-Received: by 10.194.109.233 with SMTP id hv9mr2632286wjb.1.1443793749429; Fri, 02 Oct 2015 06:49:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.218.208 with SMTP id r199ls246897lfg.2.gmail; Fri, 02 Oct 2015 06:49:09 -0700 (PDT) X-Received: by 10.112.25.4 with SMTP id y4mr5649531lbf.113.1443793749269; Fri, 02 Oct 2015 06:49:09 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id k88si6306615lfi.54.2015.10.02.06.49.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Oct 2015 06:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by labzv5 with SMTP id zv5so93219963lab.1 for ; Fri, 02 Oct 2015 06:49:09 -0700 (PDT) X-Received: by 10.25.205.198 with SMTP id d189mr3590554lfg.72.1443793749140; Fri, 02 Oct 2015 06:49:09 -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.112.59.35 with SMTP id w3csp1257352lbq; Fri, 2 Oct 2015 06:49:08 -0700 (PDT) X-Received: by 10.140.109.6 with SMTP id k6mr19690260qgf.28.1443793740295; Fri, 02 Oct 2015 06:49:00 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 9si10364622qgt.30.2015.10.02.06.49.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 02 Oct 2015 06:49:00 -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]:59908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi0hn-0008Aj-Ht for patch@linaro.org; Fri, 02 Oct 2015 09:48:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhzxl-0005Qr-95 for qemu-devel@nongnu.org; Fri, 02 Oct 2015 09:01:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhzxh-0000g8-QP for qemu-devel@nongnu.org; Fri, 02 Oct 2015 09:01:25 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:35775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhzxh-0000fd-Jt for qemu-devel@nongnu.org; Fri, 02 Oct 2015 09:01:21 -0400 Received: by lbwr8 with SMTP id r8so25930019lbw.2 for ; Fri, 02 Oct 2015 06:01:21 -0700 (PDT) X-Received: by 10.112.198.97 with SMTP id jb1mr5395913lbc.8.1443790880965; Fri, 02 Oct 2015 06:01:20 -0700 (PDT) Received: from localhost.localdomain (91-157-196-38.elisa-laajakaista.fi. [91.157.196.38]) by smtp.gmail.com with ESMTPSA id w143sm1514751lfd.2.2015.10.02.06.01.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Oct 2015 06:01:20 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 2 Oct 2015 16:01:03 +0300 Message-Id: <08703b9f7bcd7ca2152d51a4c8893d26f1dc28de.1443790691.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.5.3 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.175 Cc: Chen Gang Subject: [Qemu-devel] [PULL 11/13] linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mailfrom=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: Chen Gang Under Alpha host, EAGAIN is redefined to 35, so it need be remapped too. Reviewed-by: Peter Maydell Signed-off-by: Chen Gang 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 9528344..98b5766 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -457,6 +457,7 @@ static uint16_t target_to_host_errno_table[ERRNO_TABLE_SIZE] = { * minus the errnos that are not actually generic to all archs. */ static uint16_t host_to_target_errno_table[ERRNO_TABLE_SIZE] = { + [EAGAIN] = TARGET_EAGAIN, [EIDRM] = TARGET_EIDRM, [ECHRNG] = TARGET_ECHRNG, [EL2NSYNC] = TARGET_EL2NSYNC,