summaryrefslogtreecommitdiff
path: root/robot/hypervisor.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-29 20:26:30 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-29 20:26:30 +0200
commit2c591a5e97ad9f354844d3d2b04a4190f9c6fc1f (patch)
tree3593ff0e9bebcf4fbf8cd33160114f13711f093e /robot/hypervisor.c
parent4227c0d62e6df83e96c2b5fa62a8a743d4d96c8f (diff)
fix memory leak and print sim info over stderr
Diffstat (limited to 'robot/hypervisor.c')
-rw-r--r--robot/hypervisor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/hypervisor.c b/robot/hypervisor.c
index e781877..3359bf6 100644
--- a/robot/hypervisor.c
+++ b/robot/hypervisor.c
@@ -44,9 +44,9 @@ void w2_hypervisor_main() {
#ifdef W2_SIM
if (DBG_ENABLE_CYCLEINFO) siminfo("cycle end\n");
- if (!g_w2_sim_headless) usleep(100e3);
+ if (DBG_CYCLE_DELAY > 0) usleep(DBG_CYCLE_DELAY);
- if (g_w2_sim_headless && DBG_MAX_CYCLES > -1 && g_w2_hypervisor_cycles > DBG_MAX_CYCLES)
+ if (DBG_MAX_CYCLES > -1 && g_w2_hypervisor_cycles > DBG_MAX_CYCLES)
exit(0);
#endif