params.py (12196:4c1449b32810) params.py (12197:5e4f0d7da198)
1# Copyright (c) 2012-2014, 2017 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

1689#
1690
1691# Special class for NULL pointers. Note the special check in
1692# make_param_value() above that lets these be assigned where a
1693# SimObject is required.
1694# only one copy of a particular node
1695class NullSimObject(object):
1696 __metaclass__ = Singleton
1# Copyright (c) 2012-2014, 2017 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

1689#
1690
1691# Special class for NULL pointers. Note the special check in
1692# make_param_value() above that lets these be assigned where a
1693# SimObject is required.
1694# only one copy of a particular node
1695class NullSimObject(object):
1696 __metaclass__ = Singleton
1697 _name = 'Null'
1697
1698 def __call__(cls):
1699 return cls
1700
1701 def _instantiate(self, parent = None, path = ''):
1702 pass
1703
1704 def ini_str(self):

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

1716 def clear_parent(self, old_parent):
1717 pass
1718
1719 def descendants(self):
1720 return
1721 yield None
1722
1723 def __str__(self):
1698
1699 def __call__(cls):
1700 return cls
1701
1702 def _instantiate(self, parent = None, path = ''):
1703 pass
1704
1705 def ini_str(self):

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

1717 def clear_parent(self, old_parent):
1718 pass
1719
1720 def descendants(self):
1721 return
1722 yield None
1723
1724 def __str__(self):
1724 return 'Null'
1725 return self._name
1725
1726 def config_value(self):
1727 return None
1728
1729 def getValue(self):
1730 return None
1731
1732# The only instance you'll ever need...

--- 355 unchanged lines hidden ---
1726
1727 def config_value(self):
1728 return None
1729
1730 def getValue(self):
1731 return None
1732
1733# The only instance you'll ever need...

--- 355 unchanged lines hidden ---