params.py (13709:dd6b7ac5801f) | params.py (13711:e796a82c5154) |
---|---|
1# Copyright (c) 2012-2014, 2017, 2018 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 --- 592 unchanged lines hidden (view full) --- 601 raise TypeError("Can't convert object of type %s to CheckedInt" \ 602 % type(value).__name__) 603 self._check() 604 605 def __call__(self, value): 606 self.__init__(value) 607 return value 608 | 1# Copyright (c) 2012-2014, 2017, 2018 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 --- 592 unchanged lines hidden (view full) --- 601 raise TypeError("Can't convert object of type %s to CheckedInt" \ 602 % type(value).__name__) 603 self._check() 604 605 def __call__(self, value): 606 self.__init__(value) 607 return value 608 |
609 def __index__(self): 610 return int(self.value) 611 |
|
609 @classmethod 610 def cxx_predecls(cls, code): 611 # most derived types require this, so we just do it here once 612 code('#include "base/types.hh"') 613 614 def getValue(self): 615 return long(self.value) 616 --- 1543 unchanged lines hidden --- | 612 @classmethod 613 def cxx_predecls(cls, code): 614 # most derived types require this, so we just do it here once 615 code('#include "base/types.hh"') 616 617 def getValue(self): 618 return long(self.value) 619 --- 1543 unchanged lines hidden --- |