python: Don't use Swig to cast stats
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 3 Jan 2017 12:03:45 +0000 (12:03 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 3 Jan 2017 12:03:45 +0000 (12:03 +0000)
commitc8b1e8f1cfdb5b66bacbbbd23dcf9ebb5a0f3b95
treed5d367cc362881d9e00d2c881d86698549a735bd
parentabe7ef95cb89c68c6385162cb801bab8b27a585b
python: Don't use Swig to cast stats

Call the stat visitor from the stat itself rather than casting stats
in Python. This reduces the number of ways visitors are called.

Change-Id: Ic4d0b7b32e3ab9897b9a34cd22d353f4da62d738
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Joe Gross <joseph.gross@amd.com>
src/python/m5/stats/__init__.py
src/python/swig/stats.i