From patchwork Thu Feb 16 05:45:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 654007 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp177112wrr; Wed, 15 Feb 2023 21:45:50 -0800 (PST) X-Google-Smtp-Source: AK7set9RPsczGxxR1S4XrreqsGxlUHlQd1SpR9QYSGnl8GabD/LoscAY2TI5DPuOC0axgXA8WDhj X-Received: by 2002:a05:6214:3019:b0:56e:bb5b:3dfc with SMTP id ke25-20020a056214301900b0056ebb5b3dfcmr7706705qvb.38.1676526350146; Wed, 15 Feb 2023 21:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676526350; cv=none; d=google.com; s=arc-20160816; b=rOfpmlNxHT+2UN9jZb6sQ7KigPQ/RqPD+8ySYO1rlkMUHdG24ifCKsxmrzDjJ3uXf5 LYfn2vcwwqQoZrx1MsFPBTP/LyQETsuGGp6qISTzkLk5fw8U0oOOZ/UteuiAjWuet137 Sx9+n0CfqrRihHO9n4bA36V+hLUkT0j1pCHFj7eMuONNHTeHOofuX6XQ8MMec1N05xaC RUPgpo6WjoYSYaum23JAKrOJa22dffodlstMdONOdsbvJssZ4btt57EeuKYi/2kXIRfo Co6rqoyLuG6X1qNKWc3YjuifAO1/s5y7uPr+902PeE8vpcD/j8UUDL3bgg4l0iJyMTCk Fsfg== 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=LvbZKnBr/NF2E/Lc5Mys2LbwF54ml+50pTQoCc89+9o=; b=pJ6iSUZ/5vL9XMlIL9j+MDcWx9HjubordIijpNvNeG+V7RE4BLX4QcsMXIKc5empIt K3Q9reLIZpuYtcW+4PP6B2V37iWbDhjPUdCTyECp6w7AP+mejV8/dW0rWTZw3Igx/iHd U42pcshlgQD0k0DaBaBY4bLneUmFIVPZPM+DGS/a7b1ryObyCkEANCHjIbVwBCAg0eE/ 6opPhwspxw82piij1hZwqdvY0dMw3bcv82EvxIa0dqVhUHk/5tEs6PBxRP92dUI8WWia 1i8sDxali3E9f023Bl7uaTc1uF3e8GBx98FC+dMGIAApR7rnwuLLSLIVcAdcPUON8CVc 7euw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bmxSWabn; 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 z1-20020a0cf001000000b0056c18ff8509si428430qvk.188.2023.02.15.21.45.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 21:45:50 -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=bmxSWabn; 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 1pSX5R-00013t-IP; Thu, 16 Feb 2023 00:45:41 -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 1pSX5M-0000wb-7Z for qemu-devel@nongnu.org; Thu, 16 Feb 2023 00:45:36 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSX5J-00010Y-Il for qemu-devel@nongnu.org; Thu, 16 Feb 2023 00:45:35 -0500 Received: by mail-pl1-x631.google.com with SMTP id i18so993965pli.3 for ; Wed, 15 Feb 2023 21:45:32 -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=LvbZKnBr/NF2E/Lc5Mys2LbwF54ml+50pTQoCc89+9o=; b=bmxSWabnP6rjI1UZK4tJ/AaEtFx3oeE688AsfxoD7buKDALsPyijw9SJfyPIsd9+J/ cFsOtuyFhgyzgFqRH68DtL3Oe56S1G/zScfFGnans1qbIsjhp/dpcU1eYS7bkvicOIa2 f3rjOsQEPSQsBvQyVF5I8UvkgZy1V1ZcL4z4XBRk/16EpkUzH7EWkekuiXsLs4spRT0n e6htzYfB4+xsr4NY1qIbQ9c+2hUJfrW4bncTOMdhIbZhZY8CRO90Axpwa15yVL/OWEAN GxcAQqyf+nTx0RhHvg0ltdTcMVOxpMzTZu57ePEhpcKIhbxu0wxXcb4fX5cAyyM2SmDI OoGQ== 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=LvbZKnBr/NF2E/Lc5Mys2LbwF54ml+50pTQoCc89+9o=; b=r3mTxmQFM6YTzczVSO9ADEnoYKJzB+T22bqb4+G71dIV7zYYioLBB9bbjio37r+18V /nYXwhu1tJ9AK0ms6plR/6KCwTNaAVBykNBmaTvUVw4/+I20JMPG5vaP4qd+QYp/fPH+ 6Osd+jrnSPICRWQ2cchmWTQHaMr5WOJUU34e10ym7zSbxOQfDa5KZc5HWNV279R81jMA zMswf0kQHbNR37lKe6xs3PRm4KgliurbperuiDZKwWUdhqAwweaDyf9J8Rw3jFszvG7O uDZSV/fula8EaGov+msPifGHWAfHEhcTpdwUsxX9rnIiiYrF4IGYEo2wAxfUDHgLh5sy 9RvQ== X-Gm-Message-State: AO0yUKUv51PjGp7IiN+FJYCwEEnDgcLhc64PS3x2gfHU+0cIMFeYWryl W8Pv4vvqaUG1MI/UhzRw0FGAYZ2vj9arll8REp4= X-Received: by 2002:a05:6a21:33a5:b0:c7:1bcf:1de2 with SMTP id yy37-20020a056a2133a500b000c71bcf1de2mr1375248pzb.29.1676526331637; Wed, 15 Feb 2023 21:45:31 -0800 (PST) Received: from stoup.. (rrcs-74-87-59-234.west.biz.rr.com. [74.87.59.234]) by smtp.gmail.com with ESMTPSA id j184-20020a6380c1000000b0047917991e83sm358034pgd.48.2023.02.15.21.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 21:45:31 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v2 00/15] linux-user/sparc: Handle missing traps Date: Wed, 15 Feb 2023 19:45:01 -1000 Message-Id: <20230216054516.1267305-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::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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 codes for cpu_loop(). Changes for v2: - Fix v8plus syscall trap. - New patch to unify syscall error return via C flag. r~ Richard Henderson (15): linux-user/sparc: Raise SIGILL for all unhandled software traps linux-user/sparc: Tidy syscall trap linux-user/sparc: Tidy syscall error return 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 | 190 ++++++++++++++++++++++++------- linux-user/sparc/signal.c | 36 +++--- 5 files changed, 175 insertions(+), 61 deletions(-)