Skip to content

Commit 329b413

Browse files
abrodkinvineetgarc
authored andcommitted
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>
1 parent 4fbd8d1 commit 329b413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arc/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static void read_arc_build_cfg_regs(void)
199199
unsigned int exec_ctrl;
200200

201201
READ_BCR(AUX_EXEC_CTRL, exec_ctrl);
202-
cpu->extn.dual_enb = exec_ctrl & 1;
202+
cpu->extn.dual_enb = !(exec_ctrl & 1);
203203

204204
/* dual issue always present for this core */
205205
cpu->extn.dual = 1;

0 commit comments

Comments
 (0)