Skip to content

Commit af1fc5b

Browse files
committed
ARCv2: [plat-hsdk]: Save accl reg pair by default
This manifsted as strace segfaulting on HSDK because gcc was targetting the accumulator registers as GPRs, which kernek was not saving/restoring by default. Cc: [email protected] #4.14+ Signed-off-by: Vineet Gupta <[email protected]>
1 parent 93312b6 commit af1fc5b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arch/arc/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ config ARC_HAS_DIV_REM
408408

409409
config ARC_HAS_ACCL_REGS
410410
bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
411-
default n
411+
default y
412412
help
413413
Depending on the configuration, CPU can contain accumulator reg-pair
414414
(also referred to as r58:r59). These can also be used by gcc as GPR so

arch/arc/plat-hsdk/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
menuconfig ARC_SOC_HSDK
99
bool "ARC HS Development Kit SOC"
10+
depends on ISA_ARCV2
11+
select ARC_HAS_ACCL_REGS
1012
select CLK_HSDK
1113
select RESET_HSDK
1214
select MIGHT_HAVE_PCI

0 commit comments

Comments
 (0)