Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp407896pxb; Wed, 3 Mar 2021 06:24:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrH8hXdKBzul2JdeT5MUO2cRzRCO0tlcCk10g2owBZOq1rIPM/mhJP7NipTvqgkjQD47eN X-Received: by 2002:aa7:c815:: with SMTP id a21mr16694900edt.38.1614781360646; Wed, 03 Mar 2021 06:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614781360; cv=none; d=google.com; s=arc-20160816; b=yEBsP/EAtlc3guvwClGkdJvS79o+2yXM9ouX9gesJgjbD2hMcHxT59JXbJwIGBus4s V8k863c9QN1T4Wy8PbKfzKsOuSqf3UORP6RbF6PkqH1tHJ+YmWuc2J4OMfEsEWnyms+6 beRCyvzNOqBPlUiLHzsJ1tndcJXaix0kjNzGcaVrUQ7+afcjjO+aiQfXxfZy35VB/c2b dkX7Jlkre33hQrnANsQCa0d2nL9ZB2XFTTyaDDCQltCG4HczDobvUdJxCij1kSoR68mX HkMnM4wA7LOCx3mz1kn4xArEli8nNszStmBaWhvZxsk8u83p/IGrr6PUWmaEiKgKu3hT hMsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6xWkGzXeSBGmwN82InMMBO634xIClsfTE6gl8tgdC54=; b=EDcwZ0+tNtLoBOn/Ty/8F841O/a1aE6WKwzzPhqYsAN2hZHqBbv3qJKu63oiGBiXVc 2hNEyP8eNWYi1/UmGP+hHPmXeDi29W/3t3NV2OR8LozGcXRCLiay5Wanm2rkgV+Sl00k EfGIHPRkvulHDFk8GESvkqDhD+Jaht4DppwMXwuoEWxnFaL0MpaPq5Di/y8eemmTI2CV tylyRoH3bmFdwCvtTe8Ks9H3heJuuVXbrTEE0f3aHQLfwb8LEf4WmngMOjcOjqXXY2ki nMlkcBSbJaiBiG1jypyYd00/C8qNRt6aE9ovg54xLIwToCLohH6t8yuJkOGbMgQcQVdB RfjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pLqffyJn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v26si13957860edt.332.2021.03.03.06.21.43; Wed, 03 Mar 2021 06:22:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pLqffyJn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243740AbhCAUsB (ORCPT + 99 others); Mon, 1 Mar 2021 15:48:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:35322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236705AbhCARIk (ORCPT ); Mon, 1 Mar 2021 12:08:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A77F46501A; Mon, 1 Mar 2021 16:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616937; bh=IQm274TH81NJQAivFceA9UbgaBsm3T1pEjaL593cptA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pLqffyJnlMEHnhO1dTT1Fbpfqi5Ax1c4DbehBVGNQhd6q8oENO6yW2L4xsAOgdgsD EDolMUhyUqLEP2sMjGtQ2123pNzUOIbaLZi7eo4b8s81uM6uH8F8cEK7ttRXlzIftI FSojMAcGBRD9SbSk5OQ+QGMq7pTSLq1oNQZUZjwo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 4.19 146/247] powerpc/8xx: Fix software emulation interrupt Date: Mon, 1 Mar 2021 17:12:46 +0100 Message-Id: <20210301161038.821615480@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy [ Upstream commit 903178d0ce6bb30ef80a3604ab9ee2b57869fbc9 ] For unimplemented instructions or unimplemented SPRs, the 8xx triggers a "Software Emulation Exception" (0x1000). That interrupt doesn't set reason bits in SRR1 as the "Program Check Exception" does. Go through emulation_assist_interrupt() to set REASON_ILLEGAL. Fixes: fbbcc3bb139e ("powerpc/8xx: Remove SoftwareEmulation()") Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/ad782af87a222efc79cfb06079b0fd23d4224eaf.1612515180.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin --- arch/powerpc/kernel/head_8xx.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index dc99258f2e8c6..08c16aa0dd534 100644 --- a/arch/powerpc/kernel/head_8xx.S +++ b/arch/powerpc/kernel/head_8xx.S @@ -269,7 +269,7 @@ SystemCall: /* On the MPC8xx, this is a software emulation interrupt. It occurs * for all unimplemented and illegal instructions. */ - EXCEPTION(0x1000, SoftEmu, program_check_exception, EXC_XFER_STD) + EXCEPTION(0x1000, SoftEmu, emulation_assist_interrupt, EXC_XFER_STD) . = 0x1100 /* -- 2.27.0