Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/4845
Change subject: sim: Give the NullSimObject singleton a _name.
......................................................................
sim: Give the NullSimObject singleton a _name.
The name is 'Null', and is what __str__ returns.
Change-Id: I113f52496f5e9133b8d03206289b719fda003582
---
M src/python/m5/params.py
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index f9412d7..0f7d6e0 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -1694,6 +1694,7 @@
# only one copy of a particular node
class NullSimObject(object):
__metaclass__ = Singleton
+ _name = 'Null'
def __call__(cls):
return cls
@@ -1721,7 +1722,7 @@
yield None
def __str__(self):
- return 'Null'
+ return self._name
def config_value(self):
return None
--
To view, visit https://gem5-review.googlesource.com/4845
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I113f52496f5e9133b8d03206289b719fda003582
Gerrit-Change-Number: 4845
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev