From patchwork Fri Apr 22 16:51:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 564837 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp655437map; Fri, 22 Apr 2022 09:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw68wKLRFETJNSdl8hiUQXvupvOqcw4yBAG5l05i1hbgAkusooap+Xju4GkxajLUel/0v23 X-Received: by 2002:a81:af0a:0:b0:2ef:380d:6ea2 with SMTP id n10-20020a81af0a000000b002ef380d6ea2mr5756527ywh.147.1650646468929; Fri, 22 Apr 2022 09:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650646468; cv=none; d=google.com; s=arc-20160816; b=cnaI0uvM2FCh5lCao1YxdYcmTyANmSZHGE7+Y8pYURzAAiMvNVul5+3SUSqkNkU3gi k/pF0d+ZptWDNsnK3FhHy0eLfZi/8P9VyHKMcHZGCo+AK92rGSjpK6aGdrn3U2PYIZxG QVi6192N2IOlvxpAQCzrIqNsk4rpNOEzgiCJ9sLbvE37LJUNC9F1uRWeR348aOc2ntnQ wrbsfusTQk6xtM3HdO3mVLxEKKtEfdbcCOWN4i6HQOPwRBTpeIgss4jTec61FPN84jAH yy8LnthQf7HAUjeIguNIAbQYUe2ffGhx5e9sXGfRBXydFzsruOUvIXRwn3x8v0AOfeTK hEWA== 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=lcDS5azqNufubRzmkLtNsN5waXpFs8rjN+MX2Q87DgF8L8KC9o7J1lcUB9OvgX+xkJ FGFMl5VKqnwE1MxTWlIyzLx8wmWFzytndb8QrCuBLCRFSIQxbR/bfJCw1nVXNJm5+qhE gd5aIG7g+1hwZR6B9KMFH4QUo2ycJM7IGRD2VLn4o8GVinQBWLsklepGBKuz9ixL0VtV 70PzxOe6MbsWqKMFuGuy7XvvgtXWOUi1Ah4GaNktO0VjC6ylnGS71AX07kVFrN9NlSRX zyG2tF3uL3wO9uqpjm4A01MDg9zzwahRnH6IhLr2IWHa0lVxf3zEX1Oy2LOZ6nDwOpzB /3Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pfx6xKA5; 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 207-20020a2502d8000000b00645733922casi4964155ybc.537.2022.04.22.09.54.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Apr 2022 09:54:28 -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=Pfx6xKA5; 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]:47422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhwY8-00008x-CW for patch@linaro.org; Fri, 22 Apr 2022 12:54:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhwWY-0008WM-Fe for qemu-devel@nongnu.org; Fri, 22 Apr 2022 12:52:50 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:43697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhwWW-0007DQ-Vc for qemu-devel@nongnu.org; Fri, 22 Apr 2022 12:52:50 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d15so12079923pll.10 for ; Fri, 22 Apr 2022 09:52:48 -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=Pfx6xKA5r1keX+VBskm7QPgSFS6yNGAPEoYsg0EOXnoOEsUNrdg4hDaQ127s9XcPra 3WOUjyzGD0GOfUmMRCzNrjm0ZYmDBLcodFhw2sTmnaYCMhMNAvIWTON0ktTjV8b5u9df Nky0z10nRPa9M7JIbajrlJCAv7FyYLhdUpGzj2GVbuEAXdFXK0L8Ei76xkQkzGCMhihd RVYKy1PnZih+R1WGa1v1VGmUhWAO1Wnn84IQY+oN2FGH349cGlDCAq3ryPDSwSO921Ah z8VKc7cYX4av24uljOMpDUNVXPtRLckpg3+WhsMCT0ndgOKQIC/2JRJqlBZOuwk/DWzn o8Hg== 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=7THJlb54XzKQgCictnby5b42mx6sdfx1cSoLQDkZ4BEmTLBFtCh+cmq8Q7dlzwgkNk a+NQmM/x5oGzAfFanSGczUnKRZIFE8tuFUFjZNSxNqIIJKAdqODnLNQc8Ote7gixdlCv /IByLmjG45fkOg9/v8ltM76PN2ILiY5ZoOpJfxRRLnhEdb66CxF7pWDcBvbEpMK86HVm jLA3kVGv79okHuWcnYFaQt4o0810G7sUcJhm+b9RKYPW2Q2vPFwWv1/g7YQOAS4hQL3/ wKVwjwICmUxI8SEhEGQLnRqe942kii8Z4gAsaQwPLWXpJXogO5ssKPidJVfVQSkC0S0Q JdiA== X-Gm-Message-State: AOAM5302CyxALOWT5BE2mJmqd9zZCdo/w68e83WL/g1GjfinVPLcLa2H EiBJcPJ+tLKZbJNOBfdupzYc5dF9p+CK4SA2 X-Received: by 2002:a17:902:a987:b0:158:b020:e5b8 with SMTP id bh7-20020a170902a98700b00158b020e5b8mr5317274plb.103.1650646367740; Fri, 22 Apr 2022 09:52:47 -0700 (PDT) Received: from stoup.. ([2607:fb90:27d0:b0f2:934d:3e2:9f8c:dd1]) by smtp.gmail.com with ESMTPSA id 6-20020a17090a030600b001cd4989ff5fsm6835904pje.38.2022.04.22.09.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 09:52:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v8 03/68] linux-user/nios2: Drop syscall 0 "workaround" Date: Fri, 22 Apr 2022 09:51:33 -0700 Message-Id: <20220422165238.1971496-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220422165238.1971496-1-richard.henderson@linaro.org> References: <20220422165238.1971496-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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;