aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-08-18 11:47:46 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-08-18 11:47:46 +0200
commit4a32e29445f65edd1726808a7353a9d0e2560c00 (patch)
tree179544dd193fe72b3658269cb22a6eae66bee8a1 /kernel/yosys.cc
parent5f561bdcb1d562d6f975b4a27beca1b8b7af908f (diff)
parent98a54353b7d893752d856b3726853d4921c6aa1f (diff)
downloadyosys-4a32e29445f65edd1726808a7353a9d0e2560c00.tar.gz
yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.tar.bz2
yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.zip
Merge remote-tracking branch 'upstream/master' into anlogic_fixes
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)