sim_events.hh (11294:a368064a2ab5) sim_events.hh (11789:c10c50cb8ac9)
1/*
2 * Copyright (c) 2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 84 unchanged lines hidden (view full) ---

93 const char *description() const override;
94
95 void serialize(CheckpointOut &cp) const override;
96 void unserialize(CheckpointIn &cp) override;
97 static Serializable *createForUnserialize(CheckpointIn &cp,
98 const std::string &section);
99};
100
1/*
2 * Copyright (c) 2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 84 unchanged lines hidden (view full) ---

93 const char *description() const override;
94
95 void serialize(CheckpointOut &cp) const override;
96 void unserialize(CheckpointIn &cp) override;
97 static Serializable *createForUnserialize(CheckpointIn &cp,
98 const std::string &section);
99};
100
101class CountedDrainEvent : public Event
102{
103 private:
104 // Count of how many objects have not yet drained
105 int count;
106
107 public:
108 CountedDrainEvent();
109
110 void process() override;
111
112 void setCount(int _count) { count = _count; }
113
114 int getCount() const { return count; }
115};
116
117//
118// Event class to terminate simulation after 'n' related events have
119// occurred using a shared counter: used to terminate when *all*
120// threads have reached a particular instruction count
121//
122class CountedExitEvent : public Event
123{
124 private:

--- 13 unchanged lines hidden ---
101//
102// Event class to terminate simulation after 'n' related events have
103// occurred using a shared counter: used to terminate when *all*
104// threads have reached a particular instruction count
105//
106class CountedExitEvent : public Event
107{
108 private:

--- 13 unchanged lines hidden ---