Merge pull request #133 from YosysHQ/yield_gui

Add missing router1 ctx->yield() calls
This commit is contained in:
Serge Bazanski 2018-11-20 19:31:29 +01:00 committed by GitHub
commit cf83d546f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -777,6 +777,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg)
router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size())); router.arcs_without_ripup - last_arcs_without_ripup, int(router.arc_queue.size()));
last_arcs_with_ripup = router.arcs_with_ripup; last_arcs_with_ripup = router.arcs_with_ripup;
last_arcs_without_ripup = router.arcs_without_ripup; last_arcs_without_ripup = router.arcs_without_ripup;
ctx->yield();
#ifndef NDEBUG #ifndef NDEBUG
router.check(); router.check();
#endif #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, router.arcs_with_ripup - last_arcs_with_ripup, router.arcs_without_ripup - last_arcs_without_ripup,
int(router.arc_queue.size())); int(router.arc_queue.size()));
log_info("Routing complete.\n"); log_info("Routing complete.\n");
ctx->yield();
#ifndef NDEBUG #ifndef NDEBUG
router.check(); router.check();