diff options
author | Gabe Black <gabeblack@google.com> | 2017-09-25 16:14:38 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-09-26 21:17:51 +0000 |
commit | cd5d28594d9708cca2fbbf17e9246cbd890ae336 (patch) | |
tree | 46ad791702dd5a229e447e288014bba9d451a863 /src/python | |
parent | 2a02e3d30de151518f6b769c59b4585b817af22c (diff) | |
download | gem5-cd5d28594d9708cca2fbbf17e9246cbd890ae336.tar.xz |
sim: Give the NullSimObject singleton a _name.
The name is 'Null', and is what __str__ returns.
Change-Id: I113f52496f5e9133b8d03206289b719fda003582
Reviewed-on: https://gem5-review.googlesource.com/4845
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/m5/params.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py index f9412d70e..0f7d6e091 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -1694,6 +1694,7 @@ class MemoryBandwidth(float,ParamValue): # only one copy of a particular node class NullSimObject(object): __metaclass__ = Singleton + _name = 'Null' def __call__(cls): return cls @@ -1721,7 +1722,7 @@ class NullSimObject(object): yield None def __str__(self): - return 'Null' + return self._name def config_value(self): return None |