SimObject.py (9100:3caf131d7a95) | SimObject.py (9195:77fd8912c9d4) |
---|---|
1# Copyright (c) 2012 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 --- 583 unchanged lines hidden (view full) --- 592 Draining, 593 Drained 594 }; 595 596 void init(); 597 void loadState(Checkpoint *cp); 598 void initState(); 599 void regStats(); | 1# Copyright (c) 2012 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 --- 583 unchanged lines hidden (view full) --- 592 Draining, 593 Drained 594 }; 595 596 void init(); 597 void loadState(Checkpoint *cp); 598 void initState(); 599 void regStats(); |
600 void regFormulas(); | |
601 void resetStats(); 602 void startup(); 603 604 unsigned int drain(Event *drain_event); 605 void resume(); 606 void switchOut(); 607 void takeOverFrom(BaseCPU *cpu); 608''') --- 93 unchanged lines hidden (view full) --- 702 return self._values[attr] 703 704 if self._children.has_key(attr): 705 return self._children[attr] 706 707 # If the attribute exists on the C++ object, transparently 708 # forward the reference there. This is typically used for 709 # SWIG-wrapped methods such as init(), regStats(), | 600 void resetStats(); 601 void startup(); 602 603 unsigned int drain(Event *drain_event); 604 void resume(); 605 void switchOut(); 606 void takeOverFrom(BaseCPU *cpu); 607''') --- 93 unchanged lines hidden (view full) --- 701 return self._values[attr] 702 703 if self._children.has_key(attr): 704 return self._children[attr] 705 706 # If the attribute exists on the C++ object, transparently 707 # forward the reference there. This is typically used for 708 # SWIG-wrapped methods such as init(), regStats(), |
710 # regFormulas(), resetStats(), startup(), drain(), and | 709 # resetStats(), startup(), drain(), and |
711 # resume(). 712 if self._ccObject and hasattr(self._ccObject, attr): 713 return getattr(self._ccObject, attr) 714 715 raise AttributeError, "object '%s' has no attribute '%s'" \ 716 % (self.__class__.__name__, attr) 717 718 # Set attribute (called on foo.attr = value when foo is an --- 411 unchanged lines hidden --- | 710 # resume(). 711 if self._ccObject and hasattr(self._ccObject, attr): 712 return getattr(self._ccObject, attr) 713 714 raise AttributeError, "object '%s' has no attribute '%s'" \ 715 % (self.__class__.__name__, attr) 716 717 # Set attribute (called on foo.attr = value when foo is an --- 411 unchanged lines hidden --- |