hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/nds32/Kconfig.cpu
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 comment "Processor Features"
23
34 config CPU_BIG_ENDIAN
....@@ -6,6 +7,40 @@
67 config CPU_LITTLE_ENDIAN
78 bool "Little endian"
89 default y
10
+
11
+config FPU
12
+ bool "FPU support"
13
+ default n
14
+ help
15
+ If FPU ISA is used in user space, this configuration shall be Y to
16
+ enable required support in kernel such as fpu context switch and
17
+ fpu exception handler.
18
+
19
+ If no FPU ISA is used in user space, say N.
20
+
21
+config LAZY_FPU
22
+ bool "lazy FPU support"
23
+ depends on FPU
24
+ default y
25
+ help
26
+ Say Y here to enable the lazy FPU scheme. The lazy FPU scheme can
27
+ enhance system performance by reducing the context switch
28
+ frequency of the FPU register.
29
+
30
+ For normal case, say Y.
31
+
32
+config SUPPORT_DENORMAL_ARITHMETIC
33
+ bool "Denormal arithmetic support"
34
+ depends on FPU
35
+ default n
36
+ help
37
+ Say Y here to enable arithmetic of denormalized number. Enabling
38
+ this feature can enhance the precision for tininess number.
39
+ However, performance loss in float point calculations is
40
+ possibly significant due to additional FPU exception.
41
+
42
+ If the calculated tolerance for tininess number is not critical,
43
+ say N to prevent performance loss.
944
1045 config HWZOL
1146 bool "hardware zero overhead loop support"
....@@ -38,7 +73,7 @@
3873 the cache aliasing issue. The rest cpus(N13, N10 and D10) are
3974 implemented as VIPT data cache. It may cause the cache aliasing issue
4075 if its cache way size is larger than page size. You can specify the
41
- CPU type direcly or choose CPU_V3 if unsure.
76
+ CPU type directly or choose CPU_V3 if unsure.
4277
4378 A kernel built for N10 is able to run on N15, D15, N13, N10 or D10.
4479 A kernel built for N15 is able to run on N15 or D15.
....@@ -143,6 +178,13 @@
143178 Say Y here to enable L2 cache if your SoC are integrated with L2CC.
144179 If unsure, say N.
145180
181
+config HW_PRE
182
+ bool "Enable hardware prefetcher"
183
+ default y
184
+ help
185
+ Say Y here to enable hardware prefetcher feature.
186
+ Only when CPU_VER.REV >= 0x09 can support.
187
+
146188 menu "Memory configuration"
147189
148190 choice