aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAlastair M. Robinson <robinsonb5@gmail.com>2022-05-10 18:48:54 +0100
committerAlastair M. Robinson <robinsonb5@gmail.com>2022-05-10 18:48:54 +0100
commit83dbea1689bd0efd5645cf75b40aa4cec430fc90 (patch)
treeb33a13e71701332746a1a356826e9999740456d0 /kernel
parentc862b1dbfbb3a8e1ec90c483a8364550b3fe840c (diff)
downloadyosys-83dbea1689bd0efd5645cf75b40aa4cec430fc90.tar.gz
yosys-83dbea1689bd0efd5645cf75b40aa4cec430fc90.tar.bz2
yosys-83dbea1689bd0efd5645cf75b40aa4cec430fc90.zip
Now calls Tcl_Init after creating the interp, fixes clock format.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/yosys.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index 09909696b..6ab283148 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -733,6 +733,8 @@ extern Tcl_Interp *yosys_get_tcl_interp()
{
if (yosys_tcl_interp == NULL) {
yosys_tcl_interp = Tcl_CreateInterp();
+ if (Tcl_Init(yosys_tcl_interp)!=TCL_OK)
+ log("Tcl_Init() call failed\n");
Tcl_CreateCommand(yosys_tcl_interp, "yosys", tcl_yosys_cmd, NULL, NULL);
}
return yosys_tcl_interp;