default-configs: use TARGET_ARCH key

Replace the individual TARGET_*=y lines with TARGET_ARCH,
similar to how TARGET_BASE_ARCH is handled already.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-09-21 05:11:01 -04:00
parent b6c7cfd490
commit a9a7490786
73 changed files with 76 additions and 73 deletions

View File

@ -1,4 +1,4 @@
TARGET_AARCH64=y
TARGET_ARCH=aarch64
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=aarch64
TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-neon.xml gdb-xml/arm-m-profile.xml

View File

@ -1,4 +1,4 @@
TARGET_AARCH64=y
TARGET_ARCH=aarch64
TARGET_BASE_ARCH=arm
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-neon.xml gdb-xml/arm-m-profile.xml

View File

@ -1,4 +1,4 @@
TARGET_AARCH64=y
TARGET_ARCH=aarch64
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=aarch64
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,4 +1,4 @@
TARGET_ALPHA=y
TARGET_ARCH=alpha
TARGET_BASE_ARCH=alpha
TARGET_ABI_DIR=alpha
TARGET_SYSTBL_ABI=common

View File

@ -1,4 +1,4 @@
TARGET_ALPHA=y
TARGET_ARCH=alpha
TARGET_BASE_ARCH=alpha
TARGET_ALIGNED_ONLY=y
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,4 +1,4 @@
TARGET_ARM=y
TARGET_ARCH=arm
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=arm
TARGET_SYSTBL_ABI=common,oabi

View File

@ -1,4 +1,4 @@
TARGET_ARM=y
TARGET_ARCH=arm
TARGET_BASE_ARCH=arm
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-neon.xml gdb-xml/arm-m-profile.xml

View File

@ -1,4 +1,4 @@
TARGET_ARM=y
TARGET_ARCH=arm
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=arm
TARGET_SYSTBL_ABI=common,oabi

View File

@ -1,3 +1,3 @@
TARGET_AVR=y
TARGET_ARCH=avr
TARGET_BASE_ARCH=avr
TARGET_XML_FILES= gdb-xml/avr-cpu.xml

View File

@ -1,3 +1,3 @@
TARGET_CRIS=y
TARGET_ARCH=cris
TARGET_BASE_ARCH=cris
TARGET_ABI_DIR=cris

View File

@ -1,2 +1,2 @@
TARGET_CRIS=y
TARGET_ARCH=cris
TARGET_BASE_ARCH=cris

View File

@ -1,4 +1,4 @@
TARGET_HPPA=y
TARGET_ARCH=hppa
TARGET_BASE_ARCH=hppa
TARGET_ABI_DIR=hppa
TARGET_SYSTBL_ABI=common,32

View File

@ -1,4 +1,4 @@
TARGET_HPPA=y
TARGET_ARCH=hppa
TARGET_BASE_ARCH=hppa
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,4 +1,4 @@
TARGET_I386=y
TARGET_ARCH=i386
TARGET_BASE_ARCH=i386
TARGET_ABI_DIR=i386
TARGET_XML_FILES= gdb-xml/i386-32bit.xml

View File

@ -1,4 +1,4 @@
TARGET_I386=y
TARGET_ARCH=i386
TARGET_BASE_ARCH=i386
TARGET_ABI_DIR=i386
TARGET_SYSTBL_ABI=i386

View File

@ -1,4 +1,4 @@
TARGET_I386=y
TARGET_ARCH=i386
TARGET_BASE_ARCH=i386
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/i386-32bit.xml

View File

@ -1,3 +1,3 @@
TARGET_LM32=y
TARGET_ARCH=lm32
TARGET_BASE_ARCH=lm32
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,4 +1,4 @@
TARGET_M68K=y
TARGET_ARCH=m68k
TARGET_BASE_ARCH=m68k
TARGET_ABI_DIR=m68k
TARGET_SYSTBL_ABI=common

View File

@ -1,4 +1,4 @@
TARGET_M68K=y
TARGET_ARCH=m68k
TARGET_BASE_ARCH=m68k
TARGET_WORDS_BIGENDIAN=y
TARGET_XML_FILES= gdb-xml/cf-core.xml gdb-xml/cf-fp.xml gdb-xml/m68k-core.xml gdb-xml/m68k-fp.xml

View File

