From patchwork Tue Aug 22 17:02:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 715765 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp374627wrp; Tue, 22 Aug 2023 10:03:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGqBPJyE+b1Tsxc16OuMTLGs44UUROM6eNLh6l00sWVDuTkI1ZJgW9n4lnH+tcatl4d+dG X-Received: by 2002:a05:622a:1492:b0:410:a018:c7f3 with SMTP id t18-20020a05622a149200b00410a018c7f3mr5560075qtx.9.1692723795439; Tue, 22 Aug 2023 10:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692723795; cv=none; d=google.com; s=arc-20160816; b=PBDVY0pY7V6sbElxpREEf/gu1lO5O92Gh7AmSmdsS+BPuiOrMFT7Gv/0VYTSyk5jEo +HPs+l+6x6dQS4RsccbsFd5oj1P/+Ic+I3FtkfcyLbxw40FW0dzaicErnbPJHOWXYPWg AEUnvp0rEWA7Zj77VHJ88/MY1pN2evpSJtx5vThSt72ySqlmor+f0nyhEa3Gexuh+JPH ZTYIv3dmYPZ4oLuf3GyCjIaf7dEcLuw3T4vLv2WyhZkPQTI4MARoUWsKqB4L0AkhQFD8 mfAxgAbBZi0agVE1qHzDTUwULSHTl5WIg4V6rrCzt0lOTcyt5NcN/Yw57irmueL/vdIp f36A== 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=dyMnZPF0lJjltNxI1ShT7iDXd4Rf74ljeip+pJOFsn0=; fh=oweadga+1U1BKjDqlK8hSmEWEC1EUfcsKuPkDinEDsU=; b=qENCVOQLyxU6jlibwvNtGygUqJmjBKjiBYFu1zLuQqWzAFB/H0vOy1fJrVZJEoYIT6 Sb7zxh7sot+bAJUrEFCLKsaw2zCj0+M+Tdi6DfFITjph1SCgHWkPpDOho8yukD9s3DOD cPaT9lqX3SoCq4ZLuXf5BMtyKwpRuxXsow0mG+Ug2Paa+FTZJdl7VrckLzy3UgNsugOI FqaizHF4dBzyiv2mjp0T4GBz+YLVCSeuB4gT7FlIezE526VGzTjf27cDHhAcsGagu8ib Nhwx4Uu/q0MF3MW5ZffXfSaFFsNIFvbLXGQGkWDhQ1XvxtxCt3pJhVUAv9U1NCrkvxjT 7DLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dit81IQt; 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 u12-20020a05622a010c00b0041097668119si3207805qtw.65.2023.08.22.10.03.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Aug 2023 10:03:15 -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=dit81IQt; 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 1qYUlp-0008Qj-MR; Tue, 22 Aug 2023 13:02:21 -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 1qYUlm-0008Mf-9e for qemu-devel@nongnu.org; Tue, 22 Aug 2023 13:02:18 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYUli-0002KM-J6 for qemu-devel@nongnu.org; Tue, 22 Aug 2023 13:02:17 -0400 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-56b2e689968so1412523a12.0 for ; Tue, 22 Aug 2023 10:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692723733; x=1693328533; 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=dyMnZPF0lJjltNxI1ShT7iDXd4Rf74ljeip+pJOFsn0=; b=dit81IQtr9lfNtbpySaog6AF/9oRIkx9V7RygsWQidvLYVLi9fnigzpNP4lu1CUD5Y vjDm3cjTQAMzrUCjLSTSKKWpMq46MPpAWAWzhAChI0MB3f/V5nJRivZh2ys2VI2HC66S UTr6ugff/0eDFDDJlFhflP1fYGfGr4/DmOYirn2X7Js8cpHI9FoqJGhdpuxU1gp3mm3m by2BueWZPZjweDmjYAytIG6BRaUEfO7YgWJydE8CZKaMv9DUBx+qbe7FjnuqHKZkqquc yA6n/HWAXWLfbolW674rVaE6eRPB4TRn/eWvqREfKZOgTvkCySG7Dq8Q6UNAMFghVRx2 zicg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692723733; x=1693328533; 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=dyMnZPF0lJjltNxI1ShT7iDXd4Rf74ljeip+pJOFsn0=; b=fh3Caxbx48hppg27p1jl0I39npd+GtORQ79k5EjYOsFOImYS+Gb9jDPbeskiYFmGat CWf0+t3X7EpjX3ke+oLAuX32ZOD2/rGQvJ8bLLA6Oq7295frzHbyaenRiRvfRMBaUMSY cavGHiUR8ZY7Iaw5zrVhE2Z/L1wExzrgf+Vxj3ANvg/+MdqEyN7hppmVyJHSUY6miqaX fMBI0hUcwYzwKU+EZJp7y0y3mbPp/6xJLPXHg4YaXI3W6s0+78GnkFhpGz7HWijncbz8 v7Q+KxX8+M6tqMI/AR3vsr/VkDYupSd1t5DaoZv6vObYkcXhDlXhpTphHe9v/62OqgGC oQgQ== X-Gm-Message-State: AOJu0Ywut+Z5twE9GUG/HiP8B8W1iBpUSN+9NiQI+EtsH+TQHWgNBEGC Xvo+FfmMsOHGJO+89SGadb2EBkunA0e6BIW/PWk= X-Received: by 2002:a17:90b:1d06:b0:26d:b12:8383 with SMTP id on6-20020a17090b1d0600b0026d0b128383mr7476481pjb.8.1692723732847; Tue, 22 Aug 2023 10:02:12 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:4e3c:f4a4:b92a:b5ab]) by smtp.gmail.com with ESMTPSA id 27-20020a17090a031b00b00264040322desm8761121pje.40.2023.08.22.10.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 10:02:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 2/3] linux-user/aarch64: Fix normal SIGILL si_code Date: Tue, 22 Aug 2023 10:02:08 -0700 Message-Id: <20230822170209.1130173-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230822170209.1130173-1-richard.henderson@linaro.org> References: <20230822170209.1130173-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x531.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. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- 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: