From patchwork Sun Aug 22 03:55:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 501412 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp1063538jab; Sat, 21 Aug 2021 21:08:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT84EGjR7vx4UVIEHFMh/wjWJgHMCV9xkCKqXPIBjh6vgP8py28IrlZBtGYmJGfttLsFfL X-Received: by 2002:a5b:a8d:: with SMTP id h13mr4776718ybq.83.1629605288821; Sat, 21 Aug 2021 21:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629605288; cv=none; d=google.com; s=arc-20160816; b=RsNcHoCxzGbIEz6AbnZCe7DGWt3FlezuVRMOpkcrQPbfljBmOWGz+nR5mQFIky276o a0WM54zBUyvfa1EGkaD92EmPtN/ni/OTTZY4pfod6IYJOzLymrJuD2PwrigLnMDlShm+ 2MnqEVGCogt7J6Sx4FeScRjaLiVUGExN+TZ0lBW+qurWxXgWwDhpeyfpaPvROilvPpPo 6wLVaFmKP4+upV7XZY67bwQNdymT6GMFPe+wiVMDpMD3tRMUy6j64TDcz1+dIm17z1bO kBEqlY80pGOwj44dvO2Z55CeUwYdVGUqx6KzMS91eWcZnd2YgocSNzzLKCha8Ukv5PNp vxAg== 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=jgJJjeTXjiUbDbukKE88rjflxSR0+x8oJyqtKcc0hjQ=; b=vV+70jtj2ta5P87w8ryLo+JvoFkSmdFQj2vYVYwohjeGzBKjX8FEieFXpVp73rlj2b EWleq7gmesBZ8ON5W5nP65mR0trqOdWYX4Jwssa2E0uQMlDkDs7jQPjfrN6VT371vVMG T45ME6eQKnzYlCW6CAR9+FgYtd6FwyZ0V6t5eURjBT0kYLn/BwYcGnBeo3xypCzI47eJ i7E0E1nMDPKYaJtEag6y+R5Xj/PfVIv1UR3Wzxf7QZZWUUJfCI91IFEtsM2B99gBScEC vMb9Kx/dummt+CZZD8XFkoRnbEU2F4XkELkaE/8se8VutvkohWwdrVIElqDZ+VVuRFtX 3RYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gj3DeRrQ; 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 l6si9571084ybo.300.2021.08.21.21.08.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Aug 2021 21:08: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=Gj3DeRrQ; 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]:43358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHemG-0005MM-2a for patch@linaro.org; Sun, 22 Aug 2021 00:08:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHeaN-0007qX-HA for qemu-devel@nongnu.org; Sat, 21 Aug 2021 23:55:52 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:40538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHeaM-0000gV-6G for qemu-devel@nongnu.org; Sat, 21 Aug 2021 23:55:51 -0400 Received: by mail-pj1-x102a.google.com with SMTP id n13-20020a17090a4e0d00b0017946980d8dso16420672pjh.5 for ; Sat, 21 Aug 2021 20:55:49 -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=jgJJjeTXjiUbDbukKE88rjflxSR0+x8oJyqtKcc0hjQ=; b=Gj3DeRrQ3WVvfNNZ/wsC05LHMuAg4oi87tQTGJeVeEO0w25mz8bq4D7Sl+KHxVyvNJ 72xA0UTF7cz21IrPT9dPTwwMmpDeNT61fFQY4oj69uNB962DC1SDMW+KwHp5f8o0m8Wl k8Fwczdgz/kRy652jOzwWPXu9yJcOWi4b/FCCyq4D5jtFC3qOFF9vSRF0Vozu51TG075 AEcMw5cP9+onml+cbMcjtl+OwYs3GsaT6Fp08aaj+JVwyBFrgidBCCKWeXDXDwCXqjfD oAYJiKZC2ouxuAD8LrWDrhv5h/HtVtLctlptV1c3vQBWWW7CxPN4YG9vAwuIywEgoUFK /VZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jgJJjeTXjiUbDbukKE88rjflxSR0+x8oJyqtKcc0hjQ=; b=Y8S1gX52h3zytPKopWY/xxaEzlx/UH5f2SK/vUd1rgdBlmmEVy0eoLPK89EBqqRDLp kQAs+oYTyFPN/Z0jHHngTQpnjztTY841kI8rqNv1R8hwD0eNpyxSRv5J8ADtQ3wzoMcV oMC3zYea1W3AXEXQZBNeyf4bJSMvR5KsxOeM9kCeKzEDfkZNMmGEFTw9cK6e/sqZQyJA a6SBoframuwcBAVGoNYUkNNnJ7Npny+mLnut0xP7XKgaHDEJVL7Sn+erEcHJcBLopSVy 7jNC76s/rkTHHlJNgC3Hnmh+bQYqEMuHabUCQ7SAYdzIWxjsmo+RfuLi4NE8eFlArQkA DmjA== X-Gm-Message-State: AOAM533O1jfQqlbKQRzlb/LTu2kAOyLfJNkLScxEE3/zXS2h6Eu8PrNj gVVnpxiUQasx4eRc8lMl7ouGzB0AqeQahw== X-Received: by 2002:a17:903:2443:b0:12e:6093:2877 with SMTP id l3-20020a170903244300b0012e60932877mr20146060pls.21.1629604548904; Sat, 21 Aug 2021 20:55:48 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id x12sm11560533pfu.21.2021.08.21.20.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 20:55:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 15/30] linux-user/hppa: Use the proper si_code for PRIV_OPR, PRIV_REG, OVERFLOW Date: Sat, 21 Aug 2021 20:55:22 -0700 Message-Id: <20210822035537.283193-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210822035537.283193-1-richard.henderson@linaro.org> References: <20210822035537.283193-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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: peter.maydell@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These si_codes have been properly set by the kernel since the beginning. Signed-off-by: Richard Henderson --- linux-user/hppa/cpu_loop.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c index 3500b2c291..7bc85dffd0 100644 --- a/linux-user/hppa/cpu_loop.c +++ b/linux-user/hppa/cpu_loop.c @@ -159,11 +159,17 @@ void cpu_loop(CPUHPPAState *env) force_sig_fault(TARGET_SIGBUS, TARGET_BUS_ADRALN, env->cr[CR_IOR]); break; case EXCP_ILL: - case EXCP_PRIV_OPR: - case EXCP_PRIV_REG: force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPN, env->iaoq_f); break; + case EXCP_PRIV_OPR: + force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVOPC, env->iaoq_f); + break; + case EXCP_PRIV_REG: + force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVREG, env->iaoq_f); + break; case EXCP_OVERFLOW: + force_sig_fault(TARGET_SIGFPE, TARGET_FPE_INTOVF, env->iaoq_f); + break; case EXCP_COND: case EXCP_ASSIST: force_sig_fault(TARGET_SIGFPE, 0, env->iaoq_f);