Fix the EtherDump parameters
dev/etherdump.cc: no default parameters anymore they should be in python python/m5/objects/Ethernet.py: move the maxlen parameter for EtherDump into python --HG-- extra : convert_revision : a796353a68907dfeb22059cd3ad536e6e8f60998
This commit is contained in:
parent
36b9e9fcda
commit
f88d7c7456
2 changed files with 3 additions and 2 deletions
|
@ -123,8 +123,8 @@ END_DECLARE_SIM_OBJECT_PARAMS(EtherDump)
|
||||||
|
|
||||||
BEGIN_INIT_SIM_OBJECT_PARAMS(EtherDump)
|
BEGIN_INIT_SIM_OBJECT_PARAMS(EtherDump)
|
||||||
|
|
||||||
INIT_PARAM_DFLT(file, "file to dump packets to", "etherdump"),
|
INIT_PARAM(file, "file to dump packets to"),
|
||||||
INIT_PARAM_DFLT(maxlen, "max portion of packet data to dump", 96)
|
INIT_PARAM(maxlen, "max portion of packet data to dump")
|
||||||
|
|
||||||
END_INIT_SIM_OBJECT_PARAMS(EtherDump)
|
END_INIT_SIM_OBJECT_PARAMS(EtherDump)
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ class EtherTap(EtherInt):
|
||||||
class EtherDump(SimObject):
|
class EtherDump(SimObject):
|
||||||
type = 'EtherDump'
|
type = 'EtherDump'
|
||||||
file = Param.String("dump file")
|
file = Param.String("dump file")
|
||||||
|
maxlen = Param.Int(96, "max portion of packet data to dump")
|
||||||
|
|
||||||
if build_env['ALPHA_TLASER']:
|
if build_env['ALPHA_TLASER']:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue