diff options
author | Stuart Bennett <sb476@cam.ac.uk> | 2007-11-15 21:30:58 +0000 |
---|---|---|
committer | Stuart Bennett <sb476@cam.ac.uk> | 2007-11-16 00:15:18 +0000 |
commit | c08ebf821c5b3a5981fc4e38beeff27550f88803 (patch) | |
tree | d0220482265bf705f04be9e6cae421c26c667b21 | |
parent | e74a74e78aaf81664ad4e374992444c89b8d4f1c (diff) |
Exit when we've finished
-rw-r--r-- | decode.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -118,6 +118,11 @@ DB( if (M.x86.R_SP != 0) { x86emu_intr_handle(); } } + if ((M.x86.R_CS == 0) && (M.x86.R_IP == 0)) { +DB( + X86EMU_trace_regs();) + return; + } op1 = (*sys_rdb)(((u32)M.x86.R_CS << 4) + (M.x86.R_IP++)); (*x86emu_optab[op1])(op1); if (M.x86.debug & DEBUG_EXIT) { |