1
0
Преглед на файлове

alpha: add fine granular CPU selection

Waldemar Brodkorb преди 7 години
родител
ревизия
8f278d7fef
променени са 3 файла, в които са добавени 35 реда и са изтрити 4 реда
  1. 1 1
      target/alpha/systems/dec-multia
  2. 1 1
      target/alpha/systems/qemu-alpha
  3. 33 2
      target/config/Config.in.cpu

+ 1 - 1
target/alpha/systems/dec-multia

@@ -1,6 +1,6 @@
 config ADK_TARGET_SYSTEM_DEC_MULTIA
 	bool "Digital Multia"
-	select ADK_TARGET_CPU_ALPHA
+	select ADK_TARGET_CPU_ALPHA_EV4
 	select ADK_TARGET_KERNEL_WITH_COMPRESSION
 	help
 	  Support for DEC Multia. See:

+ 1 - 1
target/alpha/systems/qemu-alpha

@@ -1,6 +1,6 @@
 config ADK_TARGET_SYSTEM_QEMU_ALPHA
 	bool "Qemu Emulator"
-	select ADK_TARGET_CPU_ALPHA
+	select ADK_TARGET_CPU_ALPHA_EV67
 	select ADK_TARGET_QEMU
 	select ADK_TARGET_KERNEL_WITH_COMPRESSION
 	help

+ 33 - 2
target/config/Config.in.cpu

@@ -22,13 +22,40 @@ config ADK_TARGET_CPU_AARCH64_CORTEX_A57
 	depends on ADK_TARGET_ARCH_AARCH64
 
 # alpha
-config ADK_TARGET_CPU_ALPHA
-	bool "alpha"
+config ADK_TARGET_CPU_ALPHA_EV4
+	bool "ev4"
 	select ADK_LINUX_64
 	select ADK_TARGET_SUPPORTS_THREADS if ADK_TARGET_LIB_GLIBC
 	select ADK_TARGET_SUPPORTS_NPTL if ADK_TARGET_LIB_GLIBC
+	select ADK_TARGET_WITH_MMU
 	select ADK_TARGET_USE_STATIC_LIBS_ONLY if ADK_TARGET_LIB_UCLIBC_NG
+	depends on ADK_TARGET_ARCH_ALPHA
+
+config ADK_TARGET_CPU_ALPHA_EV5
+	bool "ev5"
+	select ADK_LINUX_64
+	select ADK_TARGET_SUPPORTS_THREADS if ADK_TARGET_LIB_GLIBC
+	select ADK_TARGET_SUPPORTS_NPTL if ADK_TARGET_LIB_GLIBC
 	select ADK_TARGET_WITH_MMU
+	select ADK_TARGET_USE_STATIC_LIBS_ONLY if ADK_TARGET_LIB_UCLIBC_NG
+	depends on ADK_TARGET_ARCH_ALPHA
+
+config ADK_TARGET_CPU_ALPHA_EV6
+	bool "ev6"
+	select ADK_LINUX_64
+	select ADK_TARGET_SUPPORTS_THREADS if ADK_TARGET_LIB_GLIBC
+	select ADK_TARGET_SUPPORTS_NPTL if ADK_TARGET_LIB_GLIBC
+	select ADK_TARGET_WITH_MMU
+	select ADK_TARGET_USE_STATIC_LIBS_ONLY if ADK_TARGET_LIB_UCLIBC_NG
+	depends on ADK_TARGET_ARCH_ALPHA
+
+config ADK_TARGET_CPU_ALPHA_EV67
+	bool "ev67"
+	select ADK_LINUX_64
+	select ADK_TARGET_SUPPORTS_THREADS if ADK_TARGET_LIB_GLIBC
+	select ADK_TARGET_SUPPORTS_NPTL if ADK_TARGET_LIB_GLIBC
+	select ADK_TARGET_WITH_MMU
+	select ADK_TARGET_USE_STATIC_LIBS_ONLY if ADK_TARGET_LIB_UCLIBC_NG
 	depends on ADK_TARGET_ARCH_ALPHA
 
 # arc
@@ -1797,6 +1824,10 @@ config ADK_TARGET_GCC_CPU
 	default "cortex-m3" if ADK_TARGET_CPU_ARM_CORTEX_M3
 	default "cortex-m4" if ADK_TARGET_CPU_ARM_CORTEX_M4
 	default "cortex-m7" if ADK_TARGET_CPU_ARM_CORTEX_M7
+	default "ev4" if ADK_TARGET_CPU_ALPHA_EV4
+	default "ev5" if ADK_TARGET_CPU_ALPHA_EV5
+	default "ev6" if ADK_TARGET_CPU_ALPHA_EV6
+	default "ev67" if ADK_TARGET_CPU_ALPHA_EV67
 	default "leon" if ADK_TARGET_CPU_SPARC_LEON
 	default "mpcore" if ADK_TARGET_CPU_ARM_ARM11MPCORE
 	default "n13" if ADK_TARGET_CPU_NDS32