From patchwork Fri Oct 1 15:33:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 515035 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp908950jaf; Fri, 1 Oct 2021 08:35:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxjqj3FzV8Y1iGuJQKlZIV9Or5Snzt/2vQQc5n6tdrm2ycjWvThnQH8HhS7l6DkoMcDPb3 X-Received: by 2002:a1f:f48a:: with SMTP id s132mr8216227vkh.9.1633102505445; Fri, 01 Oct 2021 08:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633102505; cv=none; d=google.com; s=arc-20160816; b=re1ibQgJKoWBuFi3t8i2X58g/bzIP9Il63CIPqQN9WpXNUqtH/W9cWr7r8suspv/ht Pfe5r7FsW7HMNXYLfcLwJGhEsH2PN6kuoFHbuWBAd2Dd6T2KKmpccF/DwfsJUCJJ67ew LD6v84lnEE+mCGaAniV3a44+9zi6q9FRqf8xtaPjRlpYUTDdie1QdaZmFk0s3PM0uYXR lD0HR7/03+S3sY7Jn87iW4szKvK/4fuADww5K3EL4Cvlj121r8cZENUeHXcHyq2ABLoF Ne40mBNHKwZpgwVLbk28KsRyz0bYe+7drPaKQzXqzJZkiIMv04qqJRTMGu+5KQFUMiZK KBzg== 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=Vpzik9fNKhz18PtMw1zdDs2SKKM1QI9JJwM6/JJ0jiw=; b=EtQQLA6GXm2IMbQJPBMuPYSnENrS9ReHql+7oyG64cWDiLWVUtPT8TNB3Z7Louemjm Fn1tSNxG4WSD0QhVew+QS5IZdOPnHuD1cQ//jcXiFunJ6YYDAlchKso7w84PwYFkMaKc DxiHtmQMulpJxvNmhNxKuKaX5sO+KS3Ydlw/0aYgH5nv8Q8cOcpFhvbtgl2ySfz8j3Fw rJn/pwg8X5/GOQBzhRRz8ijkoX1p48RaFybXlYzgQ7CZirZtUQZLhy4s8Mt99OSUE2ZZ qbpbAuX9gBCdiGQnsAZHnF8olSxyMT/u+pyIiTS++YTVN9zyQVV63kEeRHGVkc4XLsKQ TvrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="Q/jcSR+2"; 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=fail (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 p9si775755uam.32.2021.10.01.08.35.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Oct 2021 08:35:05 -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=fail header.i=@linaro.org header.s=google header.b="Q/jcSR+2"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWKYy-0006Jt-SX for patch@linaro.org; Fri, 01 Oct 2021 11:35:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWKXr-0006HM-BM for qemu-devel@nongnu.org; Fri, 01 Oct 2021 11:33:55 -0400 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:35463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWKXo-0007dl-4P for qemu-devel@nongnu.org; Fri, 01 Oct 2021 11:33:55 -0400 Received: by mail-qt1-x82e.google.com with SMTP id c20so9317211qtb.2 for ; Fri, 01 Oct 2021 08:33:51 -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:mime-version :content-transfer-encoding; bh=Vpzik9fNKhz18PtMw1zdDs2SKKM1QI9JJwM6/JJ0jiw=; b=Q/jcSR+2vgYTaLDG/lu58ZJtvalhEbeSKP2Yd5ZyuNSHGSWIjFXNbWJYiJ09zZHJOp TvSijhj5UqY2Kh4q+bSTTwSD4IwUW8DWMPUKU/rpetzGupwXusHXK9o3XTQ5PAVetTgm nn2VWGr2/Nm9D8NW2nfUmK0JI7+ZQ+KQTnErZjOQStr812XkYntW8SoPHaEN4QaX9iK9 Uips5ExioaP1S/XL/goxBoSaP4+pQTYVwzW9kfzNak4bG1NM8cdO7oHan9xJjJVqbWLP gG5KHYNHEf7pX0xT4A4+Ahq9B2W6h8uOn+w/igs7efhYNj+wgM08fOxFBJdPU0fs6CaO VdbA== 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=Vpzik9fNKhz18PtMw1zdDs2SKKM1QI9JJwM6/JJ0jiw=; b=Ur52oKySqDgm7xDTbq5whyvB7NxxG797GdylACxiVcXYC77auzRk0cuUvSY7IF2Gn3 C3hbmfBSVnbEyf2BMwWIpaDMP+JvIRbxBEzjLoEsbtT8RUje/9GSyNH/3MTqBU+wA9VM C6kdg7KbWo067PSIIYJoieIcVNAE1OHLJMk1YadSKzP51l59M4amMKnsZ7NvsXGHl3qX 8sDyYE4S27Lb2I8SU3YN2gdzaAU3/cb+pgyJaa7m8JgC+EEsd1jHp3hwuJSnAclhIfgG ZQ3ewgqR3UFA/0EjKu2rCZ4LiWuYCEYD5ycO5vo95V/GCX74Iv5tWDmeupLeF19S6/Kz ln3g== X-Gm-Message-State: AOAM531N7+8U+panZdZZVQdjwJ9McMEaSIhFkZ+1vTE0Elvy25DbOL1d zekSTvKfXjh5x2yh/5F0U9hENjTOp3v3aw== X-Received: by 2002:ac8:71d4:: with SMTP id i20mr13627955qtp.248.1633102429588; Fri, 01 Oct 2021 08:33:49 -0700 (PDT) Received: from localhost.localdomain (c-67-174-166-185.hsd1.ga.comcast.net. [67.174.166.185]) by smtp.gmail.com with ESMTPSA id x8sm3484823qtv.5.2021.10.01.08.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 08:33:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/9] nios2: Enable cross compile and fix signals Date: Fri, 1 Oct 2021 11:33:36 -0400 Message-Id: <20211001153347.1736014-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::82e; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82e.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, crwulff@gmail.com, alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Patches 2, 3, and 5 have appeared before. The patch for the kuser page has been updated to use the commpage infrastructure, which needed expanding just a bit to handle the page being at the beginning of the address space. Getting the toolchain built allowed the code to actually be tested, which showed up a few more problems in the testsuite. I have already pushed the debian-nios2-cross image to gitlab, much like we did for hexagon and its locally built toolchain. r~ Richard Henderson (9): tests/docker: Add debian-nios2-cross image 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 tests/tcg: Enable container_cross_cc for nios2 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 +++-- tests/docker/Makefile.include | 19 ++++ .../dockerfiles/debian-nios2-cross.docker | 34 +++++++ .../build-toolchain.sh | 97 +++++++++++++++++++ tests/tcg/configure.sh | 6 ++ 10 files changed, 302 insertions(+), 99 deletions(-) create mode 100644 tests/docker/dockerfiles/debian-nios2-cross.docker create mode 100755 tests/docker/dockerfiles/debian-nios2-cross.docker.d/build-toolchain.sh -- 2.25.1