aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-30 20:30:43 -0400
committerMike Frysinger <vapier@gentoo.org>2021-07-01 20:38:07 -0400
commit055a3f27e8c704a459a84ef6deeadd06a4a55d23 (patch)
tree829e3b6af9bcef984e5e5054eadae517926d06f3 /sim/testsuite
parent33b477e1c7fc12b21934e5f8fa799c163a554b20 (diff)
downloadgdb-055a3f27e8c704a459a84ef6deeadd06a4a55d23.zip
gdb-055a3f27e8c704a459a84ef6deeadd06a4a55d23.tar.gz
gdb-055a3f27e8c704a459a84ef6deeadd06a4a55d23.tar.bz2
sim: m32r: fix virtual environment with Linux targets
We don't want to handle Linux syscalls when in the virtual environment, just the user environment, so adjust the Linux traps logic to check for that specifically (instead of just skipping the operating environment). Also tweak some testcases to explicitly specify the environment they run under rather than relying on the default matching their needs. This gets the tests passing for all m32r targets.
Diffstat (limited to 'sim/testsuite')
-rw-r--r--sim/testsuite/m32r/ChangeLog5
-rw-r--r--sim/testsuite/m32r/hw-trap.ms1
-rw-r--r--sim/testsuite/m32r/trap.cgs1
3 files changed, 7 insertions, 0 deletions
diff --git a/sim/testsuite/m32r/ChangeLog b/sim/testsuite/m32r/ChangeLog
index 6e6facb..535435a 100644
--- a/sim/testsuite/m32r/ChangeLog
+++ b/sim/testsuite/m32r/ChangeLog
@@ -1,3 +1,8 @@
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * hw-trap.ms: Run sim with --environment virtual.
+ * trap.cgs: Likewise.
+
2021-04-08 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp (arch): Delete.
diff --git a/sim/testsuite/m32r/hw-trap.ms b/sim/testsuite/m32r/hw-trap.ms
index 2aa200b..0979024 100644
--- a/sim/testsuite/m32r/hw-trap.ms
+++ b/sim/testsuite/m32r/hw-trap.ms
@@ -1,4 +1,5 @@
# mach(): m32r m32rx
+# sim: --environment virtual
# output(): pass\n
.include "testutils.inc"
diff --git a/sim/testsuite/m32r/trap.cgs b/sim/testsuite/m32r/trap.cgs
index 59e136a..f132d16 100644
--- a/sim/testsuite/m32r/trap.cgs
+++ b/sim/testsuite/m32r/trap.cgs
@@ -1,5 +1,6 @@
# m32r testcase for trap #$uimm4
# mach(): m32r m32rx
+# sim: --environment virtual
.include "testutils.inc"