Deleted Added
sdiff udiff text old ( 11990:5fad911cc326 ) new ( 12040:8cd9d09aac7a )
full compact
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

94 protected:
95 typedef unsigned short FlagsType;
96 typedef ::Flags<FlagsType> Flags;
97
98 static const FlagsType PublicRead = 0x003f; // public readable flags
99 static const FlagsType PublicWrite = 0x001d; // public writable flags
100 static const FlagsType Squashed = 0x0001; // has been squashed
101 static const FlagsType Scheduled = 0x0002; // has been scheduled
102 static const FlagsType AutoDelete = 0x0004; // delete after dispatch
103 /**
104 * This used to be AutoSerialize. This value can't be reused
105 * without changing the checkpoint version since the flag field
106 * gets serialized.
107 */
108 static const FlagsType Reserved0 = 0x0008;
109 static const FlagsType IsExitEvent = 0x0010; // special exit event
110 static const FlagsType IsMainQueue = 0x0020; // on main event queue

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

277 clearFlags()
278 {
279 flags.clear(PublicWrite);
280 }
281
282 // This function isn't really useful if TRACING_ON is not defined
283 virtual void trace(const char *action); //!< trace event activity
284
285 public:
286
287 /*
288 * Event constructor
289 * @param queue that the event gets scheduled on
290 */
291 Event(Priority p = Default_Pri, Flags f = 0)
292 : nextBin(nullptr), nextInBin(nullptr), _when(0), _priority(p),

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

335
336 /// Check whether the event is squashed
337 bool squashed() const { return flags.isSet(Squashed); }
338
339 /// See if this is a SimExitEvent (without resorting to RTTI)
340 bool isExitEvent() const { return flags.isSet(IsExitEvent); }
341
342 /// Check whether this event will auto-delete
343 bool isAutoDelete() const { return flags.isSet(AutoDelete); }
344
345 /// Get the time that the event is scheduled
346 Tick when() const { return _when; }
347
348 /// Get the event priority
349 Priority priority() const { return _priority; }
350
351 //! If this is part of a GlobalEvent, return the pointer to the

--- 421 unchanged lines hidden ---