From: Clifford Wolf Date: Sun, 13 Jan 2019 16:15:40 +0000 (+0100) Subject: Fix pmgen "reject" statement X-Git-Tag: yosys-0.9~310^2~12 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55ac03038270f4a70da5e579dd317487e20fe6cf;p=yosys.git Fix pmgen "reject" statement Signed-off-by: Clifford Wolf --- diff --git a/passes/pmgen/pmgen.py b/passes/pmgen/pmgen.py index 88d60d298..6486278d4 100644 --- a/passes/pmgen/pmgen.py +++ b/passes/pmgen/pmgen.py @@ -293,7 +293,7 @@ with open("%s_pm.h" % prefix, "w") as f: print(" }", file=f) print("", file=f) - print("#define reject break", file=f) + print("#define reject do { check_blacklist(); goto rollback_label; } while(0)", file=f) print("#define accept do { on_accept(); check_blacklist(); if (rollback) goto rollback_label; } while(0)", file=f) print("", file=f)