summaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/hw
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/cris/hw
parent0592e80bcf1bbab2fbbb110ea395f9608e4f594c (diff)
downloadbinutils-gdb-23cb7bac66bf6a24e71390ce7ead5d327ae85439.tar.gz
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/cris/hw')
-rw-r--r--sim/testsuite/cris/hw/rv-n-cris/rvc.exp7
1 files changed, 1 insertions, 6 deletions
diff --git a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
index 0a018fa4b88..4e302d2238f 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"
}