diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-04 09:01:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-08 00:45:07 -0400 |
commit | 23cb7bac66bf6a24e71390ce7ead5d327ae85439 (patch) | |
tree | feb5cb1d9c3ddb72b94c41cf32492a5af95dab39 /sim | |
parent | 0592e80bcf1bbab2fbbb110ea395f9608e4f594c (diff) | |
download | fsf-binutils-gdb-23cb7bac66bf6a24e71390ce7ead5d327ae85439.zip fsf-binutils-gdb-23cb7bac66bf6a24e71390ce7ead5d327ae85439.tar.gz fsf-binutils-gdb-23cb7bac66bf6a24e71390ce7ead5d327ae85439.tar.bz2 |
sim: testsuite: calculate $arch from $subdir
Since we require ports to use a matching subdir name in the testsuite
tree, we can use that to calculate the $arch value.
Diffstat (limited to 'sim')
72 files changed, 142 insertions, 180 deletions
diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index b9efa92..8876c38 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * lib/sim-defs.exp (sim_tool_path): New function. + (sim_run): Set sim to [sim_tool_path]. + 2021-04-03 Mike Frysinger <vapier@gentoo.org> * lib/sim-defs.exp (run_sim_test): Convert examples to binaries. diff --git a/sim/testsuite/aarch64/ChangeLog b/sim/testsuite/aarch64/ChangeLog index 29378ce..9a6c834 100644 --- a/sim/testsuite/aarch64/ChangeLog +++ b/sim/testsuite/aarch64/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/aarch64/allinsn.exp b/sim/testsuite/aarch64/allinsn.exp index 04a234f..54d6478 100644 --- a/sim/testsuite/aarch64/allinsn.exp +++ b/sim/testsuite/aarch64/allinsn.exp @@ -1,10 +1,6 @@ # AArch64 simulator testsuite if [istarget aarch64*-*] { - # Used to locate the `run` program. - global arch - set arch "aarch64" - # all machines set all_machs "aarch64" diff --git a/sim/testsuite/arm/ChangeLog b/sim/testsuite/arm/ChangeLog index a1e80fe..89fab48 100644 --- a/sim/testsuite/arm/ChangeLog +++ b/sim/testsuite/arm/ChangeLog @@ -1,3 +1,9 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + * iwmmxt/iwmmxt.exp, misc.exp, thumb/allthumb.exp, xscale/xscale.exp: + Likewise. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp, iwmmxt/iwmmxt.exp, misc.exp, thumb/allthumb.ex, diff --git a/sim/testsuite/arm/allinsn.exp b/sim/testsuite/arm/allinsn.exp index 89ff965..c4d1cce 100644 --- a/sim/testsuite/arm/allinsn.exp +++ b/sim/testsuite/arm/allinsn.exp @@ -1,10 +1,6 @@ # ARM simulator testsuite. if { [istarget arm*-*-*] } { - # Used to locate the `run` program. - global arch - set arch "arm" - # all machines set all_machs "xscale" diff --git a/sim/testsuite/arm/iwmmxt/iwmmxt.exp b/sim/testsuite/arm/iwmmxt/iwmmxt.exp index 9710f36..4aff9c7 100644 --- a/sim/testsuite/arm/iwmmxt/iwmmxt.exp +++ b/sim/testsuite/arm/iwmmxt/iwmmxt.exp @@ -1,10 +1,6 @@ # Intel(r) Wireless MMX(tm) technology simulator testsuite. if { [istarget arm*-*-*] } { - # Used to locate the `run` program. - global arch - set arch "arm" - # all machines set all_machs "xscale" diff --git a/sim/testsuite/arm/misc.exp b/sim/testsuite/arm/misc.exp index ea6fd3c..818ee58 100644 --- a/sim/testsuite/arm/misc.exp +++ b/sim/testsuite/arm/misc.exp @@ -1,10 +1,6 @@ # Miscellaneous ARM simulator testcases if { [istarget arm*-*-*] } { - # Used to locate the `run` program. - global arch - set arch "arm" - # all machines set all_machs "arm7tdmi" diff --git a/sim/testsuite/arm/thumb/allthumb.exp b/sim/testsuite/arm/thumb/allthumb.exp index eca5fa1..ec09a0d 100644 --- a/sim/testsuite/arm/thumb/allthumb.exp +++ b/sim/testsuite/arm/thumb/allthumb.exp @@ -1,10 +1,6 @@ # ARM simulator testsuite. if { [istarget arm*-*-*] } { - # Used to locate the `run` program. - global arch - set arch "arm" - # all machines set all_machs "arm7tdmi" diff --git a/sim/testsuite/arm/xscale/xscale.exp b/sim/testsuite/arm/xscale/xscale.exp index 20c9df8..e65a952 100644 --- a/sim/testsuite/arm/xscale/xscale.exp +++ b/sim/testsuite/arm/xscale/xscale.exp @@ -1,10 +1,6 @@ # XSCALE simulator testsuite. if { [istarget arm*-*-*] } { - # Used to locate the `run` program. - global arch - set arch "arm" - # all machines set all_machs "xscale" diff --git a/sim/testsuite/avr/ChangeLog b/sim/testsuite/avr/ChangeLog index 8ee57d2..5ce686f 100644 --- a/sim/testsuite/avr/ChangeLog +++ b/sim/testsuite/avr/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/avr/allinsn.exp b/sim/testsuite/avr/allinsn.exp index a5c16b6..584a93d 100644 --- a/sim/testsuite/avr/allinsn.exp +++ b/sim/testsuite/avr/allinsn.exp @@ -1,10 +1,6 @@ # avr simulator testsuite if [istarget avr-*] { - # Used to locate the `run` program. - global arch - set arch "avr" - # all machines set all_machs "avr" diff --git a/sim/testsuite/bfin/ChangeLog b/sim/testsuite/bfin/ChangeLog index ff7f639..2abca7e 100644 --- a/sim/testsuite/bfin/ChangeLog +++ b/sim/testsuite/bfin/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/bfin/allinsn.exp b/sim/testsuite/bfin/allinsn.exp index 3d33781..aa304ea 100644 --- a/sim/testsuite/bfin/allinsn.exp +++ b/sim/testsuite/bfin/allinsn.exp @@ -1,10 +1,6 @@ # Analog Devices Blackfin simulator testsuite if [istarget bfin-*-elf] { - # Used to locate the `run` program. - global arch - set arch "bfin" - # all machines set all_machs "bfin" diff --git a/sim/testsuite/bpf/ChangeLog b/sim/testsuite/bpf/ChangeLog index 76d54e1..5814a7c 100644 --- a/sim/testsuite/bpf/ChangeLog +++ b/sim/testsuite/bpf/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/bpf/allinsn.exp b/sim/testsuite/bpf/allinsn.exp index ffffd8a..2cca770 100644 --- a/sim/testsuite/bpf/allinsn.exp +++ b/sim/testsuite/bpf/allinsn.exp @@ -1,10 +1,6 @@ # eBPF simulator testsuite if [istarget bpf-unknown-none] { - # Used to locate the `run` program. - global arch - set arch "bpf" - # all machines set all_machs "bpf" diff --git a/sim/testsuite/cr16/ChangeLog b/sim/testsuite/cr16/ChangeLog index b241c86..68353f0 100644 --- a/sim/testsuite/cr16/ChangeLog +++ b/sim/testsuite/cr16/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + * misc.exp: Likewise. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp, misc.exp: Define arch. diff --git a/sim/testsuite/cr16/allinsn.exp b/sim/testsuite/cr16/allinsn.exp index 1b6847c..d6602b4 100644 --- a/sim/testsuite/cr16/allinsn.exp +++ b/sim/testsuite/cr16/allinsn.exp @@ -1,10 +1,6 @@ # CR16 simulator testsuite. if [istarget cr16*-*-*] { - # Used to locate the `run` program. - global arch - set arch "cr16" - # all machines set all_machs "cr16" diff --git a/sim/testsuite/cr16/misc.exp b/sim/testsuite/cr16/misc.exp index 67fa4c2..5f9d681 100644 --- a/sim/testsuite/cr16/misc.exp +++ b/sim/testsuite/cr16/misc.exp @@ -1,10 +1,6 @@ # Miscellaneous CR16 simulator testcases if [istarget cr16*-*-*] { - # Used to locate the `run` program. - global arch - set arch "cr16" - # all machines set all_machs "cr16" diff --git a/sim/testsuite/cris/ChangeLog b/sim/testsuite/cris/ChangeLog index d780e2c..121b6f3 100644 --- a/sim/testsuite/cris/ChangeLog +++ b/sim/testsuite/cris/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * asm/asm.exp (arch): Delete. + * c/c.exp, hw/rv-n-cris/rvc.exp: Likewise. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * asm/asm.exp, c/c.exp, hw/rv-n-cris/rvc.exp: Define arch. diff --git a/sim/testsuite/cris/asm/asm.exp b/sim/testsuite/cris/asm/asm.exp index b8c14c8..415bbf1 100644 --- a/sim/testsuite/cris/asm/asm.exp +++ b/sim/testsuite/cris/asm/asm.exp @@ -16,10 +16,6 @@ # Miscellaneous CRIS simulator testcases in assembly code. if [istarget cris*-*-*] { - # Used to locate the `run` program. - global arch - set arch "cris" - global ASFLAGS_FOR_TARGET # All machines we test and the corresponding assembler option. Needs # update if we build the simulator for crisv0 crisv3 and crisv8 too. diff --git a/sim/testsuite/cris/c/c.exp b/sim/testsuite/cris/c/c.exp index 3d493b7..08ea188 100644 --- a/sim/testsuite/cris/c/c.exp +++ b/sim/testsuite/cris/c/c.exp @@ -19,10 +19,6 @@ if ![istarget cris*-*-*] { return } -# Used to locate the `run` program. -global arch -set arch "cris" - set CFLAGS_FOR_TARGET "-O2" if [istarget cris-*-*] { set mach "crisv10" diff --git a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp index 0a018fa..4e302d2 100644 --- a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp +++ b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp @@ -112,10 +112,6 @@ proc slurp_rv { file } { # The main test loop. if [istarget cris*-*-*] { - # Used to locate the `run` program. - global arch - set arch "cris" - global ASFLAGS_FOR_TARGET set has_rv_and_cris [sim_has_rv_and_cris] global global_as_options @@ -129,8 +125,7 @@ if [istarget cris*-*-*] { set sim [board_info target sim] if [string equal "" $sim] { global objdir - global arch - set rvdummy "$objdir/../$arch/rvdummy" + set rvdummy "$objdir/cris/rvdummy" } else { set rvdummy "[file dirname [board_info target sim]]/rvdummy" } diff --git a/sim/testsuite/d10v/ChangeLog b/sim/testsuite/d10v/ChangeLog index d04d884..f50a384 100644 --- a/sim/testsuite/d10v/ChangeLog +++ b/sim/testsuite/d10v/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/d10v/allinsn.exp b/sim/testsuite/d10v/allinsn.exp index e2e44a2..5f1a131 100644 --- a/sim/testsuite/d10v/allinsn.exp +++ b/sim/testsuite/d10v/allinsn.exp @@ -1,10 +1,6 @@ # d10v simulator testsuite. if [istarget d10v*-*] { - # Used to locate the `run` program. - global arch - set arch "d10v" - # all machines set all_machs "d10v" diff --git a/sim/testsuite/example-synacor/ChangeLog b/sim/testsuite/example-synacor/ChangeLog index 5d45621..bb9b0b4 100644 --- a/sim/testsuite/example-synacor/ChangeLog +++ b/sim/testsuite/example-synacor/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-04-03 Mike Frysinger <vapier@gentoo.org> * add.s, allinsn.exp, and.s, call.s, exit-0.s, gt.s, isa.inc, jmp.s, diff --git a/sim/testsuite/example-synacor/allinsn.exp b/sim/testsuite/example-synacor/allinsn.exp index 7210a61..a73312b 100644 --- a/sim/testsuite/example-synacor/allinsn.exp +++ b/sim/testsuite/example-synacor/allinsn.exp @@ -1,10 +1,6 @@ # Example synacor simulator testsuite. if [istarget *] { - # Used to locate the `run` program. - global arch - set arch "example-synacor" - # All machines. set all_machs "example" diff --git a/sim/testsuite/frv/ChangeLog b/sim/testsuite/frv/ChangeLog index 7a34cf4..aa7409f 100644 --- a/sim/testsuite/frv/ChangeLog +++ b/sim/testsuite/frv/ChangeLog @@ -1,3 +1,9 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + * fr400/allinsn.exp, fr500/allinsn.exp, fr550/allinsn.exp, + interrupts.exp, misc.exp, parallel.exp: Likewise. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp, fr400/allinsn.exp, fr500/allinsn.exp, diff --git a/sim/testsuite/frv/allinsn.exp b/sim/testsuite/frv/allinsn.exp index 2633f30..1781bf0 100644 --- a/sim/testsuite/frv/allinsn.exp +++ b/sim/testsuite/frv/allinsn.exp @@ -1,10 +1,6 @@ # FRV simulator testsuite. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "frv fr500 fr550 fr400 fr405 fr450" set cpu_option -mcpu diff --git a/sim/testsuite/frv/fr400/allinsn.exp b/sim/testsuite/frv/fr400/allinsn.exp index ea5846f..03ccbd6 100644 --- a/sim/testsuite/frv/fr400/allinsn.exp +++ b/sim/testsuite/frv/fr400/allinsn.exp @@ -1,10 +1,6 @@ # FRV simulator testsuite. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "fr400 fr405 fr450 fr550" set cpu_option -mcpu diff --git a/sim/testsuite/frv/fr500/allinsn.exp b/sim/testsuite/frv/fr500/allinsn.exp index 40caa63..fa03797 100644 --- a/sim/testsuite/frv/fr500/allinsn.exp +++ b/sim/testsuite/frv/fr500/allinsn.exp @@ -1,10 +1,6 @@ # FRV simulator testsuite. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "frv fr500 fr550" set cpu_option -mcpu diff --git a/sim/testsuite/frv/fr550/allinsn.exp b/sim/testsuite/frv/fr550/allinsn.exp index 8768a67..c0e373a 100644 --- a/sim/testsuite/frv/fr550/allinsn.exp +++ b/sim/testsuite/frv/fr550/allinsn.exp @@ -1,10 +1,6 @@ # FRV simulator testsuite. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "fr550" set cpu_option -mcpu diff --git a/sim/testsuite/frv/interrupts.exp b/sim/testsuite/frv/interrupts.exp index d1f7628..6b2c84a 100644 --- a/sim/testsuite/frv/interrupts.exp +++ b/sim/testsuite/frv/interrupts.exp @@ -1,10 +1,6 @@ # FRV simulator testsuite. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "frv fr500 fr550 fr400" set cpu_option -mcpu diff --git a/sim/testsuite/frv/misc.exp b/sim/testsuite/frv/misc.exp index d9c80a5..fb394bb 100644 --- a/sim/testsuite/frv/misc.exp +++ b/sim/testsuite/frv/misc.exp @@ -1,10 +1,6 @@ # Miscellaneous FRV simulator testcases. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "frv fr500 fr550 fr400 fr405 fr450" set cpu_option -mcpu diff --git a/sim/testsuite/frv/parallel.exp b/sim/testsuite/frv/parallel.exp index a883b98..612a1bf 100644 --- a/sim/testsuite/frv/parallel.exp +++ b/sim/testsuite/frv/parallel.exp @@ -1,10 +1,6 @@ # FRV simulator testsuite. if [istarget frv*-*] { - # Used to locate the `run` program. - global arch - set arch "frv" - # all machines set all_machs "frv fr500 fr550 fr400" set cpu_option -mcpu diff --git a/sim/testsuite/ft32/ChangeLog b/sim/testsuite/ft32/ChangeLog index d7aba74..346ac74 100644 --- a/sim/testsuite/ft32/ChangeLog +++ b/sim/testsuite/ft32/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/ft32/allinsn.exp b/sim/testsuite/ft32/allinsn.exp index 50827a5..730b422 100644 --- a/sim/testsuite/ft32/allinsn.exp +++ b/sim/testsuite/ft32/allinsn.exp @@ -1,10 +1,6 @@ # ft32 simulator testsuite if [istarget ft32-*] { - # Used to locate the `run` program. - global arch - set arch "ft32" - # all machines set all_machs "ft32" diff --git a/sim/testsuite/h8300/ChangeLog b/sim/testsuite/h8300/ChangeLog index 98020b8..3a91705 100644 --- a/sim/testsuite/h8300/ChangeLog +++ b/sim/testsuite/h8300/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/h8300/allinsn.exp b/sim/testsuite/h8300/allinsn.exp index 5355bf5..68468f6 100644 --- a/sim/testsuite/h8300/allinsn.exp +++ b/sim/testsuite/h8300/allinsn.exp @@ -1,10 +1,6 @@ # Hitachi H8/300 (h, s, sx) simulator testsuite if {[istarget h8300*-*-*] || [istarget h8sx*-*-*]} then { - # Used to locate the `run` program. - global arch - set arch "h8300" - set all_machs "h8300 h8300h h8300s h8sx" foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] { diff --git a/sim/testsuite/iq2000/ChangeLog b/sim/testsuite/iq2000/ChangeLog index 8eb2490..4c94a66 100644 --- a/sim/testsuite/iq2000/ChangeLog +++ b/sim/testsuite/iq2000/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/iq2000/allinsn.exp b/sim/testsuite/iq2000/allinsn.exp index 96d5843..38eee9b 100644 --- a/sim/testsuite/iq2000/allinsn.exp +++ b/sim/testsuite/iq2000/allinsn.exp @@ -1,10 +1,6 @@ # iq2000 simulator testsuite if [istarget iq2000-*] { - # Used to locate the `run` program. - global arch - set arch "iq2000" - # all machines set all_machs "iq2000" diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index e1254a3..1b40216 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -48,6 +48,22 @@ proc sim_compile { source dest type options } { return $result } +# Find the path to the simulator for executing. +proc sim_tool_path {} { + global sim_path + set sim "$sim_path" + if [string equal "" $sim] { + global objdir + global subdir + set arch "$subdir" + while { [file dirname $arch] != "." } { + set arch [file dirname $arch] + } + return "$objdir/$arch/run" + } + return "$sim" +} + # Run a program on the simulator. # Required by dejagnu (at least ${tool}_run used to be). # @@ -98,16 +114,7 @@ proc sim_run { prog sim_opts prog_opts redir options } { verbose "testcase timeout is set to $testcase_timeout" 1 - set sim [board_info target sim] - if [string equal "" $sim] { - # Special case the simulator. These tests are designed to - # be run inside of the simulator, not on the native host. - # So if the sim target isn't set, default to the target run. - # These global variables come from generated site.exp. - global objdir - global arch - set sim "$objdir/$arch/run" - } + set sim [sim_tool_path] if [is_remote host] { set prog [remote_download host $prog] diff --git a/sim/testsuite/lm32/ChangeLog b/sim/testsuite/lm32/ChangeLog index 8eb2490..4c94a66 100644 --- a/sim/testsuite/lm32/ChangeLog +++ b/sim/testsuite/lm32/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/lm32/allinsn.exp b/sim/testsuite/lm32/allinsn.exp index ae7c141..6174498 100644 --- a/sim/testsuite/lm32/allinsn.exp +++ b/sim/testsuite/lm32/allinsn.exp @@ -1,10 +1,6 @@ # lm32 simulator testsuite if [istarget lm32-*] { - # Used to locate the `run` program. - global arch - set arch "lm32" - # all machines set all_machs "lm32" diff --git a/sim/testsuite/m32c/ChangeLog b/sim/testsuite/m32c/ChangeLog index ce68cc3..8172521 100644 --- a/sim/testsuite/m32c/ChangeLog +++ b/sim/testsuite/m32c/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/m32c/allinsn.exp b/sim/testsuite/m32c/allinsn.exp index b09b505..fb5ccca 100644 --- a/sim/testsuite/m32c/allinsn.exp +++ b/sim/testsuite/m32c/allinsn.exp @@ -2,10 +2,6 @@ # TODO: Add support for .c tests. if [istarget m32c*-*-*] { - # Used to locate the `run` program. - global arch - set arch "m32c" - # all machines set all_machs "m32c" diff --git a/sim/testsuite/m32r/ChangeLog b/sim/testsuite/m32r/ChangeLog index e855c1a..6e6facb 100644 --- a/sim/testsuite/m32r/ChangeLog +++ b/sim/testsuite/m32r/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + * misc.exp: Likewise. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp, misc.exp: Define arch. diff --git a/sim/testsuite/m32r/allinsn.exp b/sim/testsuite/m32r/allinsn.exp index a800e78..17a8618 100644 --- a/sim/testsuite/m32r/allinsn.exp +++ b/sim/testsuite/m32r/allinsn.exp @@ -1,10 +1,6 @@ # M32R simulator testsuite. if [istarget m32r*-*-*] { - # Used to locate the `run` program. - global arch - set arch "m32r" - # all machines set all_machs "m32r" diff --git a/sim/testsuite/m32r/misc.exp b/sim/testsuite/m32r/misc.exp index e571c2e..6c624e7 100644 --- a/sim/testsuite/m32r/misc.exp +++ b/sim/testsuite/m32r/misc.exp @@ -1,10 +1,6 @@ # Miscellaneous M32R simulator testcases if [istarget m32r*-*-*] { - # Used to locate the `run` program. - global arch - set arch "m32r" - # all machines set all_machs "m32r" diff --git a/sim/testsuite/m68hc11/ChangeLog b/sim/testsuite/m68hc11/ChangeLog index 8eb2490..4c94a66 100644 --- a/sim/testsuite/m68hc11/ChangeLog +++ b/sim/testsuite/m68hc11/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/m68hc11/allinsn.exp b/sim/testsuite/m68hc11/allinsn.exp index 0e9b51e..db0cbd5 100644 --- a/sim/testsuite/m68hc11/allinsn.exp +++ b/sim/testsuite/m68hc11/allinsn.exp @@ -1,10 +1,6 @@ # m68hc11 simulator testsuite if [istarget m68hc11-*] { - # Used to locate the `run` program. - global arch - set arch "m68hc11" - # all machines set all_machs "m68hc11" diff --git a/sim/testsuite/mcore/ChangeLog b/sim/testsuite/mcore/ChangeLog index 18a2292..78f0769 100644 --- a/sim/testsuite/mcore/ChangeLog +++ b/sim/testsuite/mcore/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/mcore/allinsn.exp b/sim/testsuite/mcore/allinsn.exp index ecc934b..5921cfc 100644 --- a/sim/testsuite/mcore/allinsn.exp +++ b/sim/testsuite/mcore/allinsn.exp @@ -1,10 +1,6 @@ # mcore simulator testsuite if [istarget mcore-*] { - # Used to locate the `run` program. - global arch - set arch "mcore" - # all machines set all_machs "mcore" diff --git a/sim/testsuite/microblaze/ChangeLog b/sim/testsuite/microblaze/ChangeLog index 5808b63..b282fc3 100644 --- a/sim/testsuite/microblaze/ChangeLog +++ b/sim/testsuite/microblaze/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/microblaze/allinsn.exp b/sim/testsuite/microblaze/allinsn.exp index 5f5a447..f756914 100644 --- a/sim/testsuite/microblaze/allinsn.exp +++ b/sim/testsuite/microblaze/allinsn.exp @@ -1,10 +1,6 @@ # microblaze simulator testsuite if [istarget microblaze-*] { - # Used to locate the `run` program. - global arch - set arch "microblaze" - # all machines set all_machs "microblaze" diff --git a/sim/testsuite/mips/ChangeLog b/sim/testsuite/mips/ChangeLog index feedcd3..b64f691 100644 --- a/sim/testsuite/mips/ChangeLog +++ b/sim/testsuite/mips/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * basic.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * basic.exp: Define arch. diff --git a/sim/testsuite/mips/basic.exp b/sim/testsuite/mips/basic.exp index 2eff923..352b3b4 100644 --- a/sim/testsuite/mips/basic.exp +++ b/sim/testsuite/mips/basic.exp @@ -42,10 +42,6 @@ proc run_sim_tests { name requested_machs { requested_micromips_machs "" } } { # Only test mips*-*-elf (e.g., no mips*-*-linux) if {[istarget mips*-*-elf]} { - # Used to locate the `run` program. - global arch - set arch "mips" - set dspmodels "" set mdmxmodels "" set micromipsmodels "" diff --git a/sim/testsuite/mn10300/ChangeLog b/sim/testsuite/mn10300/ChangeLog index 8eb2490..4c94a66 100644 --- a/sim/testsuite/mn10300/ChangeLog +++ b/sim/testsuite/mn10300/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/mn10300/allinsn.exp b/sim/testsuite/mn10300/allinsn.exp index 7166aef..f8431e7 100644 --- a/sim/testsuite/mn10300/allinsn.exp +++ b/sim/testsuite/mn10300/allinsn.exp @@ -1,10 +1,6 @@ # mn10300 simulator testsuite if [istarget mn10300-*] { - # Used to locate the `run` program. - global arch - set arch "mn10300" - # all machines set all_machs "mn10300" diff --git a/sim/testsuite/moxie/ChangeLog b/sim/testsuite/moxie/ChangeLog index 8eb2490..4c94a66 100644 --- a/sim/testsuite/moxie/ChangeLog +++ b/sim/testsuite/moxie/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/moxie/allinsn.exp b/sim/testsuite/moxie/allinsn.exp index 241e675..1a6af8b 100644 --- a/sim/testsuite/moxie/allinsn.exp +++ b/sim/testsuite/moxie/allinsn.exp @@ -1,10 +1,6 @@ # moxie simulator testsuite if [istarget moxie-*] { - # Used to locate the `run` program. - global arch - set arch "moxie" - # all machines set all_machs "moxie" diff --git a/sim/testsuite/msp430/ChangeLog b/sim/testsuite/msp430/ChangeLog index df36ad6..ebb42c5 100644 --- a/sim/testsuite/msp430/ChangeLog +++ b/sim/testsuite/msp430/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/msp430/allinsn.exp b/sim/testsuite/msp430/allinsn.exp index 8303029..affa8ae 100644 --- a/sim/testsuite/msp430/allinsn.exp +++ b/sim/testsuite/msp430/allinsn.exp @@ -1,10 +1,6 @@ # msp430 simulator testsuite if [istarget msp430-*] { - # Used to locate the `run` program. - global arch - set arch "msp430" - # all machines set all_machs "msp430" diff --git a/sim/testsuite/or1k/ChangeLog b/sim/testsuite/or1k/ChangeLog index f4bc2e1..b105c0f 100644 --- a/sim/testsuite/or1k/ChangeLog +++ b/sim/testsuite/or1k/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * alltests.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * alltests.exp: Define arch. diff --git a/sim/testsuite/or1k/alltests.exp b/sim/testsuite/or1k/alltests.exp index 98c1345..365f391 100644 --- a/sim/testsuite/or1k/alltests.exp +++ b/sim/testsuite/or1k/alltests.exp @@ -16,10 +16,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. if [istarget or1k*-*-*] { - # Used to locate the `run` program. - global arch - set arch "or1k" - set all_machs "or1k" global global_ld_options diff --git a/sim/testsuite/pru/ChangeLog b/sim/testsuite/pru/ChangeLog index c6a0af5..a10ff0b 100644 --- a/sim/testsuite/pru/ChangeLog +++ b/sim/testsuite/pru/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/pru/allinsn.exp b/sim/testsuite/pru/allinsn.exp index c0d5ce9..d147f73 100644 --- a/sim/testsuite/pru/allinsn.exp +++ b/sim/testsuite/pru/allinsn.exp @@ -19,10 +19,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. if [istarget pru-*] { - # Used to locate the `run` program. - global arch - set arch "pru" - # all machines set all_machs "pru" diff --git a/sim/testsuite/riscv/ChangeLog b/sim/testsuite/riscv/ChangeLog index f982ea8..9d7feba 100644 --- a/sim/testsuite/riscv/ChangeLog +++ b/sim/testsuite/riscv/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/riscv/allinsn.exp b/sim/testsuite/riscv/allinsn.exp index 5701391..03bec1b 100644 --- a/sim/testsuite/riscv/allinsn.exp +++ b/sim/testsuite/riscv/allinsn.exp @@ -1,10 +1,6 @@ # RISC-V simulator testsuite. if [istarget riscv*-*] { - # Used to locate the `run` program. - global arch - set arch "riscv" - # all machines set all_machs "riscv" diff --git a/sim/testsuite/sh/ChangeLog b/sim/testsuite/sh/ChangeLog index 3351f5f..0e1f200 100644 --- a/sim/testsuite/sh/ChangeLog +++ b/sim/testsuite/sh/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsn.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsn.exp: Define arch. diff --git a/sim/testsuite/sh/allinsn.exp b/sim/testsuite/sh/allinsn.exp index 235a40c..40d1392 100644 --- a/sim/testsuite/sh/allinsn.exp +++ b/sim/testsuite/sh/allinsn.exp @@ -13,10 +13,6 @@ foreach opt $board_variant_list { } if [istarget sh-*elf] { - # Used to locate the `run` program. - global arch - set arch "sh" - run_sim_test add.s $all run_sim_test and.s $all run_sim_test bandor.s sh diff --git a/sim/testsuite/v850/ChangeLog b/sim/testsuite/v850/ChangeLog index 24933c5..5e9ddbe 100644 --- a/sim/testsuite/v850/ChangeLog +++ b/sim/testsuite/v850/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Mike Frysinger <vapier@gentoo.org> + + * allinsns.exp (arch): Delete. + 2021-02-13 Mike Frysinger <vapier@gentoo.org> * allinsns.exp: Define arch. diff --git a/sim/testsuite/v850/allinsns.exp b/sim/testsuite/v850/allinsns.exp index 4c3bc08..93dcffc 100644 --- a/sim/testsuite/v850/allinsns.exp +++ b/sim/testsuite/v850/allinsns.exp @@ -3,10 +3,6 @@ if [istarget v850*-*] { global opt - # Used to locate the `run` program. - global arch - set arch "v850" - # all machines switch -regexp -- $opt { .*v850e.* { |