aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-24 21:36:09 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-24 21:50:17 -0500
commit269362117d399d9d86b7e565e7cb827500fac31c (patch)
treefaca7a3eacceb694bdf29fcf1acaf08de23cccad /sim/testsuite
parent9db2b719087eb42cfb31018fe87657243f6185c9 (diff)
downloadgdb-269362117d399d9d86b7e565e7cb827500fac31c.zip
gdb-269362117d399d9d86b7e565e7cb827500fac31c.tar.gz
gdb-269362117d399d9d86b7e565e7cb827500fac31c.tar.bz2
sim: make LMA loading the default for all targets
Most targets already default to loading code via their LMA, but for a few, this means the default changes from loading VMA to LMA. It's better to have the different targets be consistent, and allows some code clean up.
Diffstat (limited to 'sim/testsuite')
-rw-r--r--sim/testsuite/sim/cr16/ChangeLog5
-rw-r--r--sim/testsuite/sim/cr16/allinsn.exp11
-rw-r--r--sim/testsuite/sim/cr16/misc.exp10
3 files changed, 25 insertions, 1 deletions
diff --git a/sim/testsuite/sim/cr16/ChangeLog b/sim/testsuite/sim/cr16/ChangeLog
index e6b2466..4cb008b 100644
--- a/sim/testsuite/sim/cr16/ChangeLog
+++ b/sim/testsuite/sim/cr16/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-24 Mike Frysinger <vapier@gentoo.org>
+
+ * allinsn.exp: Append --load-vma to global_sim_options.
+ * misc.exp: Likewise.
+
2015-03-29 Mike Frysinger <vapier@gentoo.org>
PR sim/12385
diff --git a/sim/testsuite/sim/cr16/allinsn.exp b/sim/testsuite/sim/cr16/allinsn.exp
index 392e70f..852a673 100644
--- a/sim/testsuite/sim/cr16/allinsn.exp
+++ b/sim/testsuite/sim/cr16/allinsn.exp
@@ -1,6 +1,5 @@
# CR16 simulator testsuite.
-
if [istarget cr16*-*-*] {
# load support procs
# load_lib cgen.exp
@@ -8,6 +7,14 @@ if [istarget cr16*-*-*] {
# all machines
set all_machs "cr16"
+ global global_sim_options
+ if ![info exists global_sim_options] {
+ set global_sim_options ""
+ }
+ set saved_global_sim_options $global_sim_options
+ # The cr16 linker sets the default LMA base to 0, and all the code
+ # expects the VMA when running, so use that when running the tests.
+ set global_sim_options "$saved_global_sim_options --load-vma"
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] {
@@ -19,4 +26,6 @@ if [istarget cr16*-*-*] {
run_sim_test $src $all_machs
}
+
+ set global_sim_options $saved_global_sim_options
}
diff --git a/sim/testsuite/sim/cr16/misc.exp b/sim/testsuite/sim/cr16/misc.exp
index 5fe512d..39dd3a4 100644
--- a/sim/testsuite/sim/cr16/misc.exp
+++ b/sim/testsuite/sim/cr16/misc.exp
@@ -7,6 +7,14 @@ if [istarget cr16*-*-*] {
# all machines
set all_machs "cr16"
+ global global_sim_options
+ if ![info exists global_sim_options] {
+ set global_sim_options ""
+ }
+ set saved_global_sim_options $global_sim_options
+ # The cr16 linker sets the default LMA base to 0, and all the code
+ # expects the VMA when running, so use that when running the tests.
+ set global_sim_options "$saved_global_sim_options --load-vma"
# The .ms suffix is for "miscellaneous .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.ms]] {
@@ -18,4 +26,6 @@ if [istarget cr16*-*-*] {
run_sim_test $src $all_machs
}
+
+ set global_sim_options $saved_global_sim_options
}