misc: Remove unused params() definitions

Lots of times the params() helper has been defined but not used

Change-Id: Id71829aca71341d46964d8f071099342b946b62f
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41613
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Giacomo Travaglini
2021-02-18 11:13:45 +00:00
parent 92ba3ba843
commit 41928dac80
63 changed files with 69 additions and 68 deletions

View File

@@ -475,7 +475,7 @@ class GicV2 : public BaseGic, public BaseGicRegisters
int pendingDelayedInterrupts;
public:
PARAMS(GicV2);
using Params = GicV2Params;
GicV2(const Params &p);
~GicV2();

View File

@@ -356,7 +356,7 @@ class Pl111: public AmbaDmaDevice
bool enableCapture;
public:
PARAMS(Pl111);
using Params = Pl111Params;
Pl111(const Params &p);
~Pl111();

View File

@@ -63,7 +63,7 @@ class RealView : public Platform
BaseGic *gic;
public:
PARAMS(RealView);
using Params = RealViewParams;
/**
* Constructor for the Tsunami Class.

View File

@@ -97,7 +97,7 @@ class PL031 : public AmbaIntDevice
void resyncMatch();
public:
PARAMS(PL031);
using Params = PL031Params;
/**
* The constructor for RealView just registers itself with the MMU.

View File

@@ -149,7 +149,7 @@ class A9GlobalTimer : public BasicPioDevice
Timer global_timer;
public:
PARAMS(A9GlobalTimer);
using Params = A9GlobalTimerParams;
/**
* The constructor for RealView just registers itself with the MMU.

View File

@@ -135,7 +135,7 @@ class Sp804 : public AmbaPioDevice
Timer timer1;
public:
PARAMS(Sp804);
using Params = Sp804Params;
/**
* The constructor for RealView just registers itself with the MMU.

View File

@@ -186,7 +186,7 @@ class VGic : public PioDevice
struct std::array<vcpuIntData, VGIC_CPU_MAX> vcpuData;
public:
PARAMS(VGic);
using Params = VGicParams;
VGic(const Params &p);
~VGic();

View File

@@ -49,7 +49,7 @@ class BadDevice : public BasicPioDevice
std::string devname;
public:
PARAMS(BadDevice);
using Params = BadDeviceParams;
/**
* Constructor for the Baddev Class.

View File

@@ -128,7 +128,7 @@ class PioDevice : public ClockedObject
virtual Tick write(PacketPtr pkt) = 0;
public:
PARAMS(PioDevice);
using Params = PioDeviceParams;
PioDevice(const Params &p);
virtual ~PioDevice();

View File

@@ -76,7 +76,7 @@ class MaltaCChip : public BasicPioDevice
//uint64_t itint;
public:
PARAMS(MaltaCChip);
using Params = MaltaCChipParams;
/**
* Initialize the Malta CChip by setting all of the

View File

@@ -215,7 +215,7 @@ class DistEtherLink : public SimObject
Tick linkDelay;
public:
PARAMS(DistEtherLink);
using Params = DistEtherLinkParams;
DistEtherLink(const Params &p);
~DistEtherLink();

View File

@@ -55,7 +55,7 @@ class EtherBus : public SimObject
EtherDump *dump;
public:
PARAMS(EtherBus);
using Params = EtherBusParams;
EtherBus(const Params &p);
virtual ~EtherBus() {}

View File

@@ -45,7 +45,7 @@ class EtherInt;
class EtherDevice : public PciDevice
{
public:
PARAMS(EtherDevice);
using Params = EtherDeviceParams;
EtherDevice(const Params &params)
: PciDevice(params),
etherDeviceStats(this)
@@ -140,7 +140,7 @@ class EtherDevice : public PciDevice
class EtherDevBase : public EtherDevice
{
public:
PARAMS(EtherDevBase);
using Params = EtherDevBaseParams;
EtherDevBase(const Params &params)
: EtherDevice(params)
{}

View File

@@ -140,7 +140,7 @@ class EtherLink : public SimObject
Interface *interface[2];
public:
PARAMS(EtherLink);
using Params = EtherLinkParams;
EtherLink(const Params &p);
virtual ~EtherLink();

View File

@@ -51,7 +51,7 @@
class EtherSwitch : public SimObject
{
public:
PARAMS(EtherSwitch);
using Params = EtherSwitchParams;
EtherSwitch(const Params &p);
~EtherSwitch();

View File

@@ -56,7 +56,7 @@ class EtherTapInt;
class EtherTapBase : public SimObject
{
public:
PARAMS(EtherTapBase);
using Params = EtherTapBaseParams;
EtherTapBase(const Params &p);
virtual ~EtherTapBase();
@@ -130,7 +130,7 @@ class TapListener;
class EtherTapStub : public EtherTapBase
{
public:
PARAMS(EtherTapStub);
using Params = EtherTapStubParams;
EtherTapStub(const Params &p);
~EtherTapStub();
@@ -159,7 +159,7 @@ class EtherTapStub : public EtherTapBase
class EtherTap : public EtherTapBase
{
public:
PARAMS(EtherTap);
using Params = EtherTapParams;
EtherTap(const Params &p);
~EtherTap();

View File

@@ -51,7 +51,7 @@ class Uart : public BasicPioDevice
SerialDevice *device;
public:
PARAMS(Uart);
using Params = UartParams;
Uart(const Params &p, Addr pio_size);
/**

View File

@@ -209,7 +209,7 @@ class Uart8250 : public Uart
EventFunctionWrapper rxIntrEvent;
public:
PARAMS(Uart8250);
using Params = Uart8250Params;
Uart8250(const Params &p);
Tick read(PacketPtr pkt) override;

View File

@@ -49,7 +49,7 @@ class DumbTOD : public BasicPioDevice
uint64_t todTime;
public:
PARAMS(DumbTOD);
using Params = DumbTODParams;
DumbTOD(const Params &p);
Tick read(PacketPtr pkt) override;

View File

@@ -47,7 +47,7 @@ class MmDisk : public BasicPioDevice
uint8_t diskData[SectorSize];
public:
PARAMS(MmDisk);
using Params = MmDiskParams;
MmDisk(const Params &p);
Tick read(PacketPtr pkt) override;

View File

@@ -117,7 +117,7 @@ class I8042 : public BasicPioDevice
uint8_t readDataOut();
public:
PARAMS(I8042);
using Params = I8042Params;
I8042(const Params &p);

View File

@@ -85,7 +85,7 @@ class I82094AA : public BasicPioDevice
IntRequestPort<I82094AA> intRequestPort;
public:
PARAMS(I82094AA);
using Params = I82094AAParams;
I82094AA(const Params &p);

View File

@@ -92,7 +92,7 @@ class I8237 : public BasicPioDevice
void setMaskBit(Register &reg, const uint8_t &command);
public:
PARAMS(I8237);
using Params = I8237Params;
I8237(const Params &p);

View File

@@ -66,7 +66,7 @@ class I8254 : public BasicPioDevice
void counterInterrupt(unsigned int num);
public:
PARAMS(I8254);
using Params = I8254Params;
Port &
getPort(const std::string &if_name, PortID idx=InvalidPortID) override

View File

@@ -81,7 +81,7 @@ class I8259 : public BasicPioDevice
void handleEOI(int line);
public:
PARAMS(I8259);
using Params = I8259Params;
I8259(const Params &p);

View File

@@ -55,7 +55,7 @@ class SouthBridge : public SimObject
X86ISA::I82094AA * ioApic;
public:
PARAMS(SouthBridge);
using Params = SouthBridgeParams;
SouthBridge(const Params &p);
};

View File

@@ -54,7 +54,7 @@ class Speaker : public BasicPioDevice
I8254 * timer;
public:
PARAMS(PcSpeaker);
using Params = PcSpeakerParams;
Speaker(const Params &p) : BasicPioDevice(p, 1),
latency(p.pio_latency), controlVal(0), timer(p.i8254)