aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-20 18:58:15 +0100
committerClifford Wolf <clifford@clifford.at>2018-11-20 18:58:15 +0100
commitb5d518583ec0b3799ce213935acca3ac0654c42f (patch)
treef0e9f3bca53bf715f4fa58d3f10e28f15a490def
parent343569105ddf7c97316922774dc4d70d1d4f7c9f (diff)
downloadnextpnr-b5d518583ec0b3799ce213935acca3ac0654c42f.tar.gz
nextpnr-b5d518583ec0b3799ce213935acca3ac0654c42f.tar.bz2
nextpnr-b5d518583ec0b3799ce213935acca3ac0654c42f.zip
Add missing router1 ctx->yield() calls
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--common/router1.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/router1.cc b/common/router1.cc
index 198461bc..a3388fa8 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -777,6 +777,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()));
last_arcs_with_ripup = router.arcs_with_ripup;
last_arcs_without_ripup = router.arcs_without_ripup;
+ ctx->yield();
#ifndef NDEBUG
router.check();
#endif
@@ -802,6 +803,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
router.arcs_with_ripup - last_arcs_with_ripup, router.arcs_without_ripup - last_arcs_without_ripup,
int(router.arc_queue.size()));
log_info("Routing complete.\n");
+ ctx->yield();
#ifndef NDEBUG
router.check();