Skip to content

Commit 837ab4a

Browse files
evgeniy-paltsevnashif
authored andcommitted
ARC: save/restore accumulator registers on all ARCv2 HS CPUs by default
Accumulator registers (ACCL, ACCH) are used on HS CPUs not only in case of FPU usage but also in case of MPY usage. We enable MPY for all ARCv2 HS in commit 18a24c3 ARC: gcc-m-cpu: use -mcpu=archs as a default for ARCv2 HS but we didn't enable accumulator registers management. Let's enable accumulator registers save/restore on all ARCv2 HS CPUs by default. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent 0943608 commit 837ab4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ config CODE_DENSITY
252252

253253
config ARC_HAS_ACCL_REGS
254254
bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
255+
default y if CPU_HS3X
255256
default y if FPU
256257
help
257258
Depending on the configuration, CPU can contain accumulator reg-pair

0 commit comments

Comments
 (0)