Skip to content

Commit 1a3164b

Browse files
committed
ARC: Add tune for ARC HS4* processors
Signed-off-by: Evgeniy Didin <[email protected]>
1 parent 47b8f6c commit 1a3164b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

arch/Config.in.arc

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,21 @@ config BR2_archs38_full
3030

3131
It corresponds to "hs38_slc_full" ARC HS template in ARChitect.
3232

33+
34+
config BR2_archs4x_rel31
35+
bool "ARC HS48 rel 31"
36+
help
37+
Latest release of HS48 processor
38+
- Dual- and quad multiply and MC oprations
39+
- Double-precision FPU
40+
41+
3342
endchoice
3443

3544
# Choice of atomic instructions presence
3645
config BR2_ARC_ATOMIC_EXT
3746
bool "Atomic extension (LLOCK/SCOND instructions)"
38-
default y if BR2_arc770d || BR2_archs38 || BR2_archs38_full
47+
default y if BR2_arc770d || BR2_archs38 || BR2_archs38_full || BR2_archs4x_rel31
3948

4049
config BR2_ARCH
4150
default "arc" if BR2_arcle
@@ -54,10 +63,11 @@ config BR2_GCC_TARGET_CPU
5463
default "arc700" if BR2_arc770d
5564
default "archs" if BR2_archs38
5665
default "hs38_linux" if BR2_archs38_full
66+
default "hs4x_rel31" if BR2_archs4x_rel31
5767

5868
config BR2_READELF_ARCH_NAME
5969
default "ARCompact" if BR2_arc750d || BR2_arc770d
60-
default "ARCv2" if BR2_archs38 || BR2_archs38_full
70+
default "ARCv2" if BR2_archs38 || BR2_archs38_full || BR2_archs4x_rel31
6171

6272
choice
6373
prompt "MMU Page Size"
@@ -77,7 +87,7 @@ choice
7787

7888
config BR2_ARC_PAGE_SIZE_4K
7989
bool "4KB"
80-
depends on BR2_arc770d || BR2_archs38 || BR2_archs38_full
90+
depends on BR2_arc770d || BR2_archs38 || BR2_archs38_full || BR2_archs4x_rel31
8191

8292
config BR2_ARC_PAGE_SIZE_8K
8393
bool "8KB"
@@ -87,7 +97,7 @@ config BR2_ARC_PAGE_SIZE_8K
8797

8898
config BR2_ARC_PAGE_SIZE_16K
8999
bool "16KB"
90-
depends on BR2_arc770d || BR2_archs38 || BR2_archs38_full
100+
depends on BR2_arc770d || BR2_archs38 || BR2_archs38_fulla || BR2_archs4x_rel31
91101

92102
endchoice
93103

0 commit comments

Comments
 (0)