arch: Clean up the __init__s in (Sub)OperandList.
authorGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 01:39:54 +0000 (18:39 -0700)
committerGabe Black <gabe.black@gmail.com>
Tue, 3 Nov 2020 07:07:52 +0000 (07:07 +0000)
commit63d61af18d6cc13cd72ffc9f0754b8b16555e408
treeeeaa624ec3602634c548428b4044a49f0a9abf81
parent7eb991b9ff4c607f5e10536046e315b3cd9ec42e
arch: Clean up the __init__s in (Sub)OperandList.

These had a lot of for loops and ifs and nesting. Python lets you avoid
that, which makes the code easier to read and more intuitive to
understand.

Change-Id: I576bf1de9e5b2268717a535ca42f2db669d83ed2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35818
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/isa_parser/operand_list.py