ARCv2: [plat-hsdk]: Save accl reg pair by default
authorVineet Gupta <vgupta@synopsys.com>
Tue, 17 Jul 2018 22:21:56 +0000 (15:21 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 19 Jul 2018 17:36:45 +0000 (10:36 -0700)
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>
arch/arc/Kconfig
arch/arc/plat-hsdk/Kconfig

index d76bf4a8374016043963f1c04d42700e64ad605a..bc0bcf01ec98c054e455a19f0b54375a7f92990c 100644 (file)
@@ -408,7 +408,7 @@ config ARC_HAS_DIV_REM
 
 config ARC_HAS_ACCL_REGS
        bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
-       default n
+       default y
        help
          Depending on the configuration, CPU can contain accumulator reg-pair
          (also referred to as r58:r59). These can also be used by gcc as GPR so
index 556bc5ef125771cb22b6f8ff34e98d4a87b62941..9356753c2ed83fc8f9ee7dbf55f173401499e2e4 100644 (file)
@@ -7,6 +7,8 @@
 
 menuconfig ARC_SOC_HSDK
        bool "ARC HS Development Kit SOC"
+       depends on ISA_ARCV2
+       select ARC_HAS_ACCL_REGS
        select CLK_HSDK
        select RESET_HSDK
        select MIGHT_HAVE_PCI