From patchwork Thu Feb 2 00:51:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 649634 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp609310pva; Wed, 1 Feb 2023 16:53:07 -0800 (PST) X-Google-Smtp-Source: AK7set+GPGoOwbK7QaY04FJPf7Z9SGIj6sj5dKmlI5XlQdDmZCnMtx+iPKPs9Vsy9gUhdyf8yTbj X-Received: by 2002:ac8:574a:0:b0:3b6:3512:eec9 with SMTP id 10-20020ac8574a000000b003b63512eec9mr1068590qtx.51.1675299186926; Wed, 01 Feb 2023 16:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675299186; cv=none; d=google.com; s=arc-20160816; b=EaGWRYHLxJGUqxsYiDITv3aJwHZyuqX4BtWID1JqhcTotYZz/APT6MMNDEbby7zzRI ntAMGHjY+ZaOoITEP9zEw1++5OCQBuci/KR86Lnzl+/dOuoQvQ0CEO+ciXhnto1Aaymy pU05PHO1pZLYBL7rZ/Od4eg22T076i5vtYnFtiLDK4ugn31sAe97F8yH9yldaHkSM/gp 4GVqmEtXQlIy1RhQebOlJ/ySiinkIviKwru62U53Wv5qA3JDbP/gjhangpjmwxLWaJ+z DxuUvqepu6JAqhWaCcp91ka+RMUD6MNgtl+Nps/yXijtRM6rO0LIAEQZpCNjRQGgote5 Scvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=D5hLI71ahPZ9W/StCPwUD9GIvdTuh2ILhzbSH+kVcx4=; b=KhE8juw5ZOH835rDHeoVXcsrZLQ9Cbu6qnxiv20WfM0zvxJ+KY5zOpFiECmW8E40Mk dMDSVhjBpDGHlKjeda505uGxBUO7iordeVKWVTnS6+KIlibzYt/Cpk7jQH7O1SW+3131 ZZvDb/RuXqqHg/4wPemNs36VUUt10+1KfeLa59p6UWSUJ2QZl4xjqAkc4CzGucwrKCJL qP5NhpdbLre2v0yYZojBvNfp8ekTIPNoPfq8nGXj1pWFP1QggZiJqAUwCFvvFPE01Nfx RPaSsclsgGr2m6TKILJiXb4I7VqVi6emiPPEPxZOKK2bESgDtpztUq5SOXDN7nFgs80r VQMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GRVjBi5C; 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 w2-20020ae9e502000000b00705b1d4165fsi10542499qkf.676.2023.02.01.16.53.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Feb 2023 16:53:06 -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=GRVjBi5C; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNNpl-0005yS-JD; Wed, 01 Feb 2023 19:52:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNNpj-0005y8-Id for qemu-devel@nongnu.org; Wed, 01 Feb 2023 19:52:12 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNNph-0000OR-T4 for qemu-devel@nongnu.org; Wed, 01 Feb 2023 19:52:11 -0500 Received: by mail-pj1-x1030.google.com with SMTP id e10-20020a17090a630a00b0022bedd66e6dso4060115pjj.1 for ; Wed, 01 Feb 2023 16:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=D5hLI71ahPZ9W/StCPwUD9GIvdTuh2ILhzbSH+kVcx4=; b=GRVjBi5CPNPObopIcIuxiP55XiYY0xm76ZXIJkhrtYvhBWgN8yWnTAll5YioKXOX6F /zer5DcsTvTDQyN8q7KwQHrLxY2sOsXGefTNyZYghyvWTdzehFKL/Q9MsqEpSd3UJrrn rCCF+A/AVnNSWKIjTaryLhZCcs4fQP+C3zlJrkMe74DFv6J6MUCjWo0zLxaDcA9SqKV4 OomPnkKtOQd+a4pN8zixfnY3iQPKkM/rqAiSfRd+BtoqBuk6s0XgxyXgyRF82aSpff8y OIKXjG8d4GlyKIx3ATJBV/jP2fkdM5feAYhEUD73R2uECFrWTtPKzv1V9NJgwGH1S+ip mmRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D5hLI71ahPZ9W/StCPwUD9GIvdTuh2ILhzbSH+kVcx4=; b=BvM4wOXYGmpzluPLsQITfIBfL59XC8L2jrsv6LEUqZSPqpFDpA/0uQZz8vMfZ65xJw eI7xlbQJAdLfmVyfUAUXzFp96YtEeCltw0vOy/X3VpctRnLIfwpSw+SrgHDSmKdvuNun rXersMeXt7CGg1VEyaOi6k2pYlvxM6c9yeI8l2K7N/cn+0siEdnSYFYRjNNQmN0nR5o3 ms2Eto6F4BGXZMNaXFX7SY9nxjd4ouv9hf/ptJ1a8XKOUBn7u8vrTKfT3wdz4UZ+JTw7 HlitsptDQa9ZaBQaD/kN8dZc5cGtB9KryjFjYNK9V6hSbyfjQNYhPG9IR0SMbzf3v+0g gUng== X-Gm-Message-State: AO0yUKUr6w0Rk6fK380SVmVK3gNGr3U7jnkZLVVNR2lFAjHu05rbx42w dGbJwd4XrN8o1lqKbtbGhYuJZu92cT7VPzcm X-Received: by 2002:a17:903:487:b0:196:1e18:7df7 with SMTP id jj7-20020a170903048700b001961e187df7mr539042plb.40.1675299128260; Wed, 01 Feb 2023 16:52:08 -0800 (PST) Received: from stoup.. (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id z3-20020a1709028f8300b00192cf87ed25sm12391334plo.35.2023.02.01.16.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 16:52:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk, laurent@vivier.eu, iii@linux.ibm.com Subject: [PATCH 00/14] linux-user/sparc: Handle missing traps Date: Wed, 1 Feb 2023 14:51:50 -1000 Message-Id: <20230202005204.2055899-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Lots of missing trap code for cpu_loop(). r~ Richard Henderson (14): linux-user/sparc: Raise SIGILL for all unhandled software traps linux-user/sparc: Tidy syscall trap linux-user/sparc: Use TT_TRAP for flush windows linux-user/sparc: Tidy window spill/fill traps linux-user/sparc: Fix sparc64_{get,set}_context traps linux-user/sparc: Handle software breakpoint trap linux-user/sparc: Handle division by zero traps linux-user/sparc: Handle getcc, setcc, getpsr traps linux-user/sparc: Handle priviledged opcode trap linux-user/sparc: Handle privilidged action trap linux-user/sparc: Handle coprocessor disabled trap linux-user/sparc: Handle unimplemented flush trap linux-user/sparc: Handle floating-point exceptions linux-user/sparc: Handle tag overflow traps linux-user/sparc/target_signal.h | 2 +- linux-user/syscall_defs.h | 5 + target/sparc/cpu.h | 3 +- linux-user/sparc/cpu_loop.c | 170 +++++++++++++++++++++++++------ linux-user/sparc/signal.c | 36 +++---- 5 files changed, 167 insertions(+), 49 deletions(-)