Hi, patch below makes GDB single stepping for MIPS work. For debugging (breakpoint set), in target-mips/translate.c/gen_intermediate_code_internal() gen_opc_pc[] isn't initialized. So in debugging case don't call cpu_restore_state() which then accesses uninitalized gen_opc_pc[]. do_raise_exception_direct() indirectly calls cpu_restore_state(), do_raise_exception() doesn't. Best regards Dirk