public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: cris: always search for local rvdummy tool
@ 2021-11-27  6:26 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-11-27  6:26 UTC (permalink / raw)
  To: gdb-patches

If the board info sets the sim to a basename that is found via $PATH
(which is the default dejagnu behavior), the logic here to use its
dirname to find rvdummy fails because it looks for `./rvdummy`.  So
switch it to always use the local build of rvdummy which is the one
we want to be testing against in the first place.

If we get a request for testing against a different setup, we can
figure out & document the needs at that point, and then setup some
config knobs to control it.
---
 sim/testsuite/cris/hw/rv-n-cris/rvc.exp | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
index 7c136db95309..905a2da92ece 100644
--- a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
+++ b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
@@ -122,14 +122,8 @@ if [istarget cris*-*-*] {
     global SIMFLAGS_FOR_TARGET
     set has_rv_and_cris [sim_has_rv_and_cris]
 
-    # See the logic in sim-defs.exp for more details.
-    set sim [board_info target sim]
-    if [string equal "" $sim] {
-	global builddir
-	set rvdummy "$builddir/cris/rvdummy"
-    } else {
-	set rvdummy "[file dirname [board_info target sim]]/rvdummy"
-    }
+    global builddir
+    set rvdummy "$builddir/cris/rvdummy"
 
     # All machines we test and the corresponding assembler option.
     # We'll only ever test v10 and higher here.
-- 
2.33.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-27  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27  6:26 [PATCH] sim: cris: always search for local rvdummy tool Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).