aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-15 12:19:51 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-15 12:19:51 -0700
commit7f10019610e9570549ddcb945da8ae048d718dfd (patch)
tree40f9776fded5e02bea37ff8b1d1a765e15fdc944 /kernel/yosys.cc
parent261daffd9d18adb13bb3dc53b17d3543109ea26c (diff)
parentd8a2aaa46379df7a07f4b776b7f9981b04999215 (diff)
downloadyosys-7f10019610e9570549ddcb945da8ae048d718dfd.tar.gz
yosys-7f10019610e9570549ddcb945da8ae048d718dfd.tar.bz2
yosys-7f10019610e9570549ddcb945da8ae048d718dfd.zip
Merge remote-tracking branch 'origin/master' into xc7dsp
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index 5a53f90fd..747f2d739 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -510,10 +510,13 @@ void yosys_setup()
if(already_setup)
return;
already_setup = true;
- // if there are already IdString objects then we have a global initialization order bug
- IdString empty_id;
- log_assert(empty_id.index_ == 0);
- IdString::get_reference(empty_id.index_);
+
+ RTLIL::ID::A = "\\A";
+ RTLIL::ID::B = "\\B";
+ RTLIL::ID::Y = "\\Y";
+ RTLIL::ID::keep = "\\keep";
+ RTLIL::ID::whitebox = "\\whitebox";
+ RTLIL::ID::blackbox = "\\blackbox";
#ifdef WITH_PYTHON
PyImport_AppendInittab((char*)"libyosys", INIT_MODULE);
@@ -575,9 +578,6 @@ void yosys_shutdown()
#ifdef WITH_PYTHON
Py_Finalize();
#endif
-
- IdString empty_id;
- IdString::put_reference(empty_id.index_);
}
RTLIL::IdString new_id(std::string file, int line, std::string func)