mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Change naming convention for Vthread funcs (#5982)
Signed-off-by: Bartłomiej Chmiel <[email protected]>
This commit is contained in:
+2
-2
@@ -771,8 +771,8 @@ const std::vector<AstCFunc*> createThreadFunctions(const ThreadSchedule& schedul
|
||||
for (const std::vector<const ExecMTask*>& thread : schedule.threads) {
|
||||
if (thread.empty()) continue;
|
||||
const uint32_t threadId = schedule.threadId(thread.front());
|
||||
const string name{"__Vthread__" + tag + "__t" + cvtToStr(threadId) + "__s"
|
||||
+ cvtToStr(schedule.id())};
|
||||
const string name{"__Vthread__" + tag + "__s" + cvtToStr(schedule.id()) + "__t"
|
||||
+ cvtToStr(threadId)};
|
||||
AstCFunc* const funcp = new AstCFunc{fl, name, nullptr, "void"};
|
||||
modp->addStmtsp(funcp);
|
||||
funcps.push_back(funcp);
|
||||
|
||||
Reference in New Issue
Block a user