diff options
author | gatecat <gatecat@ds0.me> | 2021-06-30 09:59:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 09:59:38 +0100 |
commit | 91b998bb11e4bce04ecd6e2a81119714fb4640ae (patch) | |
tree | 7c530e15b870d48ba465710ded34604320a9f956 /common/command.cc | |
parent | 6c23fe202c5aceac0079ff3211298e7d2ec88a7e (diff) | |
parent | 5c6b8a5f0473c6ec04dd045029eb0d87353558ab (diff) | |
download | nextpnr-91b998bb11e4bce04ecd6e2a81119714fb4640ae.tar.gz nextpnr-91b998bb11e4bce04ecd6e2a81119714fb4640ae.tar.bz2 nextpnr-91b998bb11e4bce04ecd6e2a81119714fb4640ae.zip |
Merge pull request #738 from YosysHQ/json_load_reinit
Preserve ArchArgs and reinit Context when applicable in GUI, fixes #737
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/common/command.cc b/common/command.cc index 89bbf90c..7f276193 100644 --- a/common/command.cc +++ b/common/command.cc @@ -475,15 +475,6 @@ int CommandHandler::exec() void CommandHandler::load_json(Context *ctx, std::string filename) { - ctx->cells.clear(); - ctx->nets.clear(); - ctx->net_aliases.clear(); - ctx->ports.clear(); - ctx->hierarchy.clear(); - ctx->settings.erase(ctx->id("pack")); - ctx->settings.erase(ctx->id("place")); - ctx->settings.erase(ctx->id("route")); - setupContext(ctx); setupArchContext(ctx); { |