arch: Bring closure out of p_global_let
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 5 Mar 2020 15:34:34 +0000 (15:34 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 13 Mar 2020 14:24:07 +0000 (14:24 +0000)
commit39df0e4f32a1f91a2dea2e5112826d40adc4d409
treefa90842d666870a1af5c3ea351b6d0ada04eb509
parent1bf2821ae78139f492857e4447d9603584864baa
arch: Bring closure out of p_global_let

The python interpreter might complain when exec() (the function, not the
python2 keyword) is used in a function and the function contains a nested
block.

See: https://www.python.org/dev/peps/pep-0227/

The patch is moving the nested function out of p_global_let.

Change-Id: Idb3a08a8cd42455af1e5ec2c3ec8f8a1438047d3
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26303
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/arch/isa_parser.py