ARCv2: don't assume core 0x54 has dual issue
authorVineet Gupta <vgupta@synopsys.com>
Thu, 21 Feb 2019 21:44:49 +0000 (13:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:51 +0000 (20:09 +0100)
commit8b9187e7df64541571f06388af92f769dc207bdf
tree1da87987d13d50d7ebf4cf0c55869b8d4a9a1ce5
parent3220aa9b00650b1bffa71321044518ceb303f405
ARCv2: don't assume core 0x54 has dual issue

[ Upstream commit 7b2e932f633bcb7b190fc7031ce6dac75f8c3472 ]

The first release of core4 (0x54) was dual issue only (HS4x).
Newer releases allow hardware to be configured as single issue (HS3x)
or dual issue.

Prevent accessing a HS4x only aux register in HS3x, which otherwise
leads to illegal instruction exceptions

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arc/include/asm/arcregs.h
arch/arc/kernel/setup.c