From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 12:19:17 +0000 (+0100) Subject: remove bad hack calling trunc_divs/trunc_mods X-Git-Tag: semi_working_ecp5~577 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23c1cd1e4fa286637ef7f19ac6612824e7808615;p=soc.git remove bad hack calling trunc_divs/trunc_mods see https://bugs.libre-soc.org/show_bug.cgi?id=436 --- diff --git a/src/soc/decoder/pseudo/parser.py b/src/soc/decoder/pseudo/parser.py index 346e3f98..3d75fbb0 100644 --- a/src/soc/decoder/pseudo/parser.py +++ b/src/soc/decoder/pseudo/parser.py @@ -615,7 +615,8 @@ class PowerParser: l, r = p[1], p[3] # actual call will be "dividend / divisor" - just check # LHS name - if isinstance(l, ast.Name) and l.id == 'dividend': + # XXX DISABLE BAD HACK (False) + if False and isinstance(l, ast.Name) and l.id == 'dividend': if p[2] == '/': fn = 'trunc_divs' else: