mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-11 23:53:21 +00:00
Cleanup Context API
This commit is contained in:
parent
c133d00e2e
commit
064beeff19
@ -39,15 +39,7 @@ struct Context : Arch, DeterministicRNG
|
||||
// True when detailed per-net timing is to be stored / reported
|
||||
bool detailed_timing_report = false;
|
||||
|
||||
ArchArgs arch_args;
|
||||
|
||||
Context(ArchArgs args) : Arch(args)
|
||||
{
|
||||
BaseCtx::as_ctx = this;
|
||||
arch_args = args;
|
||||
}
|
||||
|
||||
ArchArgs getArchArgs() { return arch_args; }
|
||||
Context(ArchArgs args) : Arch(args) { BaseCtx::as_ctx = this; }
|
||||
|
||||
// --------------------------------------------------------------
|
||||
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <filesystem>
|
||||
#include <boost/iostreams/device/mapped_file.hpp>
|
||||
#include <filesystem>
|
||||
#include "embed.h"
|
||||
#include "nextpnr.h"
|
||||
|
||||
|
||||
@ -368,7 +368,7 @@ void BaseMainWindow::open_json()
|
||||
if (!fileName.isEmpty()) {
|
||||
disableActions();
|
||||
if (ctx->settings.find(ctx->id("synth")) == ctx->settings.end()) {
|
||||
ArchArgs chipArgs = ctx->getArchArgs();
|
||||
ArchArgs chipArgs = ctx->args;
|
||||
ctx = std::unique_ptr<Context>(new Context(chipArgs));
|
||||
Q_EMIT contextChanged(ctx.get());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user