+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.tgt: Delete call to AC_SUBST(sim_arch).
+       * configure: Regenerate.
+
 2021-02-13  Mike Frysinger  <vapier@gentoo.org>
 
        * README-HACKING: Replace sinclude with AC_CONFIG_MACRO_DIRS in
 
 enable_option_checking=no
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
-sim_arch
 subdirs
 CFLAGS_FOR_BUILD
 CC_FOR_BUILD
        ;;
 esac
 
-
   if test "$sim_igen" = yes; then
     subdirs="$subdirs igen"
 
 
        sim_igen=yes
        ;;
 esac
-AC_SUBST(sim_arch)
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (arch): Delete.
+       (site.exp): Do not output $arch.
+
 2021-02-04  Mike Frysinger  <vapier@gentoo.org>
 
        * riscv/: New directory.
 
 target_alias = @target_alias@
 program_transform_name = @program_transform_name@
 
-arch = @sim_arch@
-
 SHELL = /bin/sh
 SUBDIRS = @subdirs@
 RPATH_ENVVAR = @RPATH_ENVVAR@
        @echo '# edit the last section' >> $@-t
        @echo 'set srcdir $(srcdir)' >> $@-t
        @echo 'set objdir' `pwd` >> $@-t
-       @echo 'set arch $(arch)' >> $@-t
        @echo 'set build_alias $(build_alias)' >> $@-t
        @echo 'set build_triplet $(build_canonical)' >> $@-t
        @echo 'set host_alias $(host_alias)' >> $@-t
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2017-04-22  Jim Wilson  <jim.wilson@linaro.org>
 
        * fcvtz.s, fstur.s, ldn_single.s, ldnr.s, mla.s, mls.s, uzp.s: Align
 
 # AArch64 simulator testsuite
 
 if [istarget aarch64*-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "aarch64"
+
     # all machines
     set all_machs "aarch64"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp, iwmmxt/iwmmxt.exp, misc.exp, thumb/allthumb.ex,
+       xscale/xscale.exp: Define arch.
+
 2013-05-07  Jayant Sonar  <jayant.sonar@kpitcummins.com>
            Kaushik Phatak <Kaushik.Phatak@kpitcummins.com>
 
 
 # ARM simulator testsuite.
 
 if { [istarget arm*-*-*] } {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "arm"
 
     # all machines
     set all_machs "xscale"
 
 # Intel(r) Wireless MMX(tm) technology simulator testsuite.
 
 if { [istarget arm*-*-*] } {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "arm"
 
     # all machines
     set all_machs "xscale"
 
 # Miscellaneous ARM simulator testcases
 
 if { [istarget arm*-*-*] } {
-    # load support procs
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "arm"
 
     # all machines
     set all_machs "arm7tdmi"
 
 # ARM simulator testsuite.
 
 if { [istarget arm*-*-*] } {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "arm"
 
     # all machines
     set all_machs "arm7tdmi"
 
 # XSCALE simulator testsuite.
 
 if { [istarget arm*-*-*] } {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "arm"
 
     # all machines
     set all_machs "xscale"
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-03-29  Mike Frysinger  <vapier@gentoo.org>
 
        * testutils.inc (start): Change to _start and add global markings.
 
 # avr simulator testsuite
 
 if [istarget avr-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "avr"
+
     # all machines
     set all_machs "avr"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2021-01-18  Mike Frysinger  <vapier@gentoo.org>
 
        * s21.s: Delete accidental copyright line.
 
 # 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"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2020-09-08  David Faust  <david.faust@oracle.com>
 
        * alu.s: Correct div and mod tests.
 
 # 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"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp, misc.exp: Define arch.
+
 2015-12-24  Mike Frysinger  <vapier@gentoo.org>
 
        * allinsn.exp: Append --load-vma to global_sim_options.
 
 # CR16 simulator testsuite.
 
 if [istarget cr16*-*-*] {
-    # load support procs
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "cr16"
 
     # all machines
     set all_machs "cr16"
 
 # Miscellaneous CR16 simulator testcases
 
 if [istarget cr16*-*-*] {
-    # load support procs
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "cr16"
 
     # all machines
     set all_machs "cr16"
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * asm/asm.exp, c/c.exp, hw/rv-n-cris/rvc.exp: Define arch.
+
 2021-01-15  Mike Frysinger  <vapier@gentoo.org>
 
        * c/c.exp: Change sim_run return to return_code.  Set status to
 
 # 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.
 
     return
 }
 
+# Used to locate the `run` program.
+global arch
+set arch "cris"
+
 set CFLAGS_FOR_TARGET "-O2"
 if [istarget cris-*-*] {
     set mach "crisv10"
 
 # 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
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2021-01-15  Mike Frysinger  <vapier@gentoo.org>
 
        * allinsn.exp: New file.
 
        * Makefile.in (RUN_FOR_TARGET): Look for simulator in d10v
        directory.
-
 
 # d10v simulator testsuite.
 
 if [istarget d10v*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "d10v"
+
     # all machines
     set all_machs "d10v"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp, fr400/allinsn.exp, fr500/allinsn.exp,
+       fr550/allinsn.exp, interrupts.exp, misc.exp,
+       parallel.exp: Define arch.
+
 2021-01-15  Mike Frysinger  <vapier@gentoo.org>
 
        * cache.ms: New testcase from ../../frv-elf/.
 
 # FRV simulator testsuite.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # 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
 
 # FRV simulator testsuite.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "frv"
+
     # all machines
     set all_machs "fr400 fr405 fr450 fr550"
     set cpu_option -mcpu
 
 # FRV simulator testsuite.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "frv"
+
     # all machines
     set all_machs "frv fr500 fr550"
     set cpu_option -mcpu
 
 # FRV simulator testsuite.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "frv"
+
     # all machines
     set all_machs "fr550"
     set cpu_option -mcpu
 
 # FRV simulator testsuite.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "frv"
+
     # all machines
     set all_machs "frv fr500 fr550 fr400"
     set cpu_option -mcpu
 
 # Miscellaneous FRV simulator testcases.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # 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
 
 # FRV simulator testsuite.
 
 if [istarget frv*-*] {
-    # load support procs (none yet)
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "frv"
+
     # all machines
     set all_machs "frv fr500 fr550 fr400"
     set cpu_option -mcpu
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-10-12  James Bowman  <james.bowman@ftdichip.com>
 
        * basic.s: Add test for memory size link parameters.
 
 # ft32 simulator testsuite
 
 if [istarget ft32-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "ft32"
+
     # all machines
     set all_machs "ft32"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2021-01-05  Mike Frysinger  <vapier@gentoo.org>
 
        * rotl.s (mach): Set to "h8300s h8sx".
 
 # 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]] {
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-04-05  Mike Frysinger  <vapier@gentoo.org>
 
        * pass.s, allinsn.exp, testutils.inc: New files.
 
 # iq2000 simulator testsuite
 
 if [istarget iq2000-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "iq2000"
+
     # all machines
     set all_machs "iq2000"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-04-05  Mike Frysinger  <vapier@gentoo.org>
 
        * pass.s, allinsn.exp, testutils.inc: New files.
 
 # lm32 simulator testsuite
 
 if [istarget lm32-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "lm32"
+
     # all machines
     set all_machs "lm32"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-11-14  Mike Frysinger  <vapier@gentoo.org>
 
        * allinsn.exp: New file.
 
 # 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"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp, misc.exp: Define arch.
+
 2021-01-15  Mike Frysinger  <vapier@gentoo.org>
 
        * exit47.ms: New testcase from ../../m32r-elf/.
 
 # M32R simulator testsuite.
 
 if [istarget m32r*-*-*] {
-    # load support procs
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "m32r"
 
     # all machines
     set all_machs "m32r"
 
 # Miscellaneous M32R simulator testcases
 
 if [istarget m32r*-*-*] {
-    # load support procs
-    # load_lib cgen.exp
+    # Used to locate the `run` program.
+    global arch
+    set arch "m32r"
 
     # all machines
     set all_machs "m32r"
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-04-05  Mike Frysinger  <vapier@gentoo.org>
 
        * pass.s, allinsn.exp, testutils.inc: New files.
 
 # m68hc11 simulator testsuite
 
 if [istarget m68hc11-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "m68hc11"
+
     # all machines
     set all_machs "m68hc11"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-11-15  Mike Frysinger  <vapier@gentoo.org>
 
        * fail.s: New test.
 
 # mcore simulator testsuite
 
 if [istarget mcore-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "mcore"
+
     # all machines
     set all_machs "mcore"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-03-29  Mike Frysinger  <vapier@gentoo.org>
 
        * pass.s, allinsn.exp, testutils.inc: New files.
 
 # microblaze simulator testsuite
 
 if [istarget microblaze-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "microblaze"
+
     # all machines
     set all_machs "microblaze"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * basic.exp: Define arch.
+
 2016-01-06  Joel Brobecker  <brobecker@adacore.com>
 
        * hilo-hazard-4.s: Change copyright ownder to FSF.
 
 
 # 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 ""
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-04-05  Mike Frysinger  <vapier@gentoo.org>
 
        * pass.s, allinsn.exp, testutils.inc: New files.
 
 # mn10300 simulator testsuite
 
 if [istarget mn10300-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "mn10300"
+
     # all machines
     set all_machs "mn10300"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2015-04-05  Mike Frysinger  <vapier@gentoo.org>
 
        * pass.s, allinsn.exp, testutils.inc: New files.
 
 # moxie simulator testsuite
 
 if [istarget moxie-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "moxie"
+
     # all machines
     set all_machs "moxie"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2020-08-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
        * mpyull_hwmult.s: New test.
 
 # msp430 simulator testsuite
 
 if [istarget msp430-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "msp430"
+
     # all machines
     set all_machs "msp430"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * alltests.exp: Define arch.
+
 2019-06-13  Stafford Horne  <shorne@gmail.com>
 
        * fpu-unordered.S: New file.
 
 # 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"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2020-11-12  Dimitar Dimitrov  <dimitar@dinux.eu>
 
        * lmbd.s: New test.
 
 # 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"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2021-02-04  Mike Frysinger  <vapier@gentoo.org>
 
        * allinsn.exp, pass.s, testutils.inc: New files.
 
 # RISC-V simulator testsuite.
 
 if [istarget riscv*-*] {
+    # Used to locate the `run` program.
+    global arch
+    set arch "riscv"
+
     # all machines
     set all_machs "riscv"
 
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsn.exp: Define arch.
+
 2004-09-13  DJ Delorie  <dj@redhat.com>
 
        * sim/sh/allinsn.exp: Set global_as_options and
 
 }
 
 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
 
+2021-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * allinsns.exp: Define arch.
+
 2008-02-05  DJ Delorie  <dj@redhat.com>
 
        * .: New directory.
 
 if [istarget v850*-*] {
     global opt
 
-    # load support procs (none yet)
-    # load_lib cgen.exp
-    # all machines
+    # Used to locate the `run` program.
+    global arch
+    set arch "v850"
 
+    # all machines
     switch -regexp -- $opt {
        .*v850e.* {
            set all_machs "v850e"
 #    }
 #    puts [format "%-30s %s" $var "[set ::$var]"]
 #}
-       
\ No newline at end of file