@ -1,4 +1,4 @@
TARGET_MICROBLAZE=y
TARGET_ARCH=microblaze
TARGET_BASE_ARCH=microblaze
TARGET_ABI_DIR=microblaze
TARGET_SYSTBL_ABI=common

View File

@ -1,4 +1,4 @@
TARGET_MICROBLAZE=y
TARGET_ARCH=microblaze
TARGET_BASE_ARCH=microblaze
TARGET_WORDS_BIGENDIAN=y
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,4 +1,4 @@
TARGET_MICROBLAZE=y
TARGET_ARCH=microblaze
TARGET_BASE_ARCH=microblaze
TARGET_ABI_DIR=microblaze
TARGET_SYSTBL_ABI=common

View File

@ -1,3 +1,3 @@
TARGET_MICROBLAZE=y
TARGET_ARCH=microblaze
TARGET_BASE_ARCH=microblaze
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,5 +1,5 @@
TARGET_ARCH=mips
TARGET_ABI_MIPSO32=y
TARGET_MIPS=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips
TARGET_SYSTBL_ABI=o32

View File

@ -1,4 +1,4 @@
TARGET_MIPS=y
TARGET_ARCH=mips
TARGET_BASE_ARCH=mips
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,5 +1,5 @@
TARGET_ARCH=mips64
TARGET_ABI_MIPSN64=y
TARGET_MIPS64=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n64

View File

@ -1,4 +1,4 @@
TARGET_MIPS64=y
TARGET_ARCH=mips64
TARGET_BASE_ARCH=mips
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,5 +1,5 @@
TARGET_ARCH=mips64
TARGET_ABI_MIPSN64=y
TARGET_MIPS64=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n64

View File

@ -1,3 +1,3 @@
TARGET_MIPS64=y
TARGET_ARCH=mips64
TARGET_BASE_ARCH=mips
TARGET_ALIGNED_ONLY=y

View File

@ -1,5 +1,5 @@
TARGET_ARCH=mips
TARGET_ABI_MIPSO32=y
TARGET_MIPS=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips
TARGET_SYSTBL_ABI=o32

View File

@ -1,4 +1,4 @@
TARGET_MIPS=y
TARGET_ARCH=mips
TARGET_BASE_ARCH=mips
TARGET_ALIGNED_ONLY=y
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,6 +1,6 @@
TARGET_ARCH=mips64
TARGET_ABI_MIPSN32=y
TARGET_ABI32=y
TARGET_MIPS64=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n32

View File

@ -1,6 +1,6 @@
TARGET_ARCH=mips64
TARGET_ABI_MIPSN32=y
TARGET_ABI32=y
TARGET_MIPS64=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n32

View File

@ -1,3 +1,3 @@
TARGET_MOXIE=y
TARGET_ARCH=moxie
TARGET_BASE_ARCH=moxie
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,3 +1,3 @@
TARGET_NIOS2=y
TARGET_ARCH=nios2
TARGET_BASE_ARCH=nios2
TARGET_ABI_DIR=nios2

View File

@ -1,2 +1,2 @@
TARGET_NIOS2=y
TARGET_ARCH=nios2
TARGET_BASE_ARCH=nios2

View File

@ -1,4 +1,4 @@
TARGET_OPENRISC=y
TARGET_ARCH=openrisc
TARGET_BASE_ARCH=openrisc
TARGET_ABI_DIR=openrisc
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,3 +1,3 @@
TARGET_OPENRISC=y
TARGET_ARCH=openrisc
TARGET_BASE_ARCH=openrisc
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,4 +1,4 @@
TARGET_PPC=y
TARGET_ARCH=ppc
TARGET_BASE_ARCH=ppc
TARGET_ABI_DIR=ppc
TARGET_SYSTBL_ABI=common,nospu,32

View File

@ -1,4 +1,4 @@
TARGET_PPC=y
TARGET_ARCH=ppc
TARGET_BASE_ARCH=ppc
TARGET_WORDS_BIGENDIAN=y
TARGET_XML_FILES= gdb-xml/power-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml

View File

@ -1,4 +1,4 @@
TARGET_PPC64=y
TARGET_ARCH=ppc64
TARGET_BASE_ARCH=ppc
TARGET_ABI_DIR=ppc
TARGET_SYSTBL_ABI=common,nospu,64

View File

