sim: Use the canonical way of iterating over a dictionary
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 5 Jun 2018 16:15:58 +0000 (17:15 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 21 Jun 2018 14:21:44 +0000 (14:21 +0000)
commit7ad7ea26b5b11d4fa392282c2e6159d0089d0342
treed8cc5cded04ea0da834109e3e2d2f7677fca9b68
parent48e420cbd5d9ab9d56d4b837ca9fda65170dba3a
sim: Use the canonical way of iterating over a dictionary

Instead of using a convoluted getattr call, use the conventional
iteritems() interface.

Change-Id: I6d6bbccf865f8a0e8ff0767914157a7460099b09
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/10782
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/python/m5/SimObject.py