mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
There was exactly one place in V3Task, handling DPI arguments when we relied on cleanOut of AstCExpr being false for masking. Made that code do the relevant masking via a few new run-time functions, which also eliminates some special cases in the relevant V3Task functions.
This commit is contained in:
+1
-1
@@ -1186,7 +1186,7 @@ class TimingControlVisitor final : public VNVisitor {
|
||||
if (constp->isZero()) {
|
||||
// We have to await forever instead of simply returning in case we're deep in a
|
||||
// callstack
|
||||
AstCExpr* const foreverp = new AstCExpr{flp, "VlForever{}", 0, true};
|
||||
AstCExpr* const foreverp = new AstCExpr{flp, "VlForever{}", 0};
|
||||
foreverp->dtypeSetVoid(); // TODO: this is sloppy but harmless
|
||||
AstCAwait* const awaitp = new AstCAwait{flp, foreverp};
|
||||
awaitp->dtypeSetVoid();
|
||||
|
||||
Reference in New Issue
Block a user