Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/6943
Change subject: config: Handle NULL simobject parameters in read_config.py.
......................................................................
config: Handle NULL simobject parameters in read_config.py.
Change-Id: If0f87e8ee37099be4d0f3567db4fc34f8467e409
---
M configs/example/read_config.py
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configs/example/read_config.py b/configs/example/read_config.py
index a4f03aa..7569cd1 100644
--- a/configs/example/read_config.py
+++ b/configs/example/read_config.py
@@ -215,8 +215,10 @@
param_values =
self.config.get_param_vector(object_name,
param_name)
- setattr(obj, param_name, [ self.objects_by_name[name]
- for name in param_values ])
+ setattr(obj, param_name,
+ [ self.objects_by_name[name]
+ if name != 'Null' else m5.params.NULL
+ for name in param_values ])
else:
param_value = self.config.get_param(object_name,
param_name)
@@ -235,6 +237,8 @@
for child_name, child_paths in children:
param = obj.__class__._params.get(child_name, None)
+ if child_name == 'Null':
+ continue
if isinstance(child_paths, list):
child_list = [ self.objects_by_name[path]
--
To view, visit https://gem5-review.googlesource.com/6943
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: If0f87e8ee37099be4d0f3567db4fc34f8467e409
Gerrit-Change-Number: 6943
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev