sim: cris: set up sane default path to rvdummy
authorMike Frysinger <vapier@gentoo.org>
Fri, 25 Dec 2015 10:51:46 +0000 (05:51 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 25 Dec 2015 10:51:46 +0000 (05:51 -0500)
Much like we autodetect the path to the run program when there is none
set explicitly, do the same for the rvdummy program.  Otherwise the
default make check fails to execute the helper properly.

sim/testsuite/sim/cris/ChangeLog
sim/testsuite/sim/cris/hw/rv-n-cris/rvc.exp

index 3304f22bcc70b96e27792a702f001112be1a46ce..22fb88a09a3c554277320e6ace43dbc4e08104da 100644 (file)
@@ -1,3 +1,7 @@
+2015-12-25  Mike Frysinger  <vapier@gentoo.org>
+
+       * hw/rv-n-cris/rvc.exp (rvdummy): Set up sane default.
+
 2012-03-24  Mike Frysinger  <vapier@gentoo.org>
 
        * c/clone5.c: Update output to ignore decoded signal string.
index 2b792da961180fee1881f8ea14fad0603b49c37e..1c172afa41fb375243b6b0b09e0627484778e399 100644 (file)
@@ -120,7 +120,16 @@ if [istarget cris*-*-*] {
 
     set saved_global_sim_options $global_sim_options
     set saved_global_ld_options $global_ld_options
-    set rvdummy "[file dirname [board_info target sim]]/rvdummy"
+
+    # See the logic in sim-defs.exp for more details.
+    set sim [board_info target sim]
+    if [string equal "" $sim] {
+       global objdir
+       global arch
+       set rvdummy "$objdir/../$arch/rvdummy"
+    } else {
+       set rvdummy "[file dirname [board_info target sim]]/rvdummy"
+    }
 
     # All machines we test and the corresponding assembler option.
     # We'll only ever test v10 and higher here.
This page took 0.024076 seconds and 4 git commands to generate.