From patchwork Sun Aug 22 03:55:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 501420 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp1066079jab; Sat, 21 Aug 2021 21:14:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOG0WOeQwIiOHqdv1k+r4oDsVb4GMBC4Jnv0T8ji5jZKM5mK2A0bfqUOnR1N7qVaKhUrGX X-Received: by 2002:a92:dd82:: with SMTP id g2mr19397392iln.279.1629605668570; Sat, 21 Aug 2021 21:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629605668; cv=none; d=google.com; s=arc-20160816; b=GN0MtrbXYv4JvRnUHPZus3D8DJmyjaYPNXDiXkR7s1rIpx6NI1WRiB9D4Q4uDm45PJ L15LOYG8A1w0zF3Mfq8hyapdwuKhsTvZLn3/667zH68Eu2r9FbMGLm8ltyxRCZXniry4 Uypb9WjMD0MbjT+VGxGYjVs31fK3RXnnTy65TD1is7NjPcbji4ooADK5rqRGpb1SafzA i0aJAvMpI8pdaTHaqI1clQxRyvdddS3uh2oPGCSK9jJHIMdi9NKWMZaM4PVf1K81BFsV FC/nBhU7ZQ8TbXJ9H3pifL4fCYqq8K/CKfqrnMYfv2+G7KTFbNRjQf6jY3ND7YDbyV91 5KyA== 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=jKxkWJetc9mOamPS46VjF9q1E3iRdGdDObeSI1Rk2wY=; b=d36VRnFD50T+g0PGUuoxHBk+vo2nKKP2BY7bt0KYvFuGNQgRJJhQNJ/sj6qLgsxQrC 63bVWsTPzuuQ8mtL8QBY2yWjikmKs6aDb+8zVd7i2I+jDIvJlyj8l87JiH+7INmLM6gZ s5k9vFQFtFaAH5XjBrgSsOg0w5mDnPN/wyilBMhptDGfSgbd+wZPcqv1/kepdVerMKxW OBrsRu8SWJA8RdVqpyU4wsQCcPW5+H8QmrZqsn2ViSTzY6ks3PmfZ3rdxF6o15wYiDzg YIrE4RNQyfesCwXCOL3+RXXB6Amjzuk8E/5urg/0YW5dSeD8Vmgqeg/U6hcIKJiSOrlu aWog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s4PImu7w; 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 l5si11675212iln.118.2021.08.21.21.14.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Aug 2021 21:14:28 -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=s4PImu7w; 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]:60404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHesO-0008I4-0A for patch@linaro.org; Sun, 22 Aug 2021 00:14:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHeaP-0007rM-6S for qemu-devel@nongnu.org; Sat, 21 Aug 2021 23:55:54 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:39924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHeaM-0000hC-Mk for qemu-devel@nongnu.org; Sat, 21 Aug 2021 23:55:52 -0400 Received: by mail-pj1-x102a.google.com with SMTP id oc2-20020a17090b1c0200b00179e56772d6so6573897pjb.4 for ; Sat, 21 Aug 2021 20:55:50 -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=jKxkWJetc9mOamPS46VjF9q1E3iRdGdDObeSI1Rk2wY=; b=s4PImu7w7akX/eHAWYCNWLnjz0bbwMF3F+YbTeGtdfTkvEEgkKq0bNu0nTC1TwB4/x bWXaDk8OCdGewwM0ZD51LXcshT74dPWcMf5VzJ5vHY5KvN5C3BK4fWMTAqRdO8Bp5M6r YKxo3j8Xhhdn/4RtP4LYaQU6C3DCMJYPuq5+yOD6cguW9GM9zmCIKE50cCOUekqd4FIJ Rh6WMP1XK0tLeP/LHaOgdNZN9oN/1gRSmetIjK/bIssEFi+m45iTjcXGQdzLWLKkSBv1 Gre8b7QJtjiT7KMFkyx6znWlvSGx9HaxCdwnnx56lh59DSxqpzn6aJ9EcEk9I8g2Jp65 qNiA== 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=jKxkWJetc9mOamPS46VjF9q1E3iRdGdDObeSI1Rk2wY=; b=aWjULolKyyYSepXgHuUv+gUm5NjE7aFEzVuho4k1HZ9IYLwO9NSFmtoezGbUuBV0iq t8nPx10WeFJueRLOcLvajS8V+QUbhtnp/uKv2gE6U0kVwbxj4sTnIzWuZpmfpd1p13mj Nc2C4hHr6d+6vp6byOyDEiid6m833DZlEBtq8lfsB1gA+70ku2YuGTAbb5mizt+x2JkT GGOhrUuc/UTnxcrYmZwYrBS/VmHonXEPxwPt0bV/WpqJFVvEqn40ITv6sqKA0ovkEkkw oZdmBiI3wl8S/OyxYcn+bQUY1R4Rkm/iv2N5O2vV3cVl0p17e+aAR+V0zU4PF0Zl8Jm3 rY+w== X-Gm-Message-State: AOAM533rW0/HvPRaOQ7CWsIIsnhyj2ah+SiQyLjn7lMr3f3zb35qRI5q 0fBJZVJv77p/gBXnIOqAgPuCRoOX9+hTvw== X-Received: by 2002:a17:90b:1102:: with SMTP id gi2mr12909025pjb.43.1629604549559; Sat, 21 Aug 2021 20:55:49 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id x12sm11560533pfu.21.2021.08.21.20.55.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 20:55:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 16/30] linux-user/hppa: Set FPE_CONDTRAP for COND Date: Sat, 21 Aug 2021 20:55:23 -0700 Message-Id: <20210822035537.283193-17-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" This si_code was changed in 75abf64287cab, for linux 4.17. Signed-off-by: Richard Henderson --- linux-user/syscall_defs.h | 1 + linux-user/hppa/cpu_loop.c | 2 ++ 2 files changed, 3 insertions(+) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 55ccc6ae03..f9efbffe0c 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -688,6 +688,7 @@ typedef struct target_siginfo { #define TARGET_FPE_FLTINV (7) /* floating point invalid operation */ #define TARGET_FPE_FLTSUB (8) /* subscript out of range */ #define TARGET_FPE_FLTUNK (14) /* undiagnosed fp exception */ +#define TARGET_FPE_CONDTRAP (15) /* trap on condition */ #define TARGET_NSIGFPE 15 /* diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c index 7bc85dffd0..cc076e7cdb 100644 --- a/linux-user/hppa/cpu_loop.c +++ b/linux-user/hppa/cpu_loop.c @@ -171,6 +171,8 @@ void cpu_loop(CPUHPPAState *env) force_sig_fault(TARGET_SIGFPE, TARGET_FPE_INTOVF, env->iaoq_f); break; case EXCP_COND: + force_sig_fault(TARGET_SIGFPE, TARGET_FPE_CONDTRAP, env->iaoq_f); + break; case EXCP_ASSIST: force_sig_fault(TARGET_SIGFPE, 0, env->iaoq_f); break;