aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/or1k
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-15 23:23:46 -0500
committerMike Frysinger <vapier@gentoo.org>2021-02-13 12:14:25 -0500
commitb0dcd7d832e33240a9c8c1ed3d8d4636acfd8c4f (patch)
tree34ebe2fe8d8242fda066324c3039ffc5fb816398 /sim/testsuite/or1k
parent9ee455572d97fd8ce458a6df523c447e85dc3edf (diff)
downloadgdb-b0dcd7d832e33240a9c8c1ed3d8d4636acfd8c4f.zip
gdb-b0dcd7d832e33240a9c8c1ed3d8d4636acfd8c4f.tar.gz
gdb-b0dcd7d832e33240a9c8c1ed3d8d4636acfd8c4f.tar.bz2
sim: testsuite: push $arch out to targets
This is needed to move to automake & its dejagnu-provided logic, and eventually by the unified sim logic. The $arch is used only to figure out which `run` program to use when running tests, and as we move to a single top-level build, we can delete this and use sim/run directly.
Diffstat (limited to 'sim/testsuite/or1k')
-rw-r--r--sim/testsuite/or1k/ChangeLog4
-rw-r--r--sim/testsuite/or1k/alltests.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/testsuite/or1k/ChangeLog b/sim/testsuite/or1k/ChangeLog
index f562380..f4bc2e1 100644
--- a/sim/testsuite/or1k/ChangeLog
+++ b/sim/testsuite/or1k/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-13 Mike Frysinger <vapier@gentoo.org>
+
+ * alltests.exp: Define arch.
+
2019-06-13 Stafford Horne <shorne@gmail.com>
* fpu-unordered.S: New file.
diff --git a/sim/testsuite/or1k/alltests.exp b/sim/testsuite/or1k/alltests.exp
index dd08fbc..98c1345 100644
--- a/sim/testsuite/or1k/alltests.exp
+++ b/sim/testsuite/or1k/alltests.exp
@@ -16,6 +16,9 @@
# 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"