sim: moxie: fix running after nrun conversion
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Apr 2015 08:37:44 +0000 (04:37 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 5 Apr 2015 08:37:44 +0000 (04:37 -0400)
commit20cc97536046f8aa883c3fba16aa1c9a2762f183
tree4a293e6faa972cfb8584a0c5a177ff583dabb7c2
parent024305f7f28b3b322ae26c5c1c2d23ca6f5c11bb
sim: moxie: fix running after nrun conversion

The nrun conversion was slightly incorrect in how it stopped when an
exception occurred.  We still set cpu.asregs.exception, but nothing
was checking it anymore.  Convert all of that to sim_engine_halt.

To keep things from regressing again, add a basic testsuite too.
sim/moxie/ChangeLog
sim/moxie/Makefile.in
sim/moxie/interp.c
sim/testsuite/sim/moxie/ChangeLog [new file with mode: 0644]
sim/testsuite/sim/moxie/allinsn.exp [new file with mode: 0644]
sim/testsuite/sim/moxie/pass.s [new file with mode: 0644]
sim/testsuite/sim/moxie/testutils.inc [new file with mode: 0644]