From: Nathan Binkert Date: Sat, 17 Sep 2005 14:47:16 +0000 (-0400) Subject: Fix the EtherDump parameters X-Git-Tag: m5_1.1~18 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f88d7c7456ed0064316ef46b59ab71a3c25e91f1;p=gem5.git 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 --- diff --git a/dev/etherdump.cc b/dev/etherdump.cc index 9e02a4f0f..d8a51fc5b 100644 --- a/dev/etherdump.cc +++ b/dev/etherdump.cc @@ -123,8 +123,8 @@ END_DECLARE_SIM_OBJECT_PARAMS(EtherDump) BEGIN_INIT_SIM_OBJECT_PARAMS(EtherDump) - INIT_PARAM_DFLT(file, "file to dump packets to", "etherdump"), - INIT_PARAM_DFLT(maxlen, "max portion of packet data to dump", 96) + INIT_PARAM(file, "file to dump packets to"), + INIT_PARAM(maxlen, "max portion of packet data to dump") END_INIT_SIM_OBJECT_PARAMS(EtherDump) diff --git a/python/m5/objects/Ethernet.py b/python/m5/objects/Ethernet.py index a357ba346..d3e8c2811 100644 --- a/python/m5/objects/Ethernet.py +++ b/python/m5/objects/Ethernet.py @@ -30,6 +30,7 @@ class EtherTap(EtherInt): class EtherDump(SimObject): type = 'EtherDump' file = Param.String("dump file") + maxlen = Param.Int(96, "max portion of packet data to dump") if build_env['ALPHA_TLASER']: