summaryrefslogtreecommitdiff
path: root/src/cpu/quiesce_event.hh
blob: cc6adf828a7898de3871cfce5a287a1de41bb406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __CPU_QUIESCE_EVENT_HH__
#define __CPU_QUIESCE_EVENT_HH__

#include "sim/eventq.hh"

class ThreadContext;

/** Event for timing out quiesce instruction */
struct EndQuiesceEvent : public Event
{
    /** A pointer to the thread context that is quiesced */
    ThreadContext *tc;

    EndQuiesceEvent(ThreadContext *_tc);

    /** Event process to occur at interrupt*/
    virtual void process();

    /** Event description */
    virtual const char *description();
};

#endif // __CPU_QUIESCE_EVENT_HH__