Make the Event::description() a const function
--HG-- extra : convert_revision : c7768d54d3f78685e93920069f5485083ca989c0
This commit is contained in:
parent
0ccf9a2c37
commit
6cc1573923
|
@ -577,7 +577,7 @@ MiscRegFile::CP0Event::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
MiscRegFile::CP0Event::description()
|
||||
MiscRegFile::CP0Event::description() const
|
||||
{
|
||||
return "Coprocessor-0 event";
|
||||
}
|
||||
|
|
|
@ -139,7 +139,7 @@ namespace MipsISA
|
|||
virtual void process();
|
||||
|
||||
/** Returns the description of this event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
|
||||
/** Schedule This Event */
|
||||
void scheduleEvent(int delay);
|
||||
|
|
|
@ -88,7 +88,7 @@ CPUProgressEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
CPUProgressEvent::description()
|
||||
CPUProgressEvent::description() const
|
||||
{
|
||||
return "CPU Progress";
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ class CPUProgressEvent : public Event
|
|||
|
||||
void process();
|
||||
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
class BaseCPU : public MemObject
|
||||
|
|
|
@ -77,7 +77,7 @@ class MemTest : public MemObject
|
|||
TickEvent(MemTest *c)
|
||||
: Event(&mainEventQueue, CPU_Tick_Pri), cpu(c) {}
|
||||
void process() {cpu->tick();}
|
||||
virtual const char *description() { return "MemTest tick"; }
|
||||
virtual const char *description() const { return "MemTest tick"; }
|
||||
};
|
||||
|
||||
TickEvent tickEvent;
|
||||
|
|
|
@ -97,7 +97,7 @@ class DefaultCommit
|
|||
TrapEvent(DefaultCommit<Impl> *_commit, unsigned _tid);
|
||||
|
||||
void process();
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
/** Overall commit status. Used to determine if the CPU can deschedule
|
||||
|
|
|
@ -65,7 +65,7 @@ DefaultCommit<Impl>::TrapEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
DefaultCommit<Impl>::TrapEvent::description()
|
||||
DefaultCommit<Impl>::TrapEvent::description() const
|
||||
{
|
||||
return "Trap";
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ FullO3CPU<Impl>::TickEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
FullO3CPU<Impl>::TickEvent::description()
|
||||
FullO3CPU<Impl>::TickEvent::description() const
|
||||
{
|
||||
return "FullO3CPU tick";
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ FullO3CPU<Impl>::ActivateThreadEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
FullO3CPU<Impl>::ActivateThreadEvent::description()
|
||||
FullO3CPU<Impl>::ActivateThreadEvent::description() const
|
||||
{
|
||||
return "FullO3CPU \"Activate Thread\"";
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ FullO3CPU<Impl>::DeallocateContextEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
FullO3CPU<Impl>::DeallocateContextEvent::description()
|
||||
FullO3CPU<Impl>::DeallocateContextEvent::description() const
|
||||
{
|
||||
return "FullO3CPU \"Deallocate Context\"";
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ class FullO3CPU : public BaseO3CPU
|
|||
/** Processes a tick event, calling tick() on the CPU. */
|
||||
void process();
|
||||
/** Returns the description of the tick event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
/** The tick event used for scheduling CPU ticks. */
|
||||
|
@ -178,7 +178,7 @@ class FullO3CPU : public BaseO3CPU
|
|||
void process();
|
||||
|
||||
/** Returns the description of the event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
/** Schedule thread to activate , regardless of its current state. */
|
||||
|
@ -229,7 +229,7 @@ class FullO3CPU : public BaseO3CPU
|
|||
void setRemove(bool _remove) { remove = _remove; }
|
||||
|
||||
/** Returns the description of the event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
/** Schedule cpu to deallocate thread context.*/
|
||||
|
|
|
@ -105,7 +105,7 @@ class InstructionQueue
|
|||
InstructionQueue<Impl> *iq_ptr);
|
||||
|
||||
virtual void process();
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
void setFreeFU() { freeFU = true; }
|
||||
};
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ InstructionQueue<Impl>::FUCompletion::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
InstructionQueue<Impl>::FUCompletion::description()
|
||||
InstructionQueue<Impl>::FUCompletion::description() const
|
||||
{
|
||||
return "Functional unit completion";
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ class LSQUnit {
|
|||
void process();
|
||||
|
||||
/** Returns the description of this event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
|
||||
private:
|
||||
/** Instruction whose results are being written back. */
|
||||
|
|
|
@ -67,7 +67,7 @@ LSQUnit<Impl>::WritebackEvent::process()
|
|||
|
||||
template<class Impl>
|
||||
const char *
|
||||
LSQUnit<Impl>::WritebackEvent::description()
|
||||
LSQUnit<Impl>::WritebackEvent::description() const
|
||||
{
|
||||
return "Store writeback";
|
||||
}
|
||||
|
|
|
@ -186,7 +186,7 @@ class BackEnd
|
|||
/** Processes writeback event. */
|
||||
virtual void process();
|
||||
/** Returns the description of the writeback event. */
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
BackEnd(Params *params);
|
||||
|
@ -309,7 +309,7 @@ class BackEnd
|
|||
DCacheCompletionEvent(BackEnd *_be);
|
||||
|
||||
virtual void process();
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
friend class DCacheCompletionEvent;
|
||||
|
|
|
@ -581,7 +581,7 @@ BackEnd<Impl>::LdWritebackEvent::process()
|
|||
|
||||
template<class Impl>
|
||||
const char *
|
||||
BackEnd<Impl>::LdWritebackEvent::description()
|
||||
BackEnd<Impl>::LdWritebackEvent::description() const
|
||||
{
|
||||
return "Load writeback";
|
||||
}
|
||||
|
@ -601,7 +601,7 @@ BackEnd<Impl>::DCacheCompletionEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
BackEnd<Impl>::DCacheCompletionEvent::description()
|
||||
BackEnd<Impl>::DCacheCompletionEvent::description() const
|
||||
{
|
||||
return "Cache completion";
|
||||
}
|
||||
|
|
|
@ -306,7 +306,7 @@ class OzoneCPU : public BaseCPU
|
|||
|
||||
TickEvent(OzoneCPU *c, int w);
|
||||
void process();
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
TickEvent tickEvent;
|
||||
|
|
|
@ -82,7 +82,7 @@ OzoneCPU<Impl>::TickEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
OzoneCPU<Impl>::TickEvent::description()
|
||||
OzoneCPU<Impl>::TickEvent::description() const
|
||||
{
|
||||
return "OzoneCPU tick";
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ class InorderBackEnd
|
|||
DCacheCompletionEvent(InorderBackEnd *_be);
|
||||
|
||||
virtual void process();
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
|
||||
DynInstPtr inst;
|
||||
};
|
||||
|
|
|
@ -538,7 +538,7 @@ InorderBackEnd<Impl>::DCacheCompletionEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
InorderBackEnd<Impl>::DCacheCompletionEvent::description()
|
||||
InorderBackEnd<Impl>::DCacheCompletionEvent::description() const
|
||||
{
|
||||
return "DCache completion";
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ class InstQueue
|
|||
InstQueue<Impl> *iq_ptr);
|
||||
|
||||
virtual void process();
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
#endif
|
||||
/** Constructs an IQ. */
|
||||
|
|
|
@ -62,7 +62,7 @@ InstQueue<Impl>::FUCompletion::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
InstQueue<Impl>::FUCompletion::description()
|
||||
InstQueue<Impl>::FUCompletion::description() const
|
||||
{
|
||||
return "Functional unit completion";
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ class OzoneLSQ {
|
|||
void process();
|
||||
|
||||
/** Returns the description of this event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
|
||||
private:
|
||||
/** The store index of the store being written back. */
|
||||
|
|
|
@ -60,7 +60,7 @@ OzoneLSQ<Impl>::StoreCompletionEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
OzoneLSQ<Impl>::StoreCompletionEvent::description()
|
||||
OzoneLSQ<Impl>::StoreCompletionEvent::description() const
|
||||
{
|
||||
return "LSQ store completion";
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ class LWBackEnd
|
|||
TrapEvent(LWBackEnd<Impl> *_be);
|
||||
|
||||
void process();
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
LWBackEnd(Params *params);
|
||||
|
|
|
@ -119,7 +119,7 @@ LWBackEnd<Impl>::TrapEvent::process()
|
|||
|
||||
template <class Impl>
|
||||
const char *
|
||||
LWBackEnd<Impl>::TrapEvent::description()
|
||||
LWBackEnd<Impl>::TrapEvent::description() const
|
||||
{
|
||||
return "Trap";
|
||||
}
|
||||
|
|
|
@ -329,7 +329,7 @@ class OzoneLWLSQ {
|
|||
void process();
|
||||
|
||||
/** Returns the description of this event. */
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
|
||||
private:
|
||||
/** Instruction whose results are being written back. */
|
||||
|
|
|
@ -55,7 +55,7 @@ OzoneLWLSQ<Impl>::WritebackEvent::process()
|
|||
|
||||
template<class Impl>
|
||||
const char *
|
||||
OzoneLWLSQ<Impl>::WritebackEvent::description()
|
||||
OzoneLWLSQ<Impl>::WritebackEvent::description() const
|
||||
{
|
||||
return "Store writeback";
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ EndQuiesceEvent::process()
|
|||
}
|
||||
|
||||
const char*
|
||||
EndQuiesceEvent::description()
|
||||
EndQuiesceEvent::description() const
|
||||
{
|
||||
return "End Quiesce";
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ struct EndQuiesceEvent : public Event
|
|||
virtual void process();
|
||||
|
||||
/** Event description */
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
#endif // __CPU_QUIESCE_EVENT_HH__
|
||||
|
|
|
@ -55,7 +55,7 @@ AtomicSimpleCPU::TickEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
AtomicSimpleCPU::TickEvent::description()
|
||||
AtomicSimpleCPU::TickEvent::description() const
|
||||
{
|
||||
return "AtomicSimpleCPU tick";
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ class AtomicSimpleCPU : public BaseSimpleCPU
|
|||
|
||||
TickEvent(AtomicSimpleCPU *c);
|
||||
void process();
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
TickEvent tickEvent;
|
||||
|
|
|
@ -822,7 +822,7 @@ TimingSimpleCPU::IprEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
TimingSimpleCPU::IprEvent::description()
|
||||
TimingSimpleCPU::IprEvent::description() const
|
||||
{
|
||||
return "Timing Simple CPU Delay IPR event";
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ class TimingSimpleCPU : public BaseSimpleCPU
|
|||
|
||||
TickEvent(TimingSimpleCPU *_cpu)
|
||||
:Event(&mainEventQueue), cpu(_cpu) {}
|
||||
const char *description() { return "Timing CPU tick"; }
|
||||
const char *description() const { return "Timing CPU tick"; }
|
||||
void schedule(PacketPtr _pkt, Tick t);
|
||||
};
|
||||
|
||||
|
@ -127,7 +127,7 @@ class TimingSimpleCPU : public BaseSimpleCPU
|
|||
ITickEvent(TimingSimpleCPU *_cpu)
|
||||
: TickEvent(_cpu) {}
|
||||
void process();
|
||||
const char *description() { return "Timing CPU icache tick"; }
|
||||
const char *description() const { return "Timing CPU icache tick"; }
|
||||
};
|
||||
|
||||
ITickEvent tickEvent;
|
||||
|
@ -155,7 +155,7 @@ class TimingSimpleCPU : public BaseSimpleCPU
|
|||
DTickEvent(TimingSimpleCPU *_cpu)
|
||||
: TickEvent(_cpu) {}
|
||||
void process();
|
||||
const char *description() { return "Timing CPU dcache tick"; }
|
||||
const char *description() const { return "Timing CPU dcache tick"; }
|
||||
};
|
||||
|
||||
DTickEvent tickEvent;
|
||||
|
@ -219,7 +219,7 @@ class TimingSimpleCPU : public BaseSimpleCPU
|
|||
TimingSimpleCPU *cpu;
|
||||
IprEvent(Packet *_pkt, TimingSimpleCPU *_cpu, Tick t);
|
||||
virtual void process();
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
void completeDrain();
|
||||
|
|
|
@ -204,7 +204,7 @@ OptCPU::TickEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
OptCPU::TickEvent::description()
|
||||
OptCPU::TickEvent::description() const
|
||||
{
|
||||
return "OptCPU tick";
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ class OptCPU : public SimObject
|
|||
/**
|
||||
* Return a string description of this event.
|
||||
*/
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
TickEvent tickEvent;
|
||||
|
|
|
@ -129,7 +129,7 @@ TraceCompleteEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
TraceCompleteEvent::description()
|
||||
TraceCompleteEvent::description() const
|
||||
{
|
||||
return "trace access complete";
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ TraceCPU::TickEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
TraceCPU::TickEvent::description()
|
||||
TraceCPU::TickEvent::description() const
|
||||
{
|
||||
return "TraceCPU tick";
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ class TraceCPU : public SimObject
|
|||
/**
|
||||
* Return a string description of this event.
|
||||
*/
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
TickEvent tickEvent;
|
||||
|
@ -135,7 +135,7 @@ class TraceCompleteEvent : public Event
|
|||
|
||||
void process();
|
||||
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
#endif // __CPU_TRACE_TRACE_CPU_HH__
|
||||
|
|
|
@ -205,7 +205,7 @@ TsunamiIO::RTC::RTCEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
TsunamiIO::RTC::RTCEvent::description()
|
||||
TsunamiIO::RTC::RTCEvent::description() const
|
||||
{
|
||||
return "tsunami RTC interrupt";
|
||||
}
|
||||
|
@ -429,7 +429,7 @@ TsunamiIO::PITimer::Counter::CounterEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
TsunamiIO::PITimer::Counter::CounterEvent::description()
|
||||
TsunamiIO::PITimer::Counter::CounterEvent::description() const
|
||||
{
|
||||
return "tsunami 8254 Interval timer";
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ class TsunamiIO : public BasicPioDevice
|
|||
virtual void process();
|
||||
|
||||
/** Event description */
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -161,7 +161,7 @@ class TsunamiIO : public BasicPioDevice
|
|||
virtual void process();
|
||||
|
||||
/** Event description */
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
|
||||
friend class Counter;
|
||||
};
|
||||
|
|
|
@ -62,7 +62,8 @@ class EtherBus : public EtherObject
|
|||
DoneEvent(EventQueue *q, EtherBus *b)
|
||||
: Event(q), bus(b) {}
|
||||
virtual void process() { bus->txDone(); }
|
||||
virtual const char *description() { return "ethernet bus completion"; }
|
||||
virtual const char *description() const
|
||||
{ return "ethernet bus completion"; }
|
||||
};
|
||||
|
||||
DoneEvent event;
|
||||
|
|
|
@ -93,7 +93,8 @@ class EtherTap : public EtherObject
|
|||
TxEvent(EtherTap *_tap)
|
||||
: Event(&mainEventQueue), tap(_tap) {}
|
||||
void process() { tap->retransmit(); }
|
||||
virtual const char *description() { return "EtherTap retransmit"; }
|
||||
virtual const char *description() const
|
||||
{ return "EtherTap retransmit"; }
|
||||
};
|
||||
|
||||
friend class TxEvent;
|
||||
|
|
|
@ -208,7 +208,7 @@ MaltaIO::RTC::RTCEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
MaltaIO::RTC::RTCEvent::description()
|
||||
MaltaIO::RTC::RTCEvent::description() const
|
||||
{
|
||||
return "malta RTC interrupt";
|
||||
}
|
||||
|
@ -461,7 +461,7 @@ MaltaIO::PITimer::Counter::CounterEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
MaltaIO::PITimer::Counter::CounterEvent::description()
|
||||
MaltaIO::PITimer::Counter::CounterEvent::description() const
|
||||
{
|
||||
return "malta 8254 Interval timer";
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ class MaltaIO : public BasicPioDevice
|
|||
virtual void process();
|
||||
|
||||
/** Event description */
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -171,7 +171,7 @@ class MaltaIO : public BasicPioDevice
|
|||
virtual void process();
|
||||
|
||||
/** Event description */
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
|
||||
friend class Counter;
|
||||
};
|
||||
|
|
|
@ -55,7 +55,7 @@ Uart8250::IntrEvent::IntrEvent(Uart8250 *u, int bit)
|
|||
}
|
||||
|
||||
const char *
|
||||
Uart8250::IntrEvent::description()
|
||||
Uart8250::IntrEvent::description() const
|
||||
{
|
||||
return "uart interrupt delay";
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ class Uart8250 : public Uart
|
|||
public:
|
||||
IntrEvent(Uart8250 *u, int bit);
|
||||
virtual void process();
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
void scheduleIntr();
|
||||
};
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ class Bridge : public MemObject
|
|||
|
||||
virtual void process() { port->trySend(); }
|
||||
|
||||
virtual const char *description() { return "bridge send"; }
|
||||
virtual const char *description() const { return "bridge send"; }
|
||||
};
|
||||
|
||||
SendEvent sendEvent;
|
||||
|
|
|
@ -105,7 +105,7 @@ void Bus::BusFreeEvent::process()
|
|||
bus->recvRetry(-1);
|
||||
}
|
||||
|
||||
const char * Bus::BusFreeEvent::description()
|
||||
const char * Bus::BusFreeEvent::description() const
|
||||
{
|
||||
return "bus became available";
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ class Bus : public MemObject
|
|||
public:
|
||||
BusFreeEvent(Bus * _bus);
|
||||
void process();
|
||||
const char *description();
|
||||
const char *description() const;
|
||||
};
|
||||
|
||||
/** a globally unique id for this bus. */
|
||||
|
|
|
@ -63,7 +63,7 @@ class DebugBreakEvent : public Event
|
|||
DebugBreakEvent(EventQueue *q, Tick _when);
|
||||
|
||||
void process(); // process event
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
//
|
||||
|
@ -87,7 +87,7 @@ DebugBreakEvent::process()
|
|||
|
||||
|
||||
const char *
|
||||
DebugBreakEvent::description()
|
||||
DebugBreakEvent::description() const
|
||||
{
|
||||
return "debug break";
|
||||
}
|
||||
|
|
|
@ -230,7 +230,7 @@ dumpMainQueue()
|
|||
|
||||
|
||||
const char *
|
||||
Event::description()
|
||||
Event::description() const
|
||||
{
|
||||
return "generic";
|
||||
}
|
||||
|
|
|
@ -219,7 +219,7 @@ class Event : public Serializable, public FastAlloc
|
|||
/// Return a C string describing the event. This string should
|
||||
/// *not* be dynamically allocated; just a const char array
|
||||
/// describing the event class.
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
|
||||
/// Dump the current event data
|
||||
void dump();
|
||||
|
@ -280,7 +280,7 @@ DelayFunction(Tick when, T *object)
|
|||
: Event(&mainEventQueue), object(o)
|
||||
{ setFlags(this->AutoDestroy); schedule(when); }
|
||||
void process() { (object->*F)(); }
|
||||
const char *description() { return "delay"; }
|
||||
const char *description() const { return "delay"; }
|
||||
};
|
||||
|
||||
new DelayEvent(when, object);
|
||||
|
|
|
@ -65,7 +65,7 @@ SimLoopExitEvent::process()
|
|||
|
||||
|
||||
const char *
|
||||
SimLoopExitEvent::description()
|
||||
SimLoopExitEvent::description() const
|
||||
{
|
||||
return "simulation loop exit";
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ CountedExitEvent::process()
|
|||
|
||||
|
||||
const char *
|
||||
CountedExitEvent::description()
|
||||
CountedExitEvent::description() const
|
||||
{
|
||||
return "counted exit";
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ CheckSwapEvent::process()
|
|||
}
|
||||
|
||||
const char *
|
||||
CheckSwapEvent::description()
|
||||
CheckSwapEvent::description() const
|
||||
{
|
||||
return "check swap";
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ class SimLoopExitEvent : public Event
|
|||
|
||||
void process(); // process event
|
||||
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
class CountedDrainEvent : public SimLoopExitEvent
|
||||
|
@ -104,7 +104,7 @@ class CountedExitEvent : public Event
|
|||
|
||||
void process(); // process event
|
||||
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
//
|
||||
|
@ -122,7 +122,7 @@ class CheckSwapEvent : public Event
|
|||
|
||||
void process(); // process event
|
||||
|
||||
virtual const char *description();
|
||||
virtual const char *description() const;
|
||||
};
|
||||
|
||||
#endif // __SIM_SIM_EVENTS_HH__
|
||||
|
|
Loading…
Reference in a new issue