Deleted Added
sdiff udiff text old ( 9259:fc28f3ca5b21 ) new ( 9542:683991c46ac8 )
full compact
1/*
2 * Copyright (c) 2012 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

335 /// The time at which the packet will be fully transmitted
336 Tick finishTime;
337
338 /// The time at which the first chunk of the packet will be transmitted
339 Tick firstWordTime;
340
341 /**
342 * A virtual base opaque structure used to hold state associated
343 * with the packet but specific to the sending device (e.g., an
344 * MSHR). A pointer to this state is returned in the packet's
345 * response so that the sender can quickly look up the state
346 * needed to process it. A specific subclass would be derived
347 * from this to carry state specific to a particular sending
348 * device.
349 */
350 struct SenderState
351 {
352 virtual ~SenderState() {}
353 };
354
355 /**
356 * Object used to maintain state of a PrintReq. The senderState
357 * field of a PrintReq should always be of this type.
358 */
359 class PrintReqState : public SenderState

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

413 */
414 void printObj(Printable *obj);
415 };
416
417 /**
418 * This packet's sender state. Devices should use dynamic_cast<>
419 * to cast to the state appropriate to the sender. The intent of
420 * this variable is to allow a device to attach extra information
421 * to a request. A response packet must return the sender state
422 * that was attached to the original request (even if a new packet
423 * is created).
424 */
425 SenderState *senderState;
426
427 /// Return the string name of the cmd field (for debugging and
428 /// tracing).
429 const std::string &cmdString() const { return cmd.toString(); }
430
431 /// Return the index of this command.
432 inline int cmdToIndex() const { return cmd.toInt(); }
433
434 bool isRead() const { return cmd.isRead(); }

--- 424 unchanged lines hidden ---