diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-06-20 08:14:11 -0700 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-06-20 08:14:11 -0700 |
commit | b47737dde7e9138a7e7511380d785f11417552d0 (patch) | |
tree | f3de77e7b3ead10ccc01c23f4eadb9518ba6c909 /src/dev | |
parent | 438ec924d65f0ff36a88965b6db0b3d0c4c115b3 (diff) | |
download | gem5-b47737dde7e9138a7e7511380d785f11417552d0.tar.xz |
Make sure all parameters have default values if they're
supposed to and make sure parameters have the right type.
Also make sure that any object that should be an intermediate
type has the right options set.
--HG--
extra : convert_revision : d56910628d9a067699827adbc0a26ab629d11e93
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/Ethernet.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dev/Ethernet.py b/src/dev/Ethernet.py index e81862a96..587087640 100644 --- a/src/dev/Ethernet.py +++ b/src/dev/Ethernet.py @@ -64,7 +64,8 @@ class EtherDump(SimObject): class IGbE(PciDevice): type = 'IGbE' - hardware_address = Param.String("Ethernet Hardware Address") + hardware_address = Param.EthernetAddr(NextEthernetAddr, + "Ethernet Hardware Address") use_flow_control = Param.Bool(False, "Should we use xon/xoff flow contorl (UNIMPLEMENTD)") rx_fifo_size = Param.MemorySize('384kB', "Size of the rx FIFO") @@ -100,9 +101,9 @@ class IGbEInt(EtherInt): type = 'IGbEInt' device = Param.IGbE("Ethernet device of this interface") - - class EtherDevBase(PciDevice): + type = 'EtherDevBase' + abstract = True hardware_address = Param.EthernetAddr(NextEthernetAddr, "Ethernet Hardware Address") |