|
@@ -8,6 +8,7 @@
|
|
|
#define _ASM_ARC_ARCREGS_H
|
|
|
|
|
|
#include <asm/cache.h>
|
|
|
+#include <config.h>
|
|
|
|
|
|
/*
|
|
|
* ARC architecture has additional address space - auxiliary registers.
|
|
@@ -88,6 +89,16 @@
|
|
|
|
|
|
/* ARCNUM [15:8] - field to identify each core in a multi-core system */
|
|
|
#define CPU_ID_GET() ((read_aux_reg(ARC_AUX_IDENTITY) & 0xFF00) >> 8)
|
|
|
+
|
|
|
+static const inline int is_isa_arcv2(void)
|
|
|
+{
|
|
|
+ return IS_ENABLED(CONFIG_ISA_ARCV2);
|
|
|
+}
|
|
|
+
|
|
|
+static const inline int is_isa_arcompact(void)
|
|
|
+{
|
|
|
+ return IS_ENABLED(CONFIG_ISA_ARCOMPACT);
|
|
|
+}
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
#endif /* _ASM_ARC_ARCREGS_H */
|