From 5c6b8a5f0473c6ec04dd045029eb0d87353558ab Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 30 Jun 2021 10:10:18 +0200 Subject: Preserve ArchArgs and reinit Context when applicable in GUI --- common/context.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/context.h') 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; } // -------------------------------------------------------------- -- cgit v1.2.3