diff options
Diffstat (limited to 'target-m68k/op.c')
-rw-r--r-- | target-m68k/op.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-m68k/op.c b/target-m68k/op.c index 6134bb018e..69d1fde9a7 100644 --- a/target-m68k/op.c +++ b/target-m68k/op.c @@ -383,8 +383,15 @@ OP(divs) FORCE_RET(); } +/* Halt is special because it may be a semihosting call. */ OP(halt) { + RAISE_EXCEPTION(EXCP_HALT_INSN); + FORCE_RET(); +} + +OP(stop) +{ env->halted = 1; RAISE_EXCEPTION(EXCP_HLT); FORCE_RET(); |