default-configs: remove redundant keys

TARGET_BASE_ARCH and TARGET_ABI_DIR are 99% of the time the same
as TARGET_ARCH, remove them if so.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-09-21 05:19:07 -04:00
parent a9a7490786
commit fa73168b08
59 changed files with 8 additions and 81 deletions

View file

@ -1,5 +1,4 @@
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
TARGET_HAS_BFLT=y

View file

@ -1,6 +1,5 @@
TARGET_ARCH=aarch64
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=aarch64
TARGET_WORDS_BIGENDIAN=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
TARGET_HAS_BFLT=y

View file

@ -1,6 +1,4 @@
TARGET_ARCH=alpha
TARGET_BASE_ARCH=alpha
TARGET_ABI_DIR=alpha
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=arm
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=arm
TARGET_SYSTBL_ABI=common,oabi
TARGET_SYSTBL=syscall.tbl
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,3 @@
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,6 +1,4 @@
TARGET_ARCH=arm
TARGET_BASE_ARCH=arm
TARGET_ABI_DIR=arm
TARGET_SYSTBL_ABI=common,oabi
TARGET_SYSTBL=syscall.tbl
TARGET_WORDS_BIGENDIAN=y

View file

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

View file

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

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=hppa
TARGET_BASE_ARCH=hppa
TARGET_ABI_DIR=hppa
TARGET_SYSTBL_ABI=common,32
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=i386
TARGET_BASE_ARCH=i386
TARGET_ABI_DIR=i386
TARGET_SYSTBL_ABI=i386
TARGET_SYSTBL=syscall_32.tbl
TARGET_XML_FILES= gdb-xml/i386-32bit.xml

View file

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

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=m68k
TARGET_BASE_ARCH=m68k
TARGET_ABI_DIR=m68k
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_WORDS_BIGENDIAN=y

View file

@ -1,4 +1,3 @@
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,6 +1,4 @@
TARGET_ARCH=microblaze
TARGET_BASE_ARCH=microblaze
TARGET_ABI_DIR=microblaze
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_WORDS_BIGENDIAN=y

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=microblaze
TARGET_BASE_ARCH=microblaze
TARGET_ABI_DIR=microblaze
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_HAS_BFLT=y

View file

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

View file

@ -1,7 +1,5 @@
TARGET_ARCH=mips
TARGET_ABI_MIPSO32=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips
TARGET_SYSTBL_ABI=o32
TARGET_SYSTBL=syscall_o32.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -1,7 +1,6 @@
TARGET_ARCH=mips64
TARGET_ABI_MIPSN64=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n64
TARGET_SYSTBL=syscall_n64.tbl
TARGET_ALIGNED_ONLY=y

View file

@ -1,7 +1,6 @@
TARGET_ARCH=mips64
TARGET_ABI_MIPSN64=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n64
TARGET_SYSTBL=syscall_n64.tbl
TARGET_ALIGNED_ONLY=y

View file

@ -1,7 +1,5 @@
TARGET_ARCH=mips
TARGET_ABI_MIPSO32=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips
TARGET_SYSTBL_ABI=o32
TARGET_SYSTBL=syscall_o32.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -2,7 +2,6 @@ TARGET_ARCH=mips64
TARGET_ABI_MIPSN32=y
TARGET_ABI32=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n32
TARGET_SYSTBL=syscall_n32.tbl
TARGET_ALIGNED_ONLY=y

View file

@ -2,7 +2,6 @@ TARGET_ARCH=mips64
TARGET_ABI_MIPSN32=y
TARGET_ABI32=y
TARGET_BASE_ARCH=mips
TARGET_ABI_DIR=mips64
TARGET_SYSTBL_ABI=n32
TARGET_SYSTBL=syscall_n32.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=ppc
TARGET_BASE_ARCH=ppc
TARGET_ABI_DIR=ppc
TARGET_SYSTBL_ABI=common,nospu,32
TARGET_SYSTBL=syscall.tbl
TARGET_WORDS_BIGENDIAN=y

View file

@ -1,4 +1,3 @@
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,3 +1,2 @@
TARGET_ARCH=rx
TARGET_BASE_ARCH=rx
TARGET_XML_FILES= gdb-xml/rx-core.xml

View file

@ -1,6 +1,4 @@
TARGET_ARCH=s390x
TARGET_BASE_ARCH=s390x
TARGET_ABI_DIR=s390x
TARGET_SYSTBL_ABI=common,64
TARGET_SYSTBL=syscall.tbl
TARGET_WORDS_BIGENDIAN=y

View file

@ -1,5 +1,4 @@
TARGET_ARCH=s390x
TARGET_BASE_ARCH=s390x
TARGET_WORDS_BIGENDIAN=y
TARGET_SUPPORTS_MTTCG=y
TARGET_XML_FILES= gdb-xml/s390x-core64.xml gdb-xml/s390-acr.xml gdb-xml/s390-fpr.xml gdb-xml/s390-vx.xml gdb-xml/s390-cr.xml gdb-xml/s390-virt.xml gdb-xml/s390-gs.xml

View file

@ -1,6 +1,4 @@
TARGET_ARCH=sh4
TARGET_BASE_ARCH=sh4
TARGET_ABI_DIR=sh4
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=sh4
TARGET_BASE_ARCH=sh4
TARGET_ABI_DIR=sh4
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -1,5 +1,3 @@
TARGET_ARCH=sparc
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc
TARGET_ALIGNED_ONLY=y
TARGET_WORDS_BIGENDIAN=y

View file

@ -1,6 +1,4 @@
TARGET_ARCH=sparc
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc
TARGET_SYSTBL_ABI=common,32
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

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

View file

@ -1,6 +1,5 @@
TARGET_ARCH=sparc64
TARGET_BASE_ARCH=sparc
TARGET_ABI_DIR=sparc64
TARGET_SYSTBL_ABI=common,64
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
TARGET_ARCH=x86_64
TARGET_BASE_ARCH=i386
TARGET_ABI_DIR=x86_64
TARGET_SYSTBL_ABI=common,64
TARGET_SYSTBL=syscall_64.tbl
TARGET_XML_FILES= gdb-xml/i386-64bit.xml

View file

@ -1,6 +1,4 @@
TARGET_ARCH=xtensa
TARGET_BASE_ARCH=xtensa
TARGET_ABI_DIR=xtensa
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -1,6 +1,4 @@
TARGET_ARCH=xtensa
TARGET_BASE_ARCH=xtensa
TARGET_ABI_DIR=xtensa
TARGET_SYSTBL_ABI=common
TARGET_SYSTBL=syscall.tbl
TARGET_ALIGNED_ONLY=y

View file

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

View file

@ -782,6 +782,14 @@ foreach target : target_dirs
config_target += keyval.load('default-configs/targets' / target + '.mak')
config_target += { 'TARGET_' + config_target['TARGET_ARCH'].to_upper(): 'y' }
# Add default keys
if 'TARGET_BASE_ARCH' not in config_target
config_target += {'TARGET_BASE_ARCH': config_target['TARGET_ARCH']}
endif
if 'TARGET_ABI_DIR' not in config_target
config_target += {'TARGET_ABI_DIR': config_target['TARGET_ARCH']}
endif
foreach k, v: disassemblers
if config_host['ARCH'].startswith(k) or config_target['TARGET_BASE_ARCH'].startswith(k)
foreach sym: v