From patchwork Tue Apr 26 18:18:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566073 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3844202map; Tue, 26 Apr 2022 11:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydpc51ckVh9MxKTPIv8PC77sbDtM/mfsIxo6bMzDWizK2SIC71SfY6FeMtWi9s7KlAPnin X-Received: by 2002:a25:b09c:0:b0:648:5eb6:86bb with SMTP id f28-20020a25b09c000000b006485eb686bbmr11616460ybj.530.1650998164628; Tue, 26 Apr 2022 11:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650998164; cv=none; d=google.com; s=arc-20160816; b=bdZIHz2nTWhu4undAvwgczt4kSLBJMMalKz9exxbhqt6+9+/atypmIH6T6NDtq5wU7 CEJsrPGRO9Mh3At5GagW9dA9HPfxxW+RcFGtR6Pdo4owsY3xqefnq+03lPtowsRd7x2b bRQ7kkYeLQztyIYKC6HcW37iP86HYwYHY5c9YuT4nV4c9beXPltnASKnEFaI7v+uUNCj DcKFnxrvr6zfzOjKClnm9k1zZZ59BDS72NL8mfPNB9yHW1QC0XcY/pCwHukJWjbvWUOB kWMV7jzJObHJE8ZyMyl1Tad1JQO5XaQyuHkpIGJu3duv+PITqD12clhK5AlJ5LSiZ5Ak i4yA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Zx3qhK8H+v+NAZcjuR7FBLrFsz8zqhmn66xWRsawstk=; b=iJuqGnFY2umNY8FgocVFEkFYM11prMsjDf/xF4O9CtGSij52+aj/VnPRtpDoet0iMl VMEbBmaazc09kb+r4OnpDOwvbu6RDY/+ZYuWD0wjSIELQ44v9R2UIo1+VLYJHHCRHFdV NnK5tisxRqRnOMDFigX6gaTxufeteVUCeAcKcsu1QjB76lPsuqsY0y7MSwJRwzToWkej ULvydsfQ3iUYmCxg57/ZU4YYLPYE/gxIfDmAhurrmiHNEn/IakwHNmdwz3rBfeNWCXbQ rbAHeEWv4EdwlH6b8Q1cKOEeDpKp+sqL1WY6h4IIVajbtU6sL4aOjOVbG8LbCvngNmvb SRJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Los2CCnr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f11-20020a25380b000000b00645d7abcba4si10499049yba.437.2022.04.26.11.36.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 11:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Los2CCnr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njQ2e-00019q-3v for patch@linaro.org; Tue, 26 Apr 2022 14:36:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njPmU-0002Tr-TW for qemu-devel@nongnu.org; Tue, 26 Apr 2022 14:19:23 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:38770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njPmR-0004Kx-Bg for qemu-devel@nongnu.org; Tue, 26 Apr 2022 14:19:21 -0400 Received: by mail-pf1-x431.google.com with SMTP id b15so18710559pfm.5 for ; Tue, 26 Apr 2022 11:19:12 -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 :mime-version:content-transfer-encoding; bh=Zx3qhK8H+v+NAZcjuR7FBLrFsz8zqhmn66xWRsawstk=; b=Los2CCnr84gMnsbx+7Z6MXkKYQZnXI4qcJAWwDYAa65uaXudqwT3/4PgLxUpWzKEWn 1Q3h5FAIBUbTpHJc4mmtSKvSoen3x7vvIg4JZJnIYLVGGafVhKvkwkiTUpRYt4jO9YiG Y+oPSOvAbYNfQ4siD9IwPcagaNu4equQGSJLLzOdA3F3wmmwrVK14+VSdU/P0mNQBN53 bjttXxpopAD9mODhguUS/n2M1tK0QSB/CxpNkMMvLbBpKu0heWDroRZLp+d1/mjfhmw+ pgaoIbJoYpOMBOrMzhGPNjFSqjeEcttCdKYTRagfdfXgJFhJjoCD0kvwQHiaRIVSQhc6 PS8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zx3qhK8H+v+NAZcjuR7FBLrFsz8zqhmn66xWRsawstk=; b=0Jdq6XsbD9+WyFTyqUTo++Aqx+k9wEBynZb5MP+fTna8J5vdT7utwscLtjcgre2z2N sP5EAr02PuwbNHW0CqeDsnrkicY/aidLESdEMmcP4iSRkKbCPyYctd8z2HKXeQXuaDO3 avdc3yA1eF8VjU3vrmdti55/qcU363k5tB52Yu1YRPZpgi7wyhW9w+CtGO+Xe//v24g+ 4JRxrMpG1i3INUjRfi2Cdzn/Y5PanN0Q/6nIRg69bw5chLo/FShpcEEymCKam9fTMbR0 VP+nV33QOz3TTeG1e3FL4oT20u3AX5j7/PPoWDkEkeI+EdDEuxEIYYlNuDrBG4cBQ52N NJfQ== X-Gm-Message-State: AOAM530LV8HHjADq0D+J0UhHXNwx2xgwXVfOaQ0UitMCHq+Wjee3Txuo KS/Y9H6D1cnVgwSmNClBMGqFBuY2FIlhLA== X-Received: by 2002:a05:6a00:1ad0:b0:50a:906b:807c with SMTP id f16-20020a056a001ad000b0050a906b807cmr25808498pfv.42.1650997151525; Tue, 26 Apr 2022 11:19:11 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j7-20020a056a00130700b004b9f7cd94a4sm16482827pfu.56.2022.04.26.11.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 11:19:11 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 03/68] linux-user/nios2: Drop syscall 0 "workaround" Date: Tue, 26 Apr 2022 11:18:02 -0700 Message-Id: <20220426181907.103691-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220426181907.103691-1-richard.henderson@linaro.org> References: <20220426181907.103691-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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" Syscall 0 is __NR_io_setup for this target; there is nothing to work around. Reviewed-by: Peter Maydell Fixes: a0a839b65b6 ("nios2: Add usermode binaries emulation") Signed-off-by: Richard Henderson Message-Id: <20220421151735.31996-4-richard.henderson@linaro.org> --- linux-user/nios2/cpu_loop.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c index 2e9296750d..91737c568f 100644 --- a/linux-user/nios2/cpu_loop.c +++ b/linux-user/nios2/cpu_loop.c @@ -55,10 +55,6 @@ void cpu_loop(CPUNios2State *env) env->regs[7], env->regs[8], env->regs[9], 0, 0); - if (env->regs[2] == 0) { /* FIXME: syscall 0 workaround */ - ret = 0; - } - env->regs[2] = abs(ret); /* Return value is 0..4096 */ env->regs[7] = ret > 0xfffff000u;