cp_annotate.hh (10470:2c6a72e919f6) cp_annotate.hh (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2014 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

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

185 protected:
186 const Params *
187 params() const
188 {
189 return dynamic_cast<const Params *>(_params);
190 }
191
192 /* struct that is written to the annotation output file */
1/*
2 * Copyright (c) 2014 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

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

185 protected:
186 const Params *
187 params() const
188 {
189 return dynamic_cast<const Params *>(_params);
190 }
191
192 /* struct that is written to the annotation output file */
193 struct AnnotateData {
193 struct AnnotateData : public Serializable {
194
195 Tick time;
196 uint32_t data;
197 uint32_t orig_data;
198 uint16_t sm;
199 uint16_t stq;
200 uint8_t op;
201 uint8_t flag;
202 uint8_t cpu;
203 bool dump;
204
194
195 Tick time;
196 uint32_t data;
197 uint32_t orig_data;
198 uint16_t sm;
199 uint16_t stq;
200 uint8_t op;
201 uint8_t flag;
202 uint8_t cpu;
203 bool dump;
204
205 void serialize(std::ostream &os);
206 void unserialize(Checkpoint *cp, const std::string &section);
207
205 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
206 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
208 };
209
210 typedef std::shared_ptr<AnnotateData> AnnDataPtr;
211
212 /* header for the annotation file */
213 struct AnnotateHeader {
214 uint64_t version;
215 uint64_t num_recs;

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

536 if (!this)
537 return false;
538 return _enabled;
539 }
540
541 void dump(bool all);
542 void dumpKey();
543
207 };
208
209 typedef std::shared_ptr<AnnotateData> AnnDataPtr;
210
211 /* header for the annotation file */
212 struct AnnotateHeader {
213 uint64_t version;
214 uint64_t num_recs;

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

535 if (!this)
536 return false;
537 return _enabled;
538 }
539
540 void dump(bool all);
541 void dumpKey();
542
544 void serialize(std::ostream &os);
545 void unserialize(Checkpoint *cp, const std::string &section);
546
543 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
544 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
547};
548#endif // !CP_ANNOTATE
549
550#endif //__BASE__CP_ANNOTATE_HH__
551
545};
546#endif // !CP_ANNOTATE
547
548#endif //__BASE__CP_ANNOTATE_HH__
549