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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user