@ -1,4 +1,4 @@
TARGET_PPC64=y
TARGET_ARCH=ppc64
TARGET_BASE_ARCH=ppc
TARGET_WORDS_BIGENDIAN=y
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,5 +1,5 @@
TARGET_ARCH=ppc64
TARGET_ABI32=y
TARGET_PPC64=y
TARGET_BASE_ARCH=ppc
TARGET_ABI_DIR=ppc
TARGET_SYSTBL_ABI=common,nospu,32

View File

@ -1,4 +1,4 @@
TARGET_PPC64=y
TARGET_ARCH=ppc64
TARGET_BASE_ARCH=ppc
TARGET_ABI_DIR=ppc
TARGET_SYSTBL_ABI=common,nospu,64

View File

@ -1,4 +1,4 @@
TARGET_RISCV32=y
TARGET_ARCH=riscv32
TARGET_BASE_ARCH=riscv
TARGET_ABI_DIR=riscv
TARGET_XML_FILES= gdb-xml/riscv-32bit-cpu.xml gdb-xml/riscv-32bit-fpu.xml gdb-xml/riscv-64bit-fpu.xml gdb-xml/riscv-32bit-csr.xml gdb-xml/riscv-32bit-virtual.xml

View File

@ -1,4 +1,4 @@
TARGET_RISCV32=y
TARGET_ARCH=riscv32
TARGET_BASE_ARCH=riscv
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/riscv-32bit-cpu.xml gdb-xml/riscv-32bit-fpu.xml gdb-xml/riscv-64bit-fpu.xml gdb-xml/riscv-32bit-csr.xml gdb-xml/riscv-32bit-virtual.xml

View File

@ -1,4 +1,4 @@
TARGET_RISCV64=y
TARGET_ARCH=riscv64
TARGET_BASE_ARCH=riscv
TARGET_ABI_DIR=riscv
TARGET_XML_FILES= gdb-xml/riscv-64bit-cpu.xml gdb-xml/riscv-32bit-fpu.xml gdb-xml/riscv-64bit-fpu.xml gdb-xml/riscv-64bit-csr.xml gdb-xml/riscv-64bit-virtual.xml

View File

@ -1,4 +1,4 @@
TARGET_RISCV64=y
TARGET_ARCH=riscv64
TARGET_BASE_ARCH=riscv
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/riscv-64bit-cpu.xml gdb-xml/riscv-32bit-fpu.xml gdb-xml/riscv-64bit-fpu.xml gdb-xml/riscv-64bit-csr.xml gdb-xml/riscv-64bit-virtual.xml

View File

@ -1,3 +1,3 @@
TARGET_RX=y
TARGET_ARCH=rx
TARGET_BASE_ARCH=rx
TARGET_XML_FILES= gdb-xml/rx-core.xml

View File

@ -1,4 +1,4 @@
TARGET_S390X=y
TARGET_ARCH=s390x
TARGET_BASE_ARCH=s390x
TARGET_ABI_DIR=s390x
TARGET_SYSTBL_ABI=common,64

View File

@ -1,4 +1,4 @@
TARGET_S390X=y
TARGET_ARCH=s390x
TARGET_BASE_ARCH=s390x
TARGET_WORDS_BIGENDIAN=y
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,4 +1,4 @@
TARGET_SH4=y
TARGET_ARCH=sh4
TARGET_BASE_ARCH=sh4
TARGET_ABI_DIR=sh4
TARGET_SYSTBL_ABI=common

View File

@ -1,3 +1,3 @@
TARGET_SH4=y
TARGET_ARCH=sh4
TARGET_BASE_ARCH=sh4
TARGET_ALIGNED_ONLY=y

View File

@ -1,4 +1,4 @@
TARGET_SH4=y
TARGET_ARCH=sh4
TARGET_BASE_ARCH=sh4
TARGET_ABI_DIR=sh4
TARGET_SYSTBL_ABI=common

View File

@ -1,4 +1,4 @@
TARGET_SH4=y
TARGET_ARCH=sh4
TARGET_BASE_ARCH=sh4
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,4 +1,4 @@
TARGET_SPARC=y
TARGET_ARCH=sparc
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc
TARGET_ALIGNED_ONLY=y

View File

@ -1,4 +1,4 @@
TARGET_SPARC=y
TARGET_ARCH=sparc
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc
TARGET_SYSTBL_ABI=common,32

View File

@ -1,4 +1,4 @@
TARGET_SPARC=y
TARGET_ARCH=sparc
TARGET_BASE_ARCH=sparc
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,5 +1,5 @@
TARGET_ARCH=sparc64
TARGET_ABI32=y
TARGET_SPARC64=y
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc
TARGET_SYSTBL_ABI=common,32

View File

@ -1,4 +1,4 @@
TARGET_SPARC64=y
TARGET_ARCH=sparc64
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc64
TARGET_ALIGNED_ONLY=y

View File

@ -1,4 +1,4 @@
TARGET_SPARC64=y
TARGET_ARCH=sparc64
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc64
TARGET_SYSTBL_ABI=common,64

View File

@ -1,4 +1,4 @@
TARGET_SPARC64=y
TARGET_ARCH=sparc64
TARGET_BASE_ARCH=sparc
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -1,3 +1,3 @@
TARGET_TILEGX=y
TARGET_ARCH=tilegx
TARGET_BASE_ARCH=tilegx
TARGET_ABI_DIR=tilegx

View File

@ -1,2 +1,2 @@
TARGET_TRICORE=y
TARGET_ARCH=tricore
TARGET_BASE_ARCH=tricore

View File

@ -1,2 +1,2 @@
TARGET_UNICORE32=y
TARGET_ARCH=unicore32
TARGET_BASE_ARCH=unicore32

View File

@ -1,4 +1,4 @@
TARGET_X86_64=y
TARGET_ARCH=x86_64
TARGET_BASE_ARCH=i386
TARGET_ABI_DIR=x86_64
TARGET_XML_FILES= gdb-xml/i386-64bit.xml

View File

@ -1,4 +1,4 @@
TARGET_X86_64=y
TARGET_ARCH=x86_64
TARGET_BASE_ARCH=i386
TARGET_ABI_DIR=x86_64
TARGET_SYSTBL_ABI=common,64

View File

@ -1,4 +1,4 @@
TARGET_X86_64=y
TARGET_ARCH=x86_64
TARGET_BASE_ARCH=i386
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/i386-64bit.xml

View File

@ -1,4 +1,4 @@
TARGET_XTENSA=y
TARGET_ARCH=xtensa
TARGET_BASE_ARCH=xtensa
TARGET_ABI_DIR=xtensa
TARGET_SYSTBL_ABI=common

View File

@ -1,4 +1,4 @@
TARGET_XTENSA=y
TARGET_ARCH=xtensa
TARGET_BASE_ARCH=xtensa
TARGET_ALIGNED_ONLY=y
TARGET_SUPPORTS_MTTCG=y

View File

@ -1,4 +1,4 @@
TARGET_XTENSA=y
TARGET_ARCH=xtensa
TARGET_BASE_ARCH=xtensa
TARGET_ABI_DIR=xtensa
TARGET_SYSTBL_ABI=common

View File

@ -1,4 +1,4 @@
TARGET_XTENSA=y
TARGET_ARCH=xtensa
TARGET_BASE_ARCH=xtensa
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View File

@ -727,7 +727,7 @@ kconfig_external_symbols = [
'CONFIG_LINUX',
'CONFIG_PVRDMA',
]
ignored = ['TARGET_XML_FILES', 'TARGET_ABI_DIR', 'TARGET_DIRS']
ignored = [ 'TARGET_XML_FILES', 'TARGET_ABI_DIR', 'TARGET_ARCH' ]
default_targets = 'CONFIG_DEFAULT_TARGETS' in config_host
actual_target_dirs = []
@ -780,6 +780,7 @@ foreach target : target_dirs
actual_target_dirs += target
config_target += keyval.load('default-configs/targets' / target + '.mak')
config_target += { 'TARGET_' + config_target['TARGET_ARCH'].to_upper(): 'y' }
foreach k, v: disassemblers
if config_host['ARCH'].startswith(k) or config_target['TARGET_BASE_ARCH'].startswith(k)
@ -797,6 +798,8 @@ foreach target : target_dirs
elif ignored.contains(k)
# do nothing
elif k == 'TARGET_BASE_ARCH'
# Note that TARGET_BASE_ARCH ends up in config-target.h but it is
# not used to select files from sourcesets.
config_target_data.set('TARGET_' + v.to_upper(), 1)
elif k == 'TARGET_NAME' or k == 'CONFIG_QEMU_INTERP_PREFIX'
config_target_data.set_quoted(k, v)