#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]))