aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2017-11-23 13:21:55 +0300
committerVineet Gupta <vgupta@synopsys.com>2017-11-28 18:12:07 -0800
commit329b4130bc5eb2a1b123a652b985dbdb08d6b9a8 (patch)
tree6d494ede0ab6c6c6874666a209f356acde85d7bd /arch/arc
parentLinux 4.15-rc1 (diff)
downloadlinux-dev-329b4130bc5eb2a1b123a652b985dbdb08d6b9a8.tar.xz
linux-dev-329b4130bc5eb2a1b123a652b985dbdb08d6b9a8.zip
ARC: Fix detection of dual-issue enabled
As per PRM bit #0 ("D") in EXEC_CTRL enables dual-issue if set to 0, otherwise if set to 1 all instructions are executed one at a time, i.e. dual-issue is disabled. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index 7ef7d9a8ff89..9d27331fe69a 100644
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
@@ -199,7 +199,7 @@ static void read_arc_build_cfg_regs(void)
unsigned int exec_ctrl;
READ_BCR(AUX_EXEC_CTRL, exec_ctrl);
- cpu->extn.dual_enb = exec_ctrl & 1;
+ cpu->extn.dual_enb = !(exec_ctrl & 1);
/* dual issue always present for this core */
cpu->extn.dual = 1;