diff options
author | Gabe Black <gabeblack@google.com> | 2017-09-25 16:19:16 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-09-26 23:47:14 +0000 |
commit | 9747cacf97d952ef597328c2c442700d951e26f6 (patch) | |
tree | 8e19bddaf79a9dd3a41da22ed0d578e0ffa3e365 /src/python/m5 | |
parent | 765c0bb6b3d771f3a9997ff772c9e03525e3bee1 (diff) | |
download | gem5-9747cacf97d952ef597328c2c442700d951e26f6.tar.xz |
sim: Add a get_config_as_dict to the NullSimObject class.
Change-Id: I1ba6f6b196b7dfa790d1baaa23640bb3ed73f450
Reviewed-on: https://gem5-review.googlesource.com/4847
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/python/m5')
-rw-r--r-- | src/python/m5/params.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py index 0f7d6e091..9ca4f2d4d 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -1721,6 +1721,9 @@ class NullSimObject(object): return yield None + def get_config_as_dict(self): + return {} + def __str__(self): return self._name |