+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.
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# AArch64 simulator testsuite
if [istarget aarch64*-*] {
- # Used to locate the `run` program.
- global arch
- set arch "aarch64"
-
# all machines
set all_machs "aarch64"
+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,
# ARM simulator testsuite.
if { [istarget arm*-*-*] } {
- # 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*-*-*] } {
- # Used to locate the `run` program.
- global arch
- set arch "arm"
-
# all machines
set all_machs "xscale"
# Miscellaneous ARM simulator testcases
if { [istarget arm*-*-*] } {
- # Used to locate the `run` program.
- global arch
- set arch "arm"
-
# all machines
set all_machs "arm7tdmi"
# ARM simulator testsuite.
if { [istarget arm*-*-*] } {
- # Used to locate the `run` program.
- global arch
- set arch "arm"
-
# all machines
set all_machs "arm7tdmi"
# XSCALE simulator testsuite.
if { [istarget arm*-*-*] } {
- # Used to locate the `run` program.
- global arch
- set arch "arm"
-
# all machines
set all_machs "xscale"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# avr simulator testsuite
if [istarget avr-*] {
- # Used to locate the `run` program.
- global arch
- set arch "avr"
-
# all machines
set all_machs "avr"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# 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-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# 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-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.
# CR16 simulator testsuite.
if [istarget cr16*-*-*] {
- # Used to locate the `run` program.
- global arch
- set arch "cr16"
-
# all machines
set all_machs "cr16"
# Miscellaneous CR16 simulator testcases
if [istarget cr16*-*-*] {
- # Used to locate the `run` program.
- global arch
- set arch "cr16"
-
# all machines
set all_machs "cr16"
+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.
# 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
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"
}
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# d10v simulator testsuite.
if [istarget d10v*-*] {
- # Used to locate the `run` program.
- global arch
- set arch "d10v"
-
# all machines
set all_machs "d10v"
+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,
# Example synacor simulator testsuite.
if [istarget *] {
- # Used to locate the `run` program.
- global arch
- set arch "example-synacor"
-
# All machines.
set all_machs "example"
+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,
# 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
# 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
# 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
# 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
# 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
# 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
# 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
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# ft32 simulator testsuite
if [istarget ft32-*] {
- # Used to locate the `run` program.
- global arch
- set arch "ft32"
-
# all machines
set all_machs "ft32"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# 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-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# iq2000 simulator testsuite
if [istarget iq2000-*] {
- # Used to locate the `run` program.
- global arch
- set arch "iq2000"
-
# all machines
set all_machs "iq2000"
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).
#
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]
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# lm32 simulator testsuite
if [istarget lm32-*] {
- # Used to locate the `run` program.
- global arch
- set arch "lm32"
-
# all machines
set all_machs "lm32"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# 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-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.
# M32R simulator testsuite.
if [istarget m32r*-*-*] {
- # Used to locate the `run` program.
- global arch
- set arch "m32r"
-
# all machines
set all_machs "m32r"
# Miscellaneous M32R simulator testcases
if [istarget m32r*-*-*] {
- # Used to locate the `run` program.
- global arch
- set arch "m32r"
-
# all machines
set all_machs "m32r"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# m68hc11 simulator testsuite
if [istarget m68hc11-*] {
- # Used to locate the `run` program.
- global arch
- set arch "m68hc11"
-
# all machines
set all_machs "m68hc11"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# mcore simulator testsuite
if [istarget mcore-*] {
- # Used to locate the `run` program.
- global arch
- set arch "mcore"
-
# all machines
set all_machs "mcore"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# microblaze simulator testsuite
if [istarget microblaze-*] {
- # Used to locate the `run` program.
- global arch
- set arch "microblaze"
-
# all machines
set all_machs "microblaze"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * basic.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* basic.exp: Define arch.
# 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 ""
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# mn10300 simulator testsuite
if [istarget mn10300-*] {
- # Used to locate the `run` program.
- global arch
- set arch "mn10300"
-
# all machines
set all_machs "mn10300"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# moxie simulator testsuite
if [istarget moxie-*] {
- # Used to locate the `run` program.
- global arch
- set arch "moxie"
-
# all machines
set all_machs "moxie"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# msp430 simulator testsuite
if [istarget msp430-*] {
- # Used to locate the `run` program.
- global arch
- set arch "msp430"
-
# all machines
set all_machs "msp430"
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * alltests.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* alltests.exp: Define arch.
# 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
+2021-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# 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-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
# 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-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp: Define arch.
}
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-04-08 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsns.exp (arch): Delete.
+
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* allinsns.exp: Define arch.
if [istarget v850*-*] {
global opt
- # Used to locate the `run` program.
- global arch
- set arch "v850"
-
# all machines
switch -regexp -- $opt {
.*v850e.* {