aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/mips
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-04 09:01:09 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-08 00:45:07 -0400
commit23cb7bac66bf6a24e71390ce7ead5d327ae85439 (patch)
treefeb5cb1d9c3ddb72b94c41cf32492a5af95dab39 /sim/testsuite/mips
parent0592e80bcf1bbab2fbbb110ea395f9608e4f594c (diff)
downloadgdb-23cb7bac66bf6a24e71390ce7ead5d327ae85439.zip
gdb-23cb7bac66bf6a24e71390ce7ead5d327ae85439.tar.gz
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/testsuite/mips')
-rw-r--r--sim/testsuite/mips/ChangeLog4
-rw-r--r--sim/testsuite/mips/basic.exp4
2 files changed, 4 insertions, 4 deletions
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 ""