aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2018-07-17 18:21:56 -0400
committerVineet Gupta <vgupta@synopsys.com>2018-07-19 13:36:45 -0400
commitaf1fc5baa724c63ce1733dfcf855bad5ef6078e3 (patch)
treea947ac298a5d3224bc2ac2c2020b85142f267ae9
parent93312b6da4df31e4102ce5420e6217135a16c7ea (diff)
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: stable@vger.kernel.org #4.14+ Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r--arch/arc/Kconfig2
-rw-r--r--arch/arc/plat-hsdk/Kconfig2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index d76bf4a83740..bc0bcf01ec98 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -408,7 +408,7 @@ config ARC_HAS_DIV_REM
408 408
409config ARC_HAS_ACCL_REGS 409config ARC_HAS_ACCL_REGS
410 bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)" 410 bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
411 default n 411 default y
412 help 412 help
413 Depending on the configuration, CPU can contain accumulator reg-pair 413 Depending on the configuration, CPU can contain accumulator reg-pair
414 (also referred to as r58:r59). These can also be used by gcc as GPR so 414 (also referred to as r58:r59). These can also be used by gcc as GPR so
diff --git a/arch/arc/plat-hsdk/Kconfig b/arch/arc/plat-hsdk/Kconfig
index 556bc5ef1257..9356753c2ed8 100644
--- a/arch/arc/plat-hsdk/Kconfig
+++ b/arch/arc/plat-hsdk/Kconfig
@@ -7,6 +7,8 @@
7 7
8menuconfig ARC_SOC_HSDK 8menuconfig ARC_SOC_HSDK
9 bool "ARC HS Development Kit SOC" 9 bool "ARC HS Development Kit SOC"
10 depends on ISA_ARCV2
11 select ARC_HAS_ACCL_REGS
10 select CLK_HSDK 12 select CLK_HSDK
11 select RESET_HSDK 13 select RESET_HSDK
12 select MIGHT_HAVE_PCI 14 select MIGHT_HAVE_PCI