projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d453799
)
Fix pmgen "reject" statement
author
Clifford Wolf
<clifford@clifford.at>
Sun, 13 Jan 2019 16:15:40 +0000
(17:15 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Tue, 15 Jan 2019 10:23:25 +0000
(11:23 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/pmgen/pmgen.py
patch
|
blob
|
history
diff --git
a/passes/pmgen/pmgen.py
b/passes/pmgen/pmgen.py
index 88d60d29857119d82f4b1df740ad9929bcbab828..6486278d41625c5d2c8e87cc166c4afca18f9e46 100644
(file)
--- 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)