aboutsummaryrefslogtreecommitdiffstats
path: root/common/context.h
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-30 09:59:38 +0100
committerGitHub <noreply@github.com>2021-06-30 09:59:38 +0100
commit91b998bb11e4bce04ecd6e2a81119714fb4640ae (patch)
tree7c530e15b870d48ba465710ded34604320a9f956 /common/context.h
parent6c23fe202c5aceac0079ff3211298e7d2ec88a7e (diff)
parent5c6b8a5f0473c6ec04dd045029eb0d87353558ab (diff)
downloadnextpnr-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/context.h')
-rw-r--r--common/context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/context.h b/common/context.h
index ee7ef0ce..f2b66600 100644
--- a/common/context.h
+++ b/common/context.h
@@ -37,7 +37,11 @@ struct Context : Arch, DeterministicRNG
// Should we disable printing of the location of nets in the critical path?
bool disable_critical_path_source_print = false;
- Context(ArchArgs args) : Arch(args) { BaseCtx::as_ctx = this; }
+ ArchArgs arch_args;
+
+ Context(ArchArgs args) : Arch(args) { BaseCtx::as_ctx = this; arch_args = args; }
+
+ ArchArgs getArchArgs() { return arch_args; }
// --------------------------------------------------------------