From: Sebastien Bourdeauducq Date: Tue, 12 Mar 2013 12:48:09 +0000 (+0100) Subject: fhdl/tracer: recognize CALL_FUNCTION_VAR opcode X-Git-Tag: 24jan2021_ls180~2099^2~657 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e2581bf1708eb1ca4679d1629bd4a0a31010346;p=litex.git fhdl/tracer: recognize CALL_FUNCTION_VAR opcode --- diff --git a/migen/fhdl/tracer.py b/migen/fhdl/tracer.py index 53cc3663..fa6d4064 100644 --- a/migen/fhdl/tracer.py +++ b/migen/fhdl/tracer.py @@ -5,7 +5,8 @@ from collections import defaultdict def get_var_name(frame): code = frame.f_code call_index = frame.f_lasti - if opname[code.co_code[call_index]] != "CALL_FUNCTION": + call_opc = opname[code.co_code[call_index]] + if call_opc != "CALL_FUNCTION" and call_opc != "CALL_FUNCTION_VAR": return None index = call_index+3 while True: