From patchwork Sun Jun 10 03:02:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 138183 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2619976lji; Sat, 9 Jun 2018 21:24:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIT7J8e4HE71v1IxKjiNFBjydydywmjFf5TyBgJNk6PXSbk/Z8Qlr5GgwUyoeMXgMz2eycr X-Received: by 2002:a0c:c309:: with SMTP id f9-v6mr10811818qvi.104.1528604685960; Sat, 09 Jun 2018 21:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528604685; cv=none; d=google.com; s=arc-20160816; b=t2Bgi1jBiuIwmaUTQQ7HIROkTIyHnHWeoE8imvI/UNHigPeNBdjGIWOUWM+KgBm1zL dSjkE1DYtoGwlZBufB5ObWhzwZxmeNuGFIezfdMLZd22u18MYaxfUFlxyj1lBTA6cPTj m6nP0RxBtm3lQBYEm0k67AnPU1TWLOXyOPGNfDSfvK8FZUhoBOft9gdeZ7xPbSFgFLJo 1PIUxabRozYGRp7hrgR2hbpgNy816o1zd2AkpZyqxCiL+7il9IPWITJYqINnWf4g6CdG FyLI0D5juHSBkm630gEIt9aDxQeTohUVMOktnSDhfdBIljCd4WN2x6CzCsJeDuSbmyf0 Bjqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=HpJ6XMVk+RpX6IKeuZWr2xgxzI79L+on1POkolu0Lgw=; b=A6JVupYB1fHClIpWeRej5DAZr3lHVzv+MtD8gLO0Du3Oq645gEtgcGG5swAz1iGb8l +MAZCSxo9nEioqz3Wd0/wFBSJQfC2e68HsWooFPPwWSXK9Bfg6M4WdjLaQHocy1eitUu LqPxhKMzVsfDAY+aAv2rUj6OyGN6qUmQU7yQ+g+1dCNSEp81jCwFNENX878gefjnDcOG OndPbeUO/wuO3xBv89Aam+cAsEU2YNgTTKGf4ITljxlAkUbry83EFLDij/FlYozcf4zG 2eiLbNrp2LQlLaKHWl6sC9EJJ4CMosalCGSeOJ6rCixCnH5Lo0b1dT+ouMXCCm/x/CcY /diw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TlX5mRgM; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m7-v6si17644992qvo.247.2018.06.09.21.24.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 09 Jun 2018 21:24:45 -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 header.s=google header.b=TlX5mRgM; 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 sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRruH-0000Gn-GN for patch@linaro.org; Sun, 10 Jun 2018 00:24:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRqgD-0004uI-OU for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:06:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRqgA-0004v6-Jt for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:06:09 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:36356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRqgA-0004ug-E1 for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:06:06 -0400 Received: by mail-pg0-x241.google.com with SMTP id m5-v6so8138272pgd.3 for ; Sat, 09 Jun 2018 20:06:06 -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=HpJ6XMVk+RpX6IKeuZWr2xgxzI79L+on1POkolu0Lgw=; b=TlX5mRgMPQMMOORXqcwribevC7prVKGvp5jgIDXXq0hS0K8hOf3300RQhMJM93V5hw 0iRvunwDUJLiBsH50M453o6av/t6px8FHnNnq8N55sYLMmquGY9z+nATgDGR9C06KZwt Si9lvYSJQDATPclhbf4DpRDMYPlZOe3tmfRpc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HpJ6XMVk+RpX6IKeuZWr2xgxzI79L+on1POkolu0Lgw=; b=Q2NMxzNM4MudsUoWPxG+OcIKh7IDu7n0A7eI1vxVEnFYZWtbdKplR7BnJa394cF8rs c+eDR9TwfYt01uJkwFZ1AMGC+1J2mW/m4vmjsMCxjNIqKw509BeuKVgWNXFpdzfkISJy jQEsVT9futu9d8XZtZjzZ/VouDUfaYtsUk3alwHIHkBENkp/kDG9v8nB1CrAnhIhref/ 1NCvJYECat7KqDGQDqFWjYP20lrFUp+ZkEIlOtJ+A7Uem2iND1M0/45EqBzk0fpC5En2 fV37bunoqt5RFCEmm3qk03FDAyZbi54ATr2oqPp3Ax4nTRvEcvatM2ox2t6HD2MUbwYM s3Zg== X-Gm-Message-State: APt69E3Rdx5bBgdnuoBX8b6acnMSg9/EAtyaXfrxkUIdTLcWQhHsKKRa lHopDI/Bcy4abJaoDxp09Te+nYy8wfM= X-Received: by 2002:a63:9041:: with SMTP id a62-v6mr10312069pge.191.1528599965276; Sat, 09 Jun 2018 20:06:05 -0700 (PDT) Received: from cloudburst.twiddle.net (rrcs-173-198-77-219.west.biz.rr.com. [173.198.77.219]) by smtp.gmail.com with ESMTPSA id y17-v6sm31712718pfe.33.2018.06.09.20.06.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Jun 2018 20:06:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 9 Jun 2018 17:02:20 -1000 Message-Id: <20180610030220.3777-109-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180610030220.3777-1-richard.henderson@linaro.org> References: <20180610030220.3777-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH v2 108/108] linux-user: Fold away do_syscall1 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- linux-user/syscall.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) -- 2.17.1 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7a94a0b0e9..a4cef22436 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -13204,23 +13204,6 @@ IMPL(writev) return ret; } -/* This is an internal helper for do_syscall so that it is easier - * to have a single return point, so that actions, such as logging - * of syscall results, can be performed. - * All errnos that do_syscall() returns must be -TARGET_. - */ -static abi_long do_syscall1(void *cpu_env, unsigned num, abi_long arg1, - abi_long arg2, abi_long arg3, abi_long arg4, - abi_long arg5, abi_long arg6, abi_long arg7, - abi_long arg8) -{ - switch(num) { - default: - gemu_log("qemu: Unsupported syscall: %d\n", num); - return -TARGET_ENOSYS; - } -} - /* The default action for a syscall not listed in syscall_table is to * log the missing syscall. If a syscall is intentionally emulated as * not present, then list it with impl_enosys as the implementation, @@ -13953,8 +13936,8 @@ static impl_fn *syscall_table(unsigned num) #undef SYSCALL #undef SYSCALL_WITH - /* After do_syscall1 is fully split, this will be impl_enosys. */ - return do_syscall1; + gemu_log("qemu: Unsupported syscall: %u\n", num); + return impl_enosys; } abi_long do_syscall(void *cpu_env, unsigned num, abi_long arg1,