From patchwork Tue Dec 21 02:50:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 526584 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp4673321imb; Mon, 20 Dec 2021 18:51:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjEPKuh8b4IRHugzxnItZGnRa6ksIrL5XTqNpf78liZFTreykCzeHci4iOdPx01s1TQhpe X-Received: by 2002:a25:acd4:: with SMTP id x20mr1676063ybd.416.1640055062469; Mon, 20 Dec 2021 18:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640055062; cv=none; d=google.com; s=arc-20160816; b=xK+N6G6n0RTME4isazF5WK22PeUiiTDhrdlF1GHwpnKC9wevUvegQ9obXGthBqTj3p xdqto/oztQmB9mbN+nyRQkjfZTtRzC8XLT1sb7P+7tD71NrDpBTTubr/oa5eBR65/l3L gpaBls/4oN2V5WZG16F53rtN/Pvct1k9Mdl0G9tLUw9d/poOTZJ2H31usHcW8jNgRXZA gDXWs2sXOKQprEREbvVstEkEH+G7LJssGOx5gTkDdCM/0OslRKmXTl+AD9WfpCjtJdTd B5bJ3gMmvZOrBa0hNXl797AJ5xTgHNmDPtAUAIlmD7bYIyYv2EX80fnfR6IfR1QZJca+ 6OSA== 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:message-id:date:subject:to:from:dkim-signature; bh=/oHt1+8v6mAbfLXzY0EZ0V5CLrO1igvqnsQslKdSg/Q=; b=st9iJDrdbZJke0GPVpGxO2wLUDgpHBL5+Qf2/CerVIxttML4nIJ4J+6HSLl8dd7j1M tvBOsSlPH5e5sdM2DGJldHDmC3mPwXRuwwNOU24TfooIMzIk2mBV3B4jYXkawWIQoN/r +zqZRZ216HhseeA+lZacAFRwMgkmQRFmzMyEBMITy92X7cZq8Hg1VdXZIvJXdTO/6CNS bt3HgEzTHNZ4YQlUjDzfocneQceM+wVjTw7yNnoJYtHLRzZLm2LvbFbGyPjxbHzgHb1Z tNsODucgPF2p0AO3RS67bn4VgdOv3DtkifTFtCOWsHtpD7/tIxGqfedxSlrLV3ZlLRvK ZG8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eTr27oTj; 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 d189si17153101ybf.36.2021.12.20.18.51.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Dec 2021 18:51:02 -0800 (PST) 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=eTr27oTj; 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]:45544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzVEz-0003b8-HK for patch@linaro.org; Mon, 20 Dec 2021 21:51:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzVEH-0003an-O7 for qemu-devel@nongnu.org; Mon, 20 Dec 2021 21:50:17 -0500 Received: from [2607:f8b0:4864:20::102c] (port=40870 helo=mail-pj1-x102c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzVEG-00009w-7r for qemu-devel@nongnu.org; Mon, 20 Dec 2021 21:50:17 -0500 Received: by mail-pj1-x102c.google.com with SMTP id o63-20020a17090a0a4500b001b1c2db8145so1071219pjo.5 for ; Mon, 20 Dec 2021 18:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/oHt1+8v6mAbfLXzY0EZ0V5CLrO1igvqnsQslKdSg/Q=; b=eTr27oTjE8fZdFEUuB0Ne7I/hUw4JNHejIyq4+TqgkoK7xI0myXpT6G1TLLwY4zwgm icN5Cj+j0j23CYuz7vRQm8wr6jRT+C11gjV4jZ3ArQO4JDTmZpj6H+lUistXDWvdmEm3 CNgH6idDBgXzSnLKINFOEsHKpwFMYU+kwApFHFesudDCN2ef/g7/Y3IwvDPDhDQ3Sg1+ 1AWCaPb8GwhJ+ZN4s+awsKXx0OBnKk6TLaQ6HH6AlnAks7FTnLDnZqViaxQbmX+m++7c PWKz3e4yVDawIitF5HoAoa2ZtcsmLKFzU45+Fyce6cxBNXaDa+aHWg88/JlF3wYHj4Tj Ixjg== 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:mime-version :content-transfer-encoding; bh=/oHt1+8v6mAbfLXzY0EZ0V5CLrO1igvqnsQslKdSg/Q=; b=k42tINCl4opwoB0TtXBP89v+KGTwWIiHG632Z1j76BteyPDohldaYUkBI9SIbRB1Bg G0AzLkk8WDwvPENFhaG27hqK23TEXM55FZi8pCRlmOXd+3plarNxXg++x6LSzPNKb02D qPF/mcsMNd/3/7sEmT979HgEQGMJ07daO6+Y35dF3nB8RYdhtudG1g8Dd9FkaHvpExCT wvpJClcIZxDIjtpsbVdQHVh3I2tbk3tPWw1mUHjiaiynHDm79Q2N6/KT8WqW8dFhVo5r YUEkgF6+pP4JIbvCghmkfY10ljvIa8uDDBpWt3NrQN6pNv0eKy2hFUMpGZdkl7JCd56l FZpA== X-Gm-Message-State: AOAM53121u9ZRBFLKjsARVA9GXxZ0OTOHihAAQFf+6XcLHukoeiHBwgr GLJnLnpFhUM/Hd8e2nWEEMFRVh0FBdzMuw== X-Received: by 2002:a17:90a:f682:: with SMTP id cl2mr1334420pjb.124.1640055014688; Mon, 20 Dec 2021 18:50:14 -0800 (PST) Received: from localhost.localdomain ([156.19.246.20]) by smtp.gmail.com with ESMTPSA id bg23sm694025pjb.24.2021.12.20.18.50.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 18:50:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 0/7] linux-user: nios2 fixes Date: Mon, 20 Dec 2021 18:50:05 -0800 Message-Id: <20211221025012.1057923-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Fixes syscalls and signals for nios2. Works with the docker cross-compile toolchain that has been committed. r~ Richard Henderson (7): linux-user/nios2: Properly emulate EXCP_TRAP linux-user/nios2: Fixes for signal frame setup linux-user/elfload: Rename ARM_COMMPAGE to HI_COMMPAGE linux-user/nios2: Map a real kuser page linux-user/nios2: Fix EA vs PC confusion linux-user/nios2: Fix sigmask in setup_rt_frame linux-user/nios2: Use set_sigmask in do_rt_sigreturn target/nios2/cpu.h | 2 +- linux-user/elfload.c | 66 ++++++++++++++++++++++---- linux-user/nios2/cpu_loop.c | 93 +++++++++++++++++++------------------ linux-user/nios2/signal.c | 56 +++++++++------------- linux-user/signal.c | 2 - target/nios2/translate.c | 26 +++++++---- 6 files changed, 146 insertions(+), 99 deletions(-)