Deleted Added
sdiff udiff text old ( 8597:45c9f664a365 ) new ( 8664:42052d5bb793 )
full compact
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 860 unchanged lines hidden (view full) ---

869 def print_ini(self, ini_file):
870 print >>ini_file, '[' + self.path() + ']' # .ini section header
871
872 instanceDict[self.path()] = self
873
874 if hasattr(self, 'type'):
875 print >>ini_file, 'type=%s' % self.type
876
877 child_names = self._children.keys()
878 child_names.sort()
879 if len(child_names):
880 print >>ini_file, 'children=%s' % \
881 ' '.join(self._children[n].get_name() for n in child_names)
882
883 param_names = self._params.keys()
884 param_names.sort()
885 for param in param_names:
886 value = self._values.get(param)
887 if value != None:
888 print >>ini_file, '%s=%s' % (param,
889 self._values[param].ini_str())
890
891 port_names = self._ports.keys()
892 port_names.sort()
893 for port_name in port_names:
894 port = self._port_refs.get(port_name, None)
895 if port != None:
896 print >>ini_file, '%s=%s' % (port_name, port.ini_str())
897
898 print >>ini_file # blank line between objects
899
900 def getCCParams(self):
901 if self._ccParams:
902 return self._ccParams
903
904 cc_params_struct = getattr(m5.internal.params, '%sParams' % self.type)
905 cc_params = cc_params_struct()
906 cc_params.pyobj = self
907 cc_params.name = str(self)

--- 185 unchanged lines hidden ---