Reduce timeout values, increase them specifically for QEMU.
[debugger.git] / debugger.c
index ec5b60c..cc39e84 100644 (file)
 #include "debugger.h"
 
 
+/* Insert constant delay for before each critical check?  */
 #if 0
 #define USLEEP (1000000 / 2)
 #endif
-#define TIMEOUT_SECS 20
+
+#if 1  /* Standard run.  */
+#define TIMEOUT_SECS 4
+#define LOOPS_MIN 100000
+#else  /* QEMU?  */
 /* LOOPS_MIN is a safety as QEMU clock time sucks.
    100000 is 4s natively and 53s in QEMU.  */
+#define TIMEOUT_SECS 20
 #define LOOPS_MIN 500000
+#endif /* QEMU?  */
 
 
 #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))