aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSerge Bazanski <sergiusz@q3k.org>2018-11-20 19:31:29 +0100
committerGitHub <noreply@github.com>2018-11-20 19:31:29 +0100
commitcf83d546f1139fdfdafa5a309f0378ccff82fac4 (patch)
treef0e9f3bca53bf715f4fa58d3f10e28f15a490def /common
parent343569105ddf7c97316922774dc4d70d1d4f7c9f (diff)
parentb5d518583ec0b3799ce213935acca3ac0654c42f (diff)
downloadnextpnr-cf83d546f1139fdfdafa5a309f0378ccff82fac4.tar.gz
nextpnr-cf83d546f1139fdfdafa5a309f0378ccff82fac4.tar.bz2
nextpnr-cf83d546f1139fdfdafa5a309f0378ccff82fac4.zip
Merge pull request #133 from YosysHQ/yield_gui
Add missing router1 ctx->yield() calls
Diffstat (limited to 'common')
-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();