sim: m32r: fix virtual environment with Linux targets
authorMike Frysinger <vapier@gentoo.org>
Thu, 1 Jul 2021 00:30:43 +0000 (20:30 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 2 Jul 2021 00:38:07 +0000 (20:38 -0400)
commit055a3f27e8c704a459a84ef6deeadd06a4a55d23
tree829e3b6af9bcef984e5e5054eadae517926d06f3
parent33b477e1c7fc12b21934e5f8fa799c163a554b20
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.
sim/m32r/ChangeLog
sim/m32r/traps-linux.c
sim/testsuite/m32r/ChangeLog
sim/testsuite/m32r/hw-trap.ms
sim/testsuite/m32r/trap.cgs