1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-10 23:01:12 +00:00

placer1: Unlock even if placement fails

Prevents a hang during routing when using --force

Fixes #462

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah
2020-06-29 16:39:31 +01:00
parent 929a1cc7e4
commit 32e655d0af

View File

@@ -1256,6 +1256,7 @@ bool placer1(Context *ctx, Placer1Cfg cfg)
#ifndef NDEBUG
ctx->check();
#endif
ctx->unlock();
return false;
}
}
@@ -1276,6 +1277,7 @@ bool placer1_refine(Context *ctx, Placer1Cfg cfg)
#ifndef NDEBUG
ctx->check();
#endif
ctx->unlock();
return false;
}
}