From patchwork Sun Mar 20 16:00:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553174 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp841055mag; Sun, 20 Mar 2022 09:11:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUdxmGK1IRv1DdaAuzSw4UwATRdgai96hXdiJPzZtgK8sV27jCApvXt4f4bFOAWJidKDi7 X-Received: by 2002:a05:620a:294f:b0:67d:9d27:3bd with SMTP id n15-20020a05620a294f00b0067d9d2703bdmr10878136qkp.368.1647792668503; Sun, 20 Mar 2022 09:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792668; cv=none; d=google.com; s=arc-20160816; b=sNCUPewAlj94SUENmJD91qF/hlCGEFLjyFMh9Rwng05KgBMW60Jxl/XY1fWvUp3DZm lXohkAaDmgPO+0DbYeP4AX6ppXndojH198Ys8pR8EhQPpYjwPXXfsZmhprOb/8+Gs9is d1kppek97V8Yl/LHqEAuwe74/G0woFuMWb3ecQK1XDgYeBXsrywehncpV37k1vwQzNS0 l8LGh+2HEydDZoE4xLw8TZsiHLWTsO/FM6VYYiPQ26u1m+dBdGbljjQr7vuRyoSwo7UF 8WSRRW1HQ1jKM0DigmMrHyTlt47XORPjRvzgKJ6zJVml4+VtnMy2PvP/3roY1SIUPbBX 6AWA== 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=NqjSqqJYJqBZpZ7IPTgBDuMNo4UxguCJGEl833fSoDE=; b=bNEJ2JBJ4KNAG4cEhAkt6LQ5+710SEmQzDUwZg6twgTFqYimaOPlm8JefrVmRtYmr0 lPpQAM+0PzYxbaoXG1CroHrYHUgTtpwcXM+Zfzd72K0eUFw2Rjpw0/ZaRmqObqNc8V1s oHxcf2gjBpVj1ZRa/RoPPwvR7HLdZs3Hkdg1vv+m4kdmo9wBMyiIg2wtwDYO7SLqlP8l 1pwBFnhWWW01HaMEkzoaTQrltdOCILxnIL7znpOaeelU9IW3GMDo6JFsDetMm7kckc6b Jda0EBL6GcqQ6Ov32fA8CtnlkmiC2oYwhVtylviNWZ2mYGwwnfMi7zOhDn9lW02f+8ad U+kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BFbdpMLh; 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 a6-20020a0ca986000000b00440e46a7c92si1442417qvb.304.2022.03.20.09.11.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:11:08 -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=BFbdpMLh; 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]:60730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVy96-0008Bc-4U for patch@linaro.org; Sun, 20 Mar 2022 12:11:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyh-0005Kr-Cq for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:25 -0400 Received: from [2607:f8b0:4864:20::629] (port=45956 helo=mail-pl1-x629.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxye-00065m-C1 for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:22 -0400 Received: by mail-pl1-x629.google.com with SMTP id k6so3632805plg.12 for ; Sun, 20 Mar 2022 09:00:15 -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=NqjSqqJYJqBZpZ7IPTgBDuMNo4UxguCJGEl833fSoDE=; b=BFbdpMLhpY0T/YtRsqnKhLGHE2V8iQ5NW2C9jdyKtnUrARhZAwDx0K72c1XEAD/mjz g2tQKFm/u0t5GNfdgltRiT15zjwPYeQLa91xC1b0r30R/oyw10+PPFoW0dwqC1gi3RIJ mElrS/dL55dvVOhK7u03Sy5kAvcv0A5cL8lPEcdAjp+kIQSCMPcno+xdRYDZz7dI3014 MegRXrQNC1yGM2PsdTDqvtvjZ8VKdP3J0F/kTdQv7t6jomaZe5QO09n0ygpXibY6F3oM J9OFOxg/8kov0zPNOwRk1n6xunODSU93caXoZVev9iVNNOKQ/DtKmK/+GQZnmZWvVwR9 0+Hw== 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=NqjSqqJYJqBZpZ7IPTgBDuMNo4UxguCJGEl833fSoDE=; b=eVLAmp9pcXAqnVS1swlgiCiljnlvTUiH5gNqDCJrcyaL5OdEFF1pxxVhSnjQP61ct8 KnQK9VpZP41KFfyRAFLTp8cCWG4YIs2EsF564tjEkh9JaWDfYuW6k1B35IZUpce9Y+s1 y78uPTj06KznwX6Jbd6Oyxg9g+FmWTfezWYOa/U0wuCgvxtCHpqEs/opzbV8CQZlzrJ8 VRFZ9EnnpNHBh3nLVqaerbp9C0mPWFmPwpabMDy8NWBK/IAHHJxq9qcZ3lfefjRdbFP2 5u4bvY04SHGv8Y75AmxajQ1Vq2qu5Kg3qXfpp6vRPTi6BxnIlb6v2Oun7767eAuwbxd8 ZxhQ== X-Gm-Message-State: AOAM533gUBxkZT2bcMeBH5IgMoC2wmcAN+h5yonyrA7Tti/mK/SF0oeb RtQ6/S0JS2Vj1XV6/sP2eNZd+r5G8KlihQ== X-Received: by 2002:a17:902:7fc2:b0:153:3c90:17b9 with SMTP id t2-20020a1709027fc200b001533c9017b9mr8955203plb.61.1647792013774; Sun, 20 Mar 2022 09:00:13 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/7] linux-user/nios2: Fix clone child return Date: Sun, 20 Mar 2022 09:00:03 -0700 Message-Id: <20220320160009.2665152-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::629 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The child side of clone needs to set the secondary syscall return value, r7, to indicate syscall success. Advance the pc before do_syscall, so that the new thread does not re-execute the clone syscall. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- linux-user/nios2/target_cpu.h | 1 + linux-user/nios2/cpu_loop.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-user/nios2/target_cpu.h b/linux-user/nios2/target_cpu.h index 2d2008f002..830b4c0741 100644 --- a/linux-user/nios2/target_cpu.h +++ b/linux-user/nios2/target_cpu.h @@ -27,6 +27,7 @@ static inline void cpu_clone_regs_child(CPUNios2State *env, target_ulong newsp, env->regs[R_SP] = newsp; } env->regs[R_RET0] = 0; + env->regs[7] = 0; } static inline void cpu_clone_regs_parent(CPUNios2State *env, unsigned flags) diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c index 1e93ef34e6..a3acaa92ca 100644 --- a/linux-user/nios2/cpu_loop.c +++ b/linux-user/nios2/cpu_loop.c @@ -42,8 +42,7 @@ void cpu_loop(CPUNios2State *env) case EXCP_TRAP: switch (env->error_code) { case 0: - qemu_log_mask(CPU_LOG_INT, "\nSyscall\n"); - + env->regs[R_PC] += 4; ret = do_syscall(env, env->regs[2], env->regs[4], env->regs[5], env->regs[6], env->regs[7], env->regs[8], env->regs[9], @@ -56,7 +55,6 @@ void cpu_loop(CPUNios2State *env) env->regs[2] = abs(ret); /* Return value is 0..4096 */ env->regs[7] = ret > 0xfffff000u; - env->regs[R_PC] += 4; break; case 1: From patchwork Sun Mar 20 16:00:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553172 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp838750mag; Sun, 20 Mar 2022 09:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxImUG4XkWrG1ZB8F6oBjqsG70N5WjqvJ/bzqLVP/i8zkGElq5Fy6Hw0FlTOKQv9fnXbRbI X-Received: by 2002:a05:620a:1539:b0:67d:45f2:f5bd with SMTP id n25-20020a05620a153900b0067d45f2f5bdmr10603811qkk.313.1647792473119; Sun, 20 Mar 2022 09:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792473; cv=none; d=google.com; s=arc-20160816; b=MOamRfO5lUOisDaQ1BuuA9IDEP1x1lJmlqbCzrHCYGFlAHF3YTGYPZjHz4rPpPG1ul Vsa0CcHXFJS7pIIroBoTy1Ua75kKtuAe7rNeD2ICXIJuBdczarft5BvcNdVNOa5MnPdi IQqmB/TqBxo9SNDgx3T6yPPGy+9VlOlDJaBuNA8nfQewz3mqwUkkQVz+ZyuWNcMqdKCi uoM27paXh2FbNgX5rSoPy2nc5DRT+kxcAVQ/H5wTtbWRRzEywJ7+qyUsp1m1KeVbsqYL JtYYpy/7KoyEXP+9+XCi8Fg71SIKD3rucmLYWCW9Eu4cdREvUFGiuGsr3urIAi4aJSMb dsFA== 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=1T8UqtoVKD4QHw3Ob4yOhcSZMQMSY9kekR+Tew5Lo84=; b=yJZkKk9wHxYiVkrLKv+p0hoGj2+hluvsgSg2bRWrGphL58Im47pAU3LmuzEHZze6bu Lf/AT6qCDkuyboISXrkKF9MSTL2OScSr10G6xtnVH5m67Wnbe09KTIAuBj2MEZv4105I J9o9LQbIpze7cH0UyJEG6J/jKbPFXbPfRrXNi9DWOfuIKhd/ftsTiywCtvoaYy7BdsAE TEm78+X5c+IXmVKokflS5OOQoFWIGnz56wQHNBghJoHLnFDALd3ykpPWKhDis1NAvxUR Lneqiq6tHaX+/Q/3lLAMS1cIXn+uOeM020OFMiPW4Tcp6x23mufjLdvgyU8g/J+EFTEH D7sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q9iBdsM4; 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 n13-20020a05622a040d00b002e1fbf3becdsi1469495qtx.190.2022.03.20.09.07.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:07:53 -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=q9iBdsM4; 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]:52942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVy5w-0002zR-L5 for patch@linaro.org; Sun, 20 Mar 2022 12:07:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyi-0005Ku-1E for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:27 -0400 Received: from [2607:f8b0:4864:20::636] (port=41781 helo=mail-pl1-x636.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxye-000664-Cy for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:23 -0400 Received: by mail-pl1-x636.google.com with SMTP id j13so901464plj.8 for ; Sun, 20 Mar 2022 09:00:16 -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=1T8UqtoVKD4QHw3Ob4yOhcSZMQMSY9kekR+Tew5Lo84=; b=q9iBdsM4EkbRro7Ic5JxuoOFhU41ia3MxslqdAMcbe6uJVTW2P1nMtP8Lb8aOIHfZV xHh/sj6qm/EqqigIp8kfFUQuKN4IBN1qbU2lFyXnXi4YgddSPGKrWzY95Tlc+xkqZNgm I1GckOyZ2VwJ48uPa1uglBYV8YYn6wCSDhwR4JCkkG9g3MebXaf3tK6jUmSjwun346dh mZ0Z7a8rLPWz8yvh9tQReKcSYdRo0w/0C5rL43LVoH73O45g5jPE7u5iFgTXdS918HzF s1EBusfaR60U+dv0+Xq+q/4Bg6bIzjO2Ivl3tytiREquz39Ho5iJeh8WqKKGzTGiRA9l Dxsg== 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=1T8UqtoVKD4QHw3Ob4yOhcSZMQMSY9kekR+Tew5Lo84=; b=jQR0OszJorXxrHEcP+kDRK/SYC9rLUNQMHeDBKH1SVHPaz4Bwbs+PVgKCLUlXPiVkI PJf4C/RX4VHnQtnzZ58TH29FD9+6ZPrGHWhwv9CfibKTp9JA4MtJ2eIMD+eRtOmd4HUt x/Fz+7aYyWGdZu1pHgZYscvyuJoF7fwuhIHauptnIqyqNLaeN+/2UB/eI8kqcVZiEAIA l7ur3vjb5/rNI1S4OO3KaKr3fm+9HwPdTuwv0O2QnHD1q/w0J28ULbJdcFUhirPgELcd kdFzxcOMNCV+wKphKd9i78ozIEUAj/OpXfYZrKjLAQ6s7Ck4tpKrf3v9bUTuaR2tlcd5 qfWg== X-Gm-Message-State: AOAM530SSQp/B2CANLk2J6heO2IyTkcDovfjIweoPnKRQrcCZcx/z3c+ JT2/17FTWLAwBNa9JokuJLxJFDfVe2K8gQ== X-Received: by 2002:a17:90a:1197:b0:1bf:65ff:f542 with SMTP id e23-20020a17090a119700b001bf65fff542mr31718143pja.5.1647792015024; Sun, 20 Mar 2022 09:00:15 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/7] linux-user/nios2: Drop syscall 0 "workaround" Date: Sun, 20 Mar 2022 09:00:04 -0700 Message-Id: <20220320160009.2665152-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::636 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There's no documentation for what the problem was. Fixes: a0a839b65b6 ("nios2: Add usermode binaries emulation") Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- 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 a3acaa92ca..ac71f4ee47 100644 --- a/linux-user/nios2/cpu_loop.c +++ b/linux-user/nios2/cpu_loop.c @@ -48,10 +48,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; From patchwork Sun Mar 20 16:00:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553170 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp836201mag; Sun, 20 Mar 2022 09:04:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHKISOzM8yT5CrvD0l0u0JMAeZI16Get8J4djmOrV2xAd2zUyK0g23E0GQoC8ublB4vH5X X-Received: by 2002:a05:622a:552:b0:2e2:72c:a05b with SMTP id m18-20020a05622a055200b002e2072ca05bmr6253223qtx.409.1647792264447; Sun, 20 Mar 2022 09:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792264; cv=none; d=google.com; s=arc-20160816; b=xpUjkWFeGybR1ncAJlTlqjQu2yR2B9VzwBKq4tc1oKbcWvL60nIFak8zokQIo6Dpl+ awiQV+gCGo7HsoRckofzzKjwcWEOX2mm73j2aHWSQ4vuWQd8WqcxH8WAbwnKDNxEB7D2 NrJHNIcwiOC4aBNiNHClzmokjkQpPjHSbXyAgFAdw6L6Ey1Y3SPhW97JEDdHzc1WhJKc OIfS20jJNGMpdX0itiNZiNwT/ZuzZoZxJ0DpxUWxyT65dplqvpkbvplH0ltDQspSb40H Nvj6gOK/byAGM/UAzKwbvSP53XyaeSsnTI5S9R/Pgq2coPzI6QDvOu9AezwUpySgIqXd jDIw== 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=/vRQUrPXATR+Gi9ECEWVdt6AMeM9dbVbhXfJgx7mHpE=; b=o47XoAGbpRG+jaegLwL8vevFwklY6H+JvPtAwwY0tN78oCBixuQDsqMShPw6BKCHj2 xFTPLazu57CYQqRfTDifCpTkktdlKvYOxizNFWBjJahFroBwewZPIjBvJ/EC2tc/0dHi 9pC2YHO9rKzKK5+f/y8BdaLKXuXgNS22r7YbXjSvDlKcKcrTx7n1kNnjb9rgmpsaa6JW WkIfFaJmY1J+v0Dw7JZVZ1Ya9Cbv0rL5acDg7YB0opIqq/2lioKhl6M/gl9BP+Uzyam6 XBp801yTHySuR4HwyXJ8c5shxgFgsNhX4kuc/PKi7vFpErQvWk6F5GMN+W1qL4DfyLtb 03gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=agP66jAe; 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 f2-20020ac86ec2000000b002e1fbf3beb6si1238881qtv.167.2022.03.20.09.04.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:04:24 -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=agP66jAe; 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]:44634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVy2a-0005iS-2C for patch@linaro.org; Sun, 20 Mar 2022 12:04:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyi-0005Kw-IH for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:33 -0400 Received: from [2607:f8b0:4864:20::634] (port=43661 helo=mail-pl1-x634.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxyf-00066B-UV for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:24 -0400 Received: by mail-pl1-x634.google.com with SMTP id w8so10782041pll.10 for ; Sun, 20 Mar 2022 09:00:17 -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=/vRQUrPXATR+Gi9ECEWVdt6AMeM9dbVbhXfJgx7mHpE=; b=agP66jAeZwb9JxcRFnxSYUConelWk2rHu6N9AJ65hMtSLWeeyM113SxJW9QtSlDBC6 0/7qalmflCiwDji3qp49WecSGg6gX2gYsPAf8+kFCoDYp1lNZTuMEwo0mVj0CpfOKvlK UDB2VV1/bKCeDLM1RPYJWxj748p9WBbmfpNNUUF/zejoUplZx8WZHJAqacp+XjlZQ0PF lOCHA3WyLYGq8TtHthi3f6W5yYJ4XM0CGXt8Nma7yUmH9Dhwu9b/F9wN6n7daQUKV523 jcG9rfdWc/NWUcK87u/STNYDLjL21SGgbV0HFt/3s6vAq6552rhTO6dnZXjU2X7JFfu4 SKBQ== 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=/vRQUrPXATR+Gi9ECEWVdt6AMeM9dbVbhXfJgx7mHpE=; b=ye+q9gqfzHuqCSoNcWywl/Gy5W+FOy+PtGMiOaMUqIREcMGcUOzO0zpicIFFOWCgxS 8yDG1S2mFrOjCvI6OtT1Xp6wMr9Xtfoo8yzSOTuDJ5DhPisjh+CdRRa7HkD4ot28LssL AisdJwt99iislfZLJNeXaKwxjorFYud34tAfH8TUPqpjlh2vsFiXBofQAsHeZhgO7s6v jtGIopM8kPrXvWGlLkp+AURE5QMVzIzQTV/R3MFcBzaVsIKDrwdHQ1+PqFL4FXfv+yWR BaqirTMq8QkKULG7yY2qGTPHN5TOQDwSsZNsuOKeVQuGyr/377XxhUdTms+XPkkkVHwp mrGQ== X-Gm-Message-State: AOAM532R46cfn68cGhY4WrQnq/CqTPXGc7UgW9tvO8mFUp5Znff7EbID Le69ZzQcliPfaTCyks3lsdwgennp9HngEQ== X-Received: by 2002:a17:90a:66c3:b0:1bc:cfab:86ec with SMTP id z3-20020a17090a66c300b001bccfab86ecmr32462181pjl.74.1647792016092; Sun, 20 Mar 2022 09:00:16 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 3/7] linux-user/nios2: Adjust error return Date: Sun, 20 Mar 2022 09:00:05 -0700 Message-Id: <20220320160009.2665152-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::634 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Follow syscall_set_return_value rather than the kernel assembly in setting the syscall return values. Only negate ret on error. Signed-off-by: Richard Henderson --- linux-user/nios2/cpu_loop.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c index ac71f4ee47..2ae94f4a95 100644 --- a/linux-user/nios2/cpu_loop.c +++ b/linux-user/nios2/cpu_loop.c @@ -48,9 +48,18 @@ void cpu_loop(CPUNios2State *env) env->regs[7], env->regs[8], env->regs[9], 0, 0); - env->regs[2] = abs(ret); - /* Return value is 0..4096 */ - env->regs[7] = ret > 0xfffff000u; + /* + * See syscall_set_return_value. + * Use the QEMU traditional -515 error indication in + * preference to the < 0 indication used in entry.S. + */ + if (ret > (abi_ulong)-515) { + env->regs[2] = -ret; + env->regs[7] = 1; + } else { + env->regs[2] = ret; + env->regs[7] = 0; + } break; case 1: From patchwork Sun Mar 20 16:00:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553171 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp836526mag; Sun, 20 Mar 2022 09:04:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7aOXpqgN4Br1jBgoZABZORlKtM3XF8IilAnIGb9Bu1SbwPBX493KnsYuZrKaEogbamjcc X-Received: by 2002:a05:620a:4491:b0:67d:9929:ddb6 with SMTP id x17-20020a05620a449100b0067d9929ddb6mr10392171qkp.47.1647792292431; Sun, 20 Mar 2022 09:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792292; cv=none; d=google.com; s=arc-20160816; b=R9V86a8P3xjTMXeZOUahnGvf4AeOiFfS8gShmIO28dBPRA2RwCl1GknHu0LbK6oxtC +yC8eUPm9hkrRyyHo9Ddhp8mdX6iTtR+RhpjnvLd59H6Iaotfna63rk+MLAGSLbYP1az wOTgO1i4CWOqHn4uUzWgc6JHz47fw7p+MrT+O6DLIiMRmDsz6Omm5JAtfoec3JQk6b6J BJWDB57o5mCmNnxP1XOn8XybE4r8iEXSc3l0zkeNoMzB5UmKC5zX2UcHsvBN5tO7/Wvw QzebtxLZt+mX/WNqIbGkkdpOdxG17wUUfUzOhyLX722Wq9sDXtFDKR7RrJ8nVtOG4bSF YEiw== 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=psn5p0gK6p7KHbN3cFd3zZ4fpGBd9MmHd4e6lUYOqhY=; b=gQc2Asv1++W97eViJ/mydcpc3j4gRxSKadXoTXVSGVKXtwRUBy7aq4SnXUmH+T74f9 Xq+kgx50T+jNfu1FT0CvIgz8b7V0udQc52ef+J/1H1Sc3BUpPoKq/Ca5JAPFdVniWDCO MRBBrAJ9ytH9q2dpG6xhIuVaJB+FtUVbH6llJIDZtUzwLjH8Oiwb9os3RYHre1PFKZa1 87mQnP7fa5JLrfqpaOmJeL2bArq6MYcPu2PJmye1mYyVg5LKjuvL9HgMeV7pvDUkS/RE imVJnmo/xrNwgjpCnbARsNNqwHLjSfk77p28n9uapSbhzv+Cs8NHY0fTmBacCYB7O8z0 9Lhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yfF5jeyi; 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 cb14-20020a05622a1f8e00b002e1fbf3c02csi1420266qtb.541.2022.03.20.09.04.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:04:52 -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=yfF5jeyi; 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]:45356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVy32-0006FQ-1p for patch@linaro.org; Sun, 20 Mar 2022 12:04:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyi-0005L3-RQ for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:33 -0400 Received: from [2607:f8b0:4864:20::1031] (port=33794 helo=mail-pj1-x1031.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxyf-00066F-VP for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:24 -0400 Received: by mail-pj1-x1031.google.com with SMTP id o68-20020a17090a0a4a00b001c686a48263so6004589pjo.1 for ; Sun, 20 Mar 2022 09:00:18 -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=psn5p0gK6p7KHbN3cFd3zZ4fpGBd9MmHd4e6lUYOqhY=; b=yfF5jeyiGeNfNlAYAkPOMcSogvdBikfe2J6CDOXR40uYh453cNaDCE2F7p/mWbiIvi XxIIak/tfYCRq2MkF1z4zqTBDJADhOsWV4VnwU2lwld/4VogmIa85jb2Ji0JmAYHsxg5 LbslFjEffyqhHcTQqhlDQ1hmUPVhHoQKA880s7vDCqc5r/ZOFYkU6LEFj8IOyi3stMUg vC21HUhe51BXxOmAbaRcFvRFVtJyZx/qqEUE+9dnVUv5saRydAGplptxOGYfDYujjT9s kQPCvf9d3Zt8S++PzAjeu+74eeo9xcqJYxpdZpl9sVKEP1hvILvlMeBQQ2lx4Xb1eY7+ 1E2A== 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=psn5p0gK6p7KHbN3cFd3zZ4fpGBd9MmHd4e6lUYOqhY=; b=4bAmmntw9YfN7/9dHJ8wXYS6Xrcb6tQbGzr/IVwMhlUMGk8HZwTKQEwU5FHJYl6/TC 59QPKkZ027Rj5b/OpbwqP5SPU4cyfSN8SSZYdAN4kERRWcz70n1U0SyjMiQzsbx8Ljf3 7qV7YdnYpF/fO5S+KXDOkRV65TFXaCmIW5z58DlfMTXgbx05CTJtZbmXzQX/GlvqYzep hqoyMbhBOn0TeMtn5uzJ9BI+g7ICmwARPiO/Ir5L8iC4pcGoE9NDcccoCXuiLk4ZtPH/ 49SeOnwMJuw8k7VDSy8QV1uOkrPLDDnkDOAIL8tMFP4geB+z6lufKmoNkLqn4izAf32X jrrw== X-Gm-Message-State: AOAM531V8VbVYok+SUNFBwbDROgIabHuQ6KRiVXmB67XZCkXziAUSmR+ Y4yObd3fKVnMHiKD7MBkRlsFnijCNuwlxw== X-Received: by 2002:a17:902:cccc:b0:14e:e89c:c669 with SMTP id z12-20020a170902cccc00b0014ee89cc669mr9254784ple.58.1647792017023; Sun, 20 Mar 2022 09:00:17 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 4/7] linux-user/nios2: Handle special qemu syscall return values Date: Sun, 20 Mar 2022 09:00:06 -0700 Message-Id: <20220320160009.2665152-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1031 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Honor QEMU_ESIGRETURN and QEMU_ERESTARTSYS. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- linux-user/nios2/cpu_loop.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux-user/nios2/cpu_loop.c b/linux-user/nios2/cpu_loop.c index 2ae94f4a95..d12c3c2852 100644 --- a/linux-user/nios2/cpu_loop.c +++ b/linux-user/nios2/cpu_loop.c @@ -48,6 +48,14 @@ void cpu_loop(CPUNios2State *env) env->regs[7], env->regs[8], env->regs[9], 0, 0); + if (ret == -QEMU_ESIGRETURN) { + /* rt_sigreturn has set all state. */ + break; + } + if (ret == -QEMU_ERESTARTSYS) { + env->regs[R_PC] -= 4; + break; + } /* * See syscall_set_return_value. * Use the QEMU traditional -515 error indication in From patchwork Sun Mar 20 16:00:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553173 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp839295mag; Sun, 20 Mar 2022 09:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO05vLl83XMM82yWz69I5o1rdx5hUtiG+ncqMGOlW/7mkHxbRu1MqdgdwwT6zVoI6Hxyxm X-Received: by 2002:a05:620a:25e:b0:67d:f8ba:642e with SMTP id q30-20020a05620a025e00b0067df8ba642emr10750744qkn.342.1647792518127; Sun, 20 Mar 2022 09:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792518; cv=none; d=google.com; s=arc-20160816; b=yk12KbHMKoU906tcOCfpLfKdEEUuBTx39Q5+GNCTV2Rh7wKWanFUv4RN054OgCiPDq Rb+rUt0eEhMdqXvHZ5dML0KZ1zbWGxVJi/6sFfBlpDbbb+1MKyLX+UB61PflHvynZDUG bADdjBjnElsg24PAYfAxIyM2S/7MfqjiRtQBzFzxHGFGAhkStQOkQMadCH4pkPZEJxaz Z+XeJvD+D9guT27xIQpxqB9J9JasnnrDjy+vhah4XeybrNeOve7UbpszajaetBf5UA/o iBwfCXagUf6xkL4uKnDjgo5T1k6YeoNYJxI9WqpDc7M3+GD2LbJjTYFH0rXTtmAFVEww sXdw== 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=ycCrVDHaX+NhN/QEfInARNi2pTX1RkKDreGfUOz6ZME=; b=yXA9pTcKb3MiPBD4MvDn5NZRwPdg5JsSxuaTgLZX6635/JqNPYTpbQofo4jrsdaqho 35aWkhhdmdOJ6ilbbF9IsPSvvndXTwuCBGuWO7/Asq/JSZY+X81CC1WpdqXUvgj3CIwD Cm7HWm1q20xXQ2YmpgATXz8uQHUd7B03y7Zk7noSlHCct9YCdov7KpTas2Gfx97XbLi3 x55rJK+6tS69F9RfDYpztpW9w46f+MMUUDEe2KQ2ZRML0FmTn8lfbGQUqCHkz0Ladyv3 SwItKr4j9v1mmD0h25v1j871iMiEDBUdd0eZDct3jDbY65qd80PQg69vSOgh3hZX8XnP +OWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F1eQcjsr; 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 w26-20020ac843da000000b002e1fbf3bed8si1273845qtn.201.2022.03.20.09.08.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:08:38 -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=F1eQcjsr; 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]:54148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVy6f-0003mN-MP for patch@linaro.org; Sun, 20 Mar 2022 12:08:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyi-0005Kt-5t for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:30 -0400 Received: from [2607:f8b0:4864:20::62c] (port=45959 helo=mail-pl1-x62c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxye-00066J-DZ for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:23 -0400 Received: by mail-pl1-x62c.google.com with SMTP id k6so3632902plg.12 for ; Sun, 20 Mar 2022 09:00:19 -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=ycCrVDHaX+NhN/QEfInARNi2pTX1RkKDreGfUOz6ZME=; b=F1eQcjsr8sK2HmVNUeJ6dmN7CZFMLm559lkYcFZThshh5z5eRdJDyQ8OqvSmdmzMr0 9edKWOHeNX75Q2jDpep/urW4EWZlEzw+RE36ngjctF1yWZqR+lLt0GBVTZqpwyNC7IU/ G2eZFjIqM7Mbx/3ynMPCihKsVihHGlle1jb0knDewDAY/KtFpfAFbHjJVgSHPZItn7fF HbMO5vEXdd33hPPw5K9yHVI0TwVsyB0bICaenhoYPsY7xPm/jjIAmQcY6AuGbzTNMrW4 RunUKOsM6VAjdz/xS1sMKpokbIpxpqb5bOLDHzLURlCyYfP7j3Q0cmpoL+y3ca7orzYp EQWA== 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=ycCrVDHaX+NhN/QEfInARNi2pTX1RkKDreGfUOz6ZME=; b=PteQcQY1pZ9Owf7HpV8Bp22b9e+07pF4SPYn5OTEhOIaOU+rcOmV9VfBzopf2/vL1G ip/VK/lyQidrCfNDKgZ3tg3CsMZ+TOnoFhGJLWvkL9IREuvQzx0TNdEyPw9kO55b9n6A LoxFPEgistcDM+rKP5p10KwoAB0dyxU3md35r0NoH+8rny8TqOBHbJC3dZPB1Y/VuHP5 SG6Y/U58/AxYcSZzpG+2AZs8oE9ReJcArv0Log+nM8n2B6i7nTDa5vHvSvRv21kkCbpI 65VvbQSKt+gtWLe0Tv/nStT2C2TsQP4FBOMgpY4EpH3VF7qBoIqmWbFXioIOGgj+efPc eLvA== X-Gm-Message-State: AOAM531VkpFT2qXkZiJpFm7SGN7/mI6uLtlBYAK6hbDNkA35FUuh+iSz tw186J9HTvlxdGGCoHM8Cztw3vCB37lTJw== X-Received: by 2002:a17:902:720a:b0:151:d7d7:6ac0 with SMTP id ba10-20020a170902720a00b00151d7d76ac0mr8668143plb.128.1647792018128; Sun, 20 Mar 2022 09:00:18 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 5/7] linux-user/nios2: Remove do_sigreturn Date: Sun, 20 Mar 2022 09:00:07 -0700 Message-Id: <20220320160009.2665152-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::62c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There is no sigreturn syscall, only rt_sigreturn. This function is unused. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- linux-user/nios2/signal.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c index 517cd39270..133bc05673 100644 --- a/linux-user/nios2/signal.c +++ b/linux-user/nios2/signal.c @@ -185,13 +185,6 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, unlock_user_struct(frame, frame_addr, 1); } -long do_sigreturn(CPUNios2State *env) -{ - trace_user_do_sigreturn(env, 0); - qemu_log_mask(LOG_UNIMP, "do_sigreturn: not implemented\n"); - return -TARGET_ENOSYS; -} - long do_rt_sigreturn(CPUNios2State *env) { /* Verify, can we follow the stack back */ From patchwork Sun Mar 20 16:00:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553169 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp836155mag; Sun, 20 Mar 2022 09:04:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtkrilGIJJcfcNTL8fEm2TXWL4tg+RUtSN0fF11j2OOyDpuj5Ugws0XOBtW/OGoUFH7uxr X-Received: by 2002:a05:622a:190c:b0:2e1:ef94:63f6 with SMTP id w12-20020a05622a190c00b002e1ef9463f6mr12553704qtc.197.1647792261143; Sun, 20 Mar 2022 09:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792261; cv=none; d=google.com; s=arc-20160816; b=t9w1L/s9W54CI40/40LH9xeLefvHKM7DtPBtYXenM/5styU8IG1eJ+vPpLDNDcjcMo fIIwQUUva0BeKp4P0bUyAdZE/bR+zKSjLCDA/h7U1XKvQlTpNU3PP/J+rzD5JUdVzsh1 eDtZdbEDDYHdlSfDcQZ0av9mJXBJ8eaXL/eIWmgxWUtvGL6nOvQCV0x5RASB3Uqv2c6A af6eS/AZZ/Nts9sJHT6mHFbPcL8yn8LCJ5vnyQAwyWpKwPV8uBlf4IyEV4Hj7C7OCOkA 2KXubS7KTICsweK/bGMxIWrFG1yq21qZIZ/xbol2sYVBP+Eww86JO3EkOzFS6/Rs3hlu 7ITw== 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=YYEa48pVwjRe//ZBdWWOscJh8NC2Ar8MiPWxZJD3GgU=; b=lsR+SzR4kRqnk7V5a7VROCib4jvD88mj4Zo538H3Cjo0JF4vC6dcsMZ1fvvgJKGG17 CKjonXMIjfyJfccA0f+Ag7Vd/ygJpw74p5kHr3X5FCc97kwEDx44TToJ12fgGTQJZdVK WEILe5C/hn2tmuvI257+0ZZrwAvWShuuV+igMRp0S2/+6M5980fJqkW7oygG8Ujr5mCn BRyb8Iw2HJj0NrzaalQL0q6tu8/bgY6UHEkqhm1vg13NOmh6ApTKyK6/0v52kjQg+COR zeN7ftyd526F/SGe1aYL/zGCMke0cqYAVrVCSbBCIb1I6n7HkHPZxTdwQz7BbiWorXHF gLDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KpW2A/RY"; 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 u13-20020a0cee8d000000b00440e46a7d33si1184327qvr.465.2022.03.20.09.04.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:04:21 -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="KpW2A/RY"; 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]:44466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVy2W-0005ao-Mk for patch@linaro.org; Sun, 20 Mar 2022 12:04:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyi-0005L1-LR for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:33 -0400 Received: from [2607:f8b0:4864:20::429] (port=37811 helo=mail-pf1-x429.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxyf-00066R-Th for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:24 -0400 Received: by mail-pf1-x429.google.com with SMTP id t5so13589066pfg.4 for ; Sun, 20 Mar 2022 09:00:20 -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=YYEa48pVwjRe//ZBdWWOscJh8NC2Ar8MiPWxZJD3GgU=; b=KpW2A/RYAGPEb/bPJifveVsgfBrdKIZdlEOq7KEZxcJ9fYzCx8c4Bn3WBjdYoCFQ5n 421v8h30gFE2gSyn7818yNQx4yKu9P/ZAl91NHV9ykifpSQXYY5VgYmKX+BKzbda/YUf rMWeryhjCwUJIHRh2J4N4sqoZCWEzdnmiscm8wCG8LaHsBu8ME7zUPsN4Q7xK5ENHxxq zCiNCqZfWzVwqUVNr5rL7aZzLwbc/NkeI3KonX3dRpnDPqk1SxMlRlU48Mo7VOAa3oGg 0QQ6iOD+mJJ05ezdM0wZjVEe4X7XgcFlWF96iDLHguCf85kmRub/wwiQNw0XxUR5fy1u CapQ== 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=YYEa48pVwjRe//ZBdWWOscJh8NC2Ar8MiPWxZJD3GgU=; b=7LIGpxspBRjxQ4y18pMpR8d56oF0JqJCyjLDYDvtu5/TdG7o2QceYmgyQhVQq6y+gf qgATMQ+FQWTnZFwUI3jGi7LvvoXUAQkBoEDLSmeIcfNwnP5m0uRM8Oi96D8p1JMmpL1E O/Yia4kEMrtToC8H0cG1lm1dAQZg7GWCekMjeQkGnYS3dfiWsjHW1gcyZMS1NMWidcar og25hwFJ/9oWLtkrlpueejNT79z1dKArSNCzoQMwOZDai/um9zG1xTqJQR/TjPifHKb5 AfTFFmZb1Zu8RpEDUZcU8gWMTP8TfknIx/umOn73I+N8VZu0aWXrhfqcMzj27aBLVsoF EG/Q== X-Gm-Message-State: AOAM533NZ/ThcUTt288GfTMIEv1YXpF5tvZAaOntENd4sf3iPZpmBR/q KZ6Oo5ATEXSzWWuG01bAwDIDVapJXYb5Fg== X-Received: by 2002:a05:6a00:1582:b0:4f7:63da:dfea with SMTP id u2-20020a056a00158200b004f763dadfeamr20092336pfk.27.1647792019175; Sun, 20 Mar 2022 09:00:19 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 6/7] linux-user/nios2: Use QEMU_ESIGRETURN from do_rt_sigreturn Date: Sun, 20 Mar 2022 09:00:08 -0700 Message-Id: <20220320160009.2665152-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::429 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Drop the kernel-specific "pr2" code structure and use the qemu-specific error return value. Signed-off-by: Richard Henderson --- linux-user/nios2/signal.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c index 133bc05673..4442974001 100644 --- a/linux-user/nios2/signal.c +++ b/linux-user/nios2/signal.c @@ -77,8 +77,7 @@ static void rt_setup_ucontext(struct target_ucontext *uc, CPUNios2State *env) __put_user(env->regs[R_SP], &gregs[28]); } -static int rt_restore_ucontext(CPUNios2State *env, struct target_ucontext *uc, - int *pr2) +static int rt_restore_ucontext(CPUNios2State *env, struct target_ucontext *uc) { int temp; unsigned long *gregs = uc->tuc_mcontext.gregs; @@ -128,8 +127,6 @@ static int rt_restore_ucontext(CPUNios2State *env, struct target_ucontext *uc, __get_user(env->regs[R_SP], &gregs[28]); target_restore_altstack(&uc->tuc_stack, env); - - *pr2 = env->regs[2]; return 0; } @@ -191,7 +188,6 @@ long do_rt_sigreturn(CPUNios2State *env) abi_ulong frame_addr = env->regs[R_SP]; struct target_rt_sigframe *frame; sigset_t set; - int rval; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badframe; @@ -200,12 +196,12 @@ long do_rt_sigreturn(CPUNios2State *env) target_to_host_sigset(&set, &frame->uc.tuc_sigmask); set_sigmask(&set); - if (rt_restore_ucontext(env, &frame->uc, &rval)) { + if (rt_restore_ucontext(env, &frame->uc)) { goto badframe; } unlock_user_struct(frame, frame_addr, 0); - return rval; + return -QEMU_ESIGRETURN; badframe: unlock_user_struct(frame, frame_addr, 0); From patchwork Sun Mar 20 16:00:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553175 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp842229mag; Sun, 20 Mar 2022 09:13:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlEaiQGEIK6M6edunrKMXW//sYumqwNIw1sV8ug5HvQ+NMnr0XhcObW5nCSVn8Ep3B4oRW X-Received: by 2002:a05:620a:22d7:b0:67b:1bef:7701 with SMTP id o23-20020a05620a22d700b0067b1bef7701mr10552651qki.268.1647792783338; Sun, 20 Mar 2022 09:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647792783; cv=none; d=google.com; s=arc-20160816; b=ZysIx3AVXZBOlxqGDO3H/YSj4Rz+07Lq0sc8T+0rXVTpz6hJenkUI7qvsTV280M7yA kH6Wav3aX8oQaeTD9/3AoURWalmAeTDhmaIAQCCZFK1ets9Dla0QjyYgwqhalVl77f1f oH752a8jkT7QQjty9GFQVzY+V12igTaoXd2oz7379UgTM1oHo6dZfHSiY9djzv7PivCU SsRRVoPN+d2YE1rVutSOuclGShfdHev36T90NP5ZIpVqznMU1pjQP7r3xZ/R0mwqv3h1 q1Ix3BI+qvMnATim4RKdnB/eIbYJFr0FJlnmgr+aYiSZSG0B3msZwpJSLGYzBM6OZT0z r8Jg== 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=KZBECJuFzSTuUllaWSNHHnhE+hoPlqid0qBz/DeJefU=; b=ZEAvL1Q9c3qmAnzs6QjURfjiujP/pm0k62EhLvOw2aRT37OR4y2kRAu4iXNEp3mtlH YhJHmdbzeYzC1NZJtk60IztlAgTA0FKSOdNRHNKwVkW5fEVjimSPCAjZ9kZs+5EUsQVG 1cYnqd+fotkifDyc4HPQQ5txk7gWR3I2m5LD75ULpIKs2vWOSN2sNDgy+G0+0vKvhH+E Z6ypLLtaqnLj+GI8k7WANmcH4KqiGvriLos83KZsFqsbOjUC+eXxOck3zd4ZLIhL5WfI 8VqVkANNtsW5iowfjAVARDuVi3AsA/gAR2IQBKni5fzwBYULMIqbxrG+G6KWg9jKyyOH IYRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O+qkYok2; 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 z10-20020ae9c10a000000b0067e4be23961si1189700qki.422.2022.03.20.09.13.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Mar 2022 09:13:03 -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=O+qkYok2; 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]:38054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVyAw-0003Xy-K0 for patch@linaro.org; Sun, 20 Mar 2022 12:13:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVxyj-0005L8-Af for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:33 -0400 Received: from [2607:f8b0:4864:20::102e] (port=52744 helo=mail-pj1-x102e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVxyf-00066Z-Uy for qemu-devel@nongnu.org; Sun, 20 Mar 2022 12:00:24 -0400 Received: by mail-pj1-x102e.google.com with SMTP id v4so11198476pjh.2 for ; Sun, 20 Mar 2022 09:00:21 -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=KZBECJuFzSTuUllaWSNHHnhE+hoPlqid0qBz/DeJefU=; b=O+qkYok2WTe2y+ObCm7xx7AYQTVqg5ujkrnJqDwfC7xbrex+/cc/pDl5Gz6wdeS+D4 gHM6SYBEbVE7Lzmoe1R+H8rXQD62N31TQULShjIkRKJ8bIfCIu0qNnSR4d7MKBFrfV4M RWqbaoMTDOU8MLPgvK1Ujs8wo14ZWNiCdJ8e9rjVr/fpkIDI5XmOiu0TVi8kItERYTTf 1EN/Ka9okeygAvD1j9/pFfI5jS27GSMkh/v4pl+nL56D+lm/lJwzFcNVnx0gBdiYcv50 qCUePzczT+UT3e9Ma0rIfu54Ik3HYjPrlpnhOM31TRygG9ngUzIAEt8g8F0QIk2OiN3I pX5Q== 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=KZBECJuFzSTuUllaWSNHHnhE+hoPlqid0qBz/DeJefU=; b=d92H3inqcdUuqYM1bqjkbIUn1CdDNL1hTkkirNjYeLxFgmhiw0fueo5GLUaORgQXX4 zBI2zzuR8rXIi1qZYzcPLMEdVnT2QxDjCgyQEiZHRiPDcG0ExOCQN/7nb8PqFG06iHyH aXo5WukYewlkGJzN6VQYDRcyaX4BCFW9d/y8MiJDoM//kjMenqVp1KCuemjSb9uKlDJ5 UzppgxIxKWQXFXFaZgYaAVNA31XQ0H9xGYZJuqCj82W+XYrUWtjeRQyIRP+hQM3r2PCc jpYPmCb06VGHg6vXM368kMpPlbQ3BEaYWWN2y9pGu5dyPnOmSiRDROCNR3F0BCJumS9+ fAnw== X-Gm-Message-State: AOAM531o1SsDm7x0DzZ4RVQf56jJTX3R57C5/9j9f2endZXToc2j5DH/ 3T0eRsxVtz+IznPzUAhTFK8aaz1FxuXJ2g== X-Received: by 2002:a17:903:1108:b0:151:9c42:7d1 with SMTP id n8-20020a170903110800b001519c4207d1mr9078334plh.54.1647792020138; Sun, 20 Mar 2022 09:00:20 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j23-20020a17090ae61700b001c6bb352763sm6590099pjy.52.2022.03.20.09.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:00:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 7/7] tests/tcg/nios2: Re-enable linux-user tests Date: Sun, 20 Mar 2022 09:00:09 -0700 Message-Id: <20220320160009.2665152-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220320160009.2665152-1-richard.henderson@linaro.org> References: <20220320160009.2665152-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102e (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now that signal handling has been fixed, re-enable tests. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- tests/tcg/nios2/Makefile.target | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 tests/tcg/nios2/Makefile.target diff --git a/tests/tcg/nios2/Makefile.target b/tests/tcg/nios2/Makefile.target deleted file mode 100644 index b38e2352b7..0000000000 --- a/tests/tcg/nios2/Makefile.target +++ /dev/null @@ -1,11 +0,0 @@ -# nios2 specific test tweaks - -# Currently nios2 signal handling is broken -run-signals: signals - $(call skip-test, $<, "BROKEN") -run-plugin-signals-with-%: - $(call skip-test, $<, "BROKEN") -run-linux-test: linux-test - $(call skip-test, $<, "BROKEN") -run-plugin-linux-test-with-%: - $(call skip-test, $<, "BROKEN")