From patchwork Tue Aug 29 23:23:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 718267 Delivered-To: patch@linaro.org Received: by 2002:adf:d20a:0:b0:31d:da82:a3b4 with SMTP id j10csp244636wrh; Tue, 29 Aug 2023 16:29:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+MJm5B0ZcXhCrW3Z87uXX3msR2uPD0v+D+aB343QwD2+5G57n2zvPxL6paAkLoFRXiZua X-Received: by 2002:a05:620a:1792:b0:76f:456:38fb with SMTP id ay18-20020a05620a179200b0076f045638fbmr624841qkb.31.1693351746548; Tue, 29 Aug 2023 16:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693351746; cv=none; d=google.com; s=arc-20160816; b=GtfOoqYMRxvsGku1A6pyzvxywmQrEMpb/O2atfCXh0Yw+CIAvTLQRe7YDOv2m/VtDS S+LJpE1VSpJroHLsmbK2oK4c+BdxlSHARrIw5gavCn1iXhhdGGynGhBG1byqJY1Hn78g I8um2f1Dqtin/nIAieSAbDEG143Hjo4V2zx4RErEtmoKyPgMINmkNLKVw9jG0KdjeT0w RZmJP0vD4H+WHVdhlXHg0y1ZYGpu7t71ZQGB6/WkdQDCnQRW96WbtxR4LiVvkL+i5ioM RYtvG1E0ljcr+JSuoqd3gEANqHueJI4wizGLKf4coSADqq9No1ky6LjJK7b5Dh75NSag WZ7g== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1kQdNiCM9Zqst6RWSQxeqs+p1o22wGyR4sXs05ml1eo=; fh=L6OjQZ2TPsHFQEGPRBuboSqhQBavDZ5pPqlyX67xn3A=; b=mpsM7+PMscnSq5Q+kNVJuqjcd76H23vjr7InmfiOMTHc1426aSxBmmw9nzzrestBTT at71VAX8ZgEA+xnLxh9lo0cCKti/rs30CMd5Tj/aRgM/ESA5U9IwfgJm46cEKFjkkxkg 1XDzT0zYi77TD+KWbncTAckOQkPfu2uHKW0teWk9hsu3CPDiEUabUVM/9UeWqOoMdYy2 UzkaQoGAPOcmyfwW1DI7FgQGYtBEFtFdUKJEVqp6wBezeinTrQwdOYpBR370/Kt8xzBa q6kAKykckaKoOOV+Eh89q9mC6yxdVDWv7y4G+/HgaqmNunSWs4KhWfxFNYMEHQr5tWg0 oKog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1zBRhaF; 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 v16-20020ac85790000000b00403af394f7asi4593979qta.327.2023.08.29.16.29.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2023 16:29:06 -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=M1zBRhaF; 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 1qb83x-0004dj-Et; Tue, 29 Aug 2023 19:23:57 -0400 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 1qb83t-0004A3-F0 for qemu-devel@nongnu.org; Tue, 29 Aug 2023 19:23:53 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qb83o-0001Om-C9 for qemu-devel@nongnu.org; Tue, 29 Aug 2023 19:23:53 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-68a42d06d02so3481421b3a.0 for ; Tue, 29 Aug 2023 16:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693351427; x=1693956227; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1kQdNiCM9Zqst6RWSQxeqs+p1o22wGyR4sXs05ml1eo=; b=M1zBRhaFJLKf4SKXp8KDIBr9Mw2/K1tBixAa0tOmVz4poIzyXwIM+23+EfA7xlrpBY 59VC1SEr62ngm4Rv9qrCdGA7W1yimBvRWrAUygQZU/JoFkWdV/EWeme1Go5q+buQ45in NnZau6GedSO61cWYed8LrjJLzujjqJ3aboXVWDXeB7G+u56qUb6OfBVGOjOd7WH59Bbz 1NSNMl4EzIm3MbMOFfsN/9f2PCYbIf68nqg13bxKKoOyQrlqdhL6YD+thn2+pvExpIwp ov+TeuXd5DEvQfuZ+ZkkHsEvklMOMFxHDaBB2+RCatgswSHfIZ+IIE0q7trlBJYgZnpK VudA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693351427; x=1693956227; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1kQdNiCM9Zqst6RWSQxeqs+p1o22wGyR4sXs05ml1eo=; b=e9UZ1isCiUa7eDMVx0r5IrILbr17IIihZuq6tAgwFIZ+YuWkbzwEDfAo9pOL9Kz4pC REsoC8xbWPjHcLrHuAhPwIyBa4mK3ds4OHj3oldrLw7FUVfAXDEvv6e+3h1Zh+p4gZSE J6pHIUougkbIuI/CZp8gkHcYWPzti0b2TkCo7yaNCIu+R4ZUSSZjrOOxCXG5fZ/K0Z6Q a+7dX6rRqyxlH73ttEx2DZRjJaj9fTF7Ekd/jL72imflI0DccILwYBmCeSzbBeGH+QMB 47PnOBJY0h5hb5ZjAKATvKkOpcpybLiZ2xtZRtOAsCvvvnjd6XjKeRcNsFRm9/Su0GWO eDUA== X-Gm-Message-State: AOJu0YwIKpn7cap8BAB9ufBWWVNJ32XyAX27zB680SF4aTFzzhcyQ+sq +IKLFVGWkLq9PLgl5IxllUYvOSW9ce8tH2Gqqmc= X-Received: by 2002:a05:6a20:138b:b0:14e:3ac2:e10d with SMTP id hn11-20020a056a20138b00b0014e3ac2e10dmr627463pzc.47.1693351426989; Tue, 29 Aug 2023 16:23:46 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id t9-20020a170902e84900b001b9dadf8bd2sm9829970plg.190.2023.08.29.16.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 16:23:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: aaron@os.amperecomputing.com, qemu-arm@nongnu.org, Peter Maydell Subject: [PATCH v5 11/12] linux-user/aarch64: Fix normal SIGILL si_code Date: Tue, 29 Aug 2023 16:23:34 -0700 Message-Id: <20230829232335.965414-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230829232335.965414-1-richard.henderson@linaro.org> References: <20230829232335.965414-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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=unavailable 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 Most illegal instructions use ILL_ILLOPC. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/aarch64/cpu_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c index 2e2f7cf218..22c9789326 100644 --- a/linux-user/aarch64/cpu_loop.c +++ b/linux-user/aarch64/cpu_loop.c @@ -110,7 +110,7 @@ void cpu_loop(CPUARMState *env) /* just indicate that signals should be handled asap */ break; case EXCP_UDEF: - force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPN, env->pc); + force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPC, env->pc); break; case EXCP_PREFETCH_ABORT: case EXCP_DATA_ABORT: