gem5  v21.0.1.0
Public Member Functions | Protected Attributes | List of all members
GenericWatchdog::Listener Class Reference

System Counter Listener: This object is being notified any time there is a change in the SystemCounter. More...

#include <watchdog_generic.hh>

Inheritance diagram for GenericWatchdog::Listener:
SystemCounterListener

Public Member Functions

 Listener (GenericWatchdog &_parent)
 
void notify (void) override
 Called from the SystemCounter when a change in counting speed occurred Events should be rescheduled properly inside this member function. More...
 

Protected Attributes

GenericWatchdogparent
 

Detailed Description

System Counter Listener: This object is being notified any time there is a change in the SystemCounter.

(Like a change in the counter frequency) This is needed since the Generic Watchdog doesn't have a standalone counter and it is instead relying on the global System Counter.

Definition at line 85 of file watchdog_generic.hh.

Constructor & Destructor Documentation

◆ Listener()

GenericWatchdog::Listener::Listener ( GenericWatchdog _parent)
inlineexplicit

Definition at line 88 of file watchdog_generic.hh.

Member Function Documentation

◆ notify()

void GenericWatchdog::Listener::notify ( void  )
inlineoverridevirtual

Called from the SystemCounter when a change in counting speed occurred Events should be rescheduled properly inside this member function.

Implements SystemCounterListener.

Definition at line 92 of file watchdog_generic.hh.

References GenericWatchdog::enabled, panic_if, and parent.

Member Data Documentation

◆ parent

GenericWatchdog& GenericWatchdog::Listener::parent
protected

Definition at line 101 of file watchdog_generic.hh.

Referenced by notify().


The documentation for this class was generated from the following file:

Generated on Tue Jun 22 2021 15:28:38 for gem5 by doxygen 1.8.17