File tree Expand file tree Collapse file tree 9 files changed +28
-20
lines changed
tests/kernel/fpu_sharing/generic Expand file tree Collapse file tree 9 files changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,23 @@ config CPU_ARCHS
2626 This option signifies the use of an ARC HS CPU
2727
2828
29+ choice
30+ prompt "ARC Instruction Set"
31+ default ISA_ARCV2
32+
33+ config ISA_ARCV2
34+ bool "ARC ISA v2"
35+ select ARCH_HAS_STACK_PROTECTION if ARC_HAS_STACK_CHECKING || (ARC_MPU && ARC_MPU_VER !=2)
36+ select ARCH_HAS_USERSPACE if ARC_MPU
37+ select USE_SWITCH
38+ select USE_SWITCH_SUPPORTED
39+ help
40+ v2 ISA for the ARC-HS & ARC-EM cores
41+
42+ endchoice
43+
44+ if ISA_ARCV2
45+
2946config CPU_EM4
3047 bool
3148 select CPU_ARCEM
@@ -64,20 +81,12 @@ config CPU_HS3X
6481 help
6582 If y, the SoC uses an ARC HS3x or HS4x CPU
6683
84+ endif #ISA_ARCV2
85+
6786config FP_FPU_DA
6887 bool
6988
70- menu "ARCv2 Family Options"
71-
72- config CPU_ARCV2
73- bool
74- select ARCH_HAS_STACK_PROTECTION if ARC_HAS_STACK_CHECKING || (ARC_MPU && ARC_MPU_VER !=2)
75- select ARCH_HAS_USERSPACE if ARC_MPU
76- select USE_SWITCH
77- select USE_SWITCH_SUPPORTED
78- default y
79- help
80- This option signifies the use of a CPU of the ARCv2 family.
89+ menu "ARC CPU Options"
8190
8291config NUM_IRQ_PRIO_LEVELS
8392 int "Number of supported interrupt priority levels"
@@ -101,7 +110,6 @@ config NUM_IRQS
101110
102111config RGF_NUM_BANKS
103112 int "Number of General Purpose Register Banks"
104- depends on CPU_ARCV2
105113 range 1 2
106114 default 2
107115 help
Original file line number Diff line number Diff line change 2424
2525#include <kernel_arch_data.h>
2626
27- #ifdef CONFIG_CPU_ARCV2
27+ #ifdef CONFIG_ISA_ARCV2
2828#include <v2/irq.h>
2929#endif
3030
Original file line number Diff line number Diff line change 2121#include <arch/common/ffs.h>
2222#include <arch/arc/thread.h>
2323#include <arch/common/sys_bitops.h>
24- #ifdef CONFIG_CPU_ARCV2
24+ #ifdef CONFIG_ISA_ARCV2
2525#include <arch/arc/v2/exc.h>
2626#include <arch/arc/v2/irq.h>
2727#include <arch/arc/v2/error.h>
Original file line number Diff line number Diff line change 1212
1313#include <kernel_structs.h>
1414
15- #ifdef CONFIG_CPU_ARCV2
15+ #ifdef CONFIG_ISA_ARCV2
1616#include <arch/arc/v2/aux_regs.h>
1717#endif
1818
Original file line number Diff line number Diff line change 2626#include <zephyr/types.h>
2727#include <stdbool.h>
2828
29- #ifdef CONFIG_CPU_ARCV2
29+ #ifdef CONFIG_ISA_ARCV2
3030#include <arch/arc/v2/aux_regs.h>
3131#endif
3232
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ struct fp_non_volatile_register_set {
8888#define SIZEOF_FP_NON_VOLATILE_REGISTER_SET \
8989 sizeof(struct fp_non_volatile_register_set)
9090
91- #elif defined(CONFIG_CPU_ARCV2 )
91+ #elif defined(CONFIG_ISA_ARCV2 )
9292
9393struct fp_volatile_register_set {
9494#ifdef CONFIG_FP_FPU_DA
Original file line number Diff line number Diff line change 1212#ifndef _FLOAT_REGS_ARC_GCC_H
1313#define _FLOAT_REGS_ARC_GCC_H
1414
15- #if !defined(__GNUC__ ) || !defined(CONFIG_CPU_ARCV2 )
15+ #if !defined(__GNUC__ ) || !defined(CONFIG_ISA_ARCV2 )
1616#error __FILE__ goes only with ARC GCC
1717#endif
1818
Original file line number Diff line number Diff line change 5050#else
5151#include "float_regs_arm_other.h"
5252#endif /* __GNUC__ */
53- #elif defined(CONFIG_CPU_ARCV2 )
53+ #elif defined(CONFIG_ISA_ARCV2 )
5454#if defined(__GNUC__ )
5555#include "float_regs_arc_gcc.h"
5656#else
Original file line number Diff line number Diff line change 11tests :
22 kernel.fpu_sharing.generic.arc :
33 extra_args : PI_NUM_ITERATIONS=500
4- filter : CONFIG_CPU_ARCV2 and CONFIG_CPU_HAS_FPU
4+ filter : CONFIG_ISA_ARCV2 and CONFIG_CPU_HAS_FPU
55 slow : true
66 tags : kernel
77 timeout : 600
You can’t perform that action at this time.
0 commit comments