Gabe Black has submitted this change and it was merged. ( 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
Reviewed-on: https://gem5-review.googlesource.com/4845
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/python/m5/params.py
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved
  Gabe Black: Looks good to me, approved



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: merged
Gerrit-Change-Id: I113f52496f5e9133b8d03206289b719fda003582
Gerrit-Change-Number: 4845
Gerrit-PatchSet: 3
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to