python: Fix unknown params and proxy multiplication
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 7 Mar 2019 16:12:23 +0000 (17:12 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 14 Mar 2019 12:11:29 +0000 (12:11 +0000)
commit7f9cbfae9a091363ec46102cc3e693ac94b51493
tree8b5637abbea3f430de96a9c2d90a4a1de665a536
parent66c80fcb44dfbfb9dc70b972e33104f053bd3015
python: Fix unknown params and proxy multiplication

One of the recent changes made params not visible anymore:
    NameError: global name 'params' is not defined
This is fixed by adding the proper import statement.

However, the second error makes the multiplication values be assigned
to other proxies (that are not even used on the multiplication). A
workaround is added to prevent this from happening by extending "*=".

Change-Id: I3ad276a456efff62058672d16caac2b3ad1b326b
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17048
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/python/m5/proxy.py