SimObject.py (4859:97c7749896a6) | SimObject.py (5033:2a48ab2b86d5) |
---|---|
1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 743 unchanged lines hidden (view full) --- 752 753 for child in child_names: 754 self._children[child].print_ini() 755 756 def getCCParams(self): 757 if self._ccParams: 758 return self._ccParams 759 | 1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 743 unchanged lines hidden (view full) --- 752 753 for child in child_names: 754 self._children[child].print_ini() 755 756 def getCCParams(self): 757 if self._ccParams: 758 return self._ccParams 759 |
760 cc_params_struct = eval('m5.objects.params.%sParams' % self.type) | 760 cc_params_struct = getattr(m5.objects.params, '%sParams' % self.type) |
761 cc_params = cc_params_struct() 762 cc_params.object = self 763 cc_params.name = str(self) 764 765 param_names = self._params.keys() 766 param_names.sort() 767 for param in param_names: 768 value = self._values.get(param) --- 139 unchanged lines hidden --- | 761 cc_params = cc_params_struct() 762 cc_params.object = self 763 cc_params.name = str(self) 764 765 param_names = self._params.keys() 766 param_names.sort() 767 for param in param_names: 768 value = self._values.get(param) --- 139 unchanged lines hidden --- |