]> git.proxmox.com Git - qemu.git/blobdiff - target-mips/translate.c
Add new command line option -singlestep for tcg single stepping.
[qemu.git] / target-mips / translate.c
index 8adc89cffa005f06b5833adca582530e14e76d98..47a3062f868144683f5c0c34e6c609f22c79e4dc 100644 (file)
@@ -38,7 +38,6 @@
 
 //#define MIPS_DEBUG_DISAS
 //#define MIPS_DEBUG_SIGN_EXTENSIONS
-//#define MIPS_SINGLE_STEP
 
 /* MIPS major opcodes */
 #define MASK_OP_MAJOR(op)  (op & (0x3F << 26))
@@ -8140,9 +8139,9 @@ gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
 
         if (num_insns >= max_insns)
             break;
-#if defined (MIPS_SINGLE_STEP)
-        break;
-#endif
+
+        if (singlestep)
+            break;
     }
     if (tb->cflags & CF_LAST_IO)
         gen_io_end();