params.py (10676:f6c168692b20) | params.py (11228:021524c21cbc) |
---|---|
1# Copyright (c) 2012-2014 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 --- 916 unchanged lines hidden (view full) --- 925 if self.value == NextEthernetAddr: 926 return EthernetAddr(self.value()) 927 return self 928 929 def getValue(self): 930 from m5.internal.params import EthAddr 931 return EthAddr(self.value) 932 | 1# Copyright (c) 2012-2014 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 --- 916 unchanged lines hidden (view full) --- 925 if self.value == NextEthernetAddr: 926 return EthernetAddr(self.value()) 927 return self 928 929 def getValue(self): 930 from m5.internal.params import EthAddr 931 return EthAddr(self.value) 932 |
933 def __str__(self): 934 return self.value 935 |
|
933 def ini_str(self): 934 return self.value 935 936 @classmethod 937 def cxx_ini_parse(self, code, src, dest, ret): 938 code('%s = Net::EthAddr(%s);' % (dest, src)) 939 code('%s true;' % ret) 940 --- 1174 unchanged lines hidden --- | 936 def ini_str(self): 937 return self.value 938 939 @classmethod 940 def cxx_ini_parse(self, code, src, dest, ret): 941 code('%s = Net::EthAddr(%s);' % (dest, src)) 942 code('%s true;' % ret) 943 --- 1174 unchanged lines hidden --- |