mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Trivial simplification of V3EmitCModel
Still some remains of the --threads 0 mode. Remove unnecessary complexity from V3EmitCModel. (Also don't pretend there is an MTask in single threaded mode, when there really isn't.)
This commit is contained in:
@@ -401,13 +401,6 @@ class EmitCModel final : public EmitCFunc {
|
||||
puts(topModNameProtected + "__" + protect("_eval_settle") + "(&(vlSymsp->TOP));\n");
|
||||
puts("}\n");
|
||||
|
||||
if (v3Global.opt.threads() == 1) {
|
||||
const uint32_t mtaskId = 0;
|
||||
putsDecoration("// MTask " + cvtToStr(mtaskId) + " start\n");
|
||||
puts("VL_DEBUG_IF(VL_DBG_MSGF(\"MTask" + cvtToStr(mtaskId) + " starting\\n\"););\n");
|
||||
puts("Verilated::mtaskId(" + cvtToStr(mtaskId) + ");\n");
|
||||
}
|
||||
|
||||
if (v3Global.opt.profExec()) {
|
||||
puts("vlSymsp->__Vm_executionProfilerp->configure();\n");
|
||||
puts("VL_EXEC_TRACE_ADD_RECORD(vlSymsp).evalBegin();\n");
|
||||
@@ -417,9 +410,6 @@ class EmitCModel final : public EmitCFunc {
|
||||
puts(topModNameProtected + "__" + protect("_eval") + "(&(vlSymsp->TOP));\n");
|
||||
|
||||
putsDecoration("// Evaluate cleanup\n");
|
||||
if (v3Global.opt.threads() == 1) {
|
||||
puts("Verilated::endOfThreadMTask(vlSymsp->__Vm_evalMsgQp);\n");
|
||||
}
|
||||
puts("Verilated::endOfEval(vlSymsp->__Vm_evalMsgQp);\n");
|
||||
|
||||
if (v3Global.opt.profExec()) puts("VL_EXEC_TRACE_ADD_RECORD(vlSymsp).evalEnd();\n");
|
||||
|
||||
Reference in New Issue
Block a user