packet.hh (9165:f9e3dac185ba) packet.hh (9259:fc28f3ca5b21)
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

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

486 /// Accessor function for the destination index of the packet.
487 PortID getDest() const { assert(isDestValid()); return dest; }
488 /// Accessor function to set the destination index of the packet.
489 void setDest(PortID _dest) { dest = _dest; }
490 /// Reset destination field, e.g. to turn a response into a request again.
491 void clearDest() { dest = InvalidPortID; }
492
493 Addr getAddr() const { assert(flags.isSet(VALID_ADDR)); return addr; }
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

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

486 /// Accessor function for the destination index of the packet.
487 PortID getDest() const { assert(isDestValid()); return dest; }
488 /// Accessor function to set the destination index of the packet.
489 void setDest(PortID _dest) { dest = _dest; }
490 /// Reset destination field, e.g. to turn a response into a request again.
491 void clearDest() { dest = InvalidPortID; }
492
493 Addr getAddr() const { assert(flags.isSet(VALID_ADDR)); return addr; }
494 /**
495 * Update the address of this packet mid-transaction. This is used
496 * by the address mapper to change an already set address to a new
497 * one based on the system configuration. It is intended to remap
498 * an existing address, so it asserts that the current address is
499 * valid.
500 */
501 void setAddr(Addr _addr) { assert(flags.isSet(VALID_ADDR)); addr = _addr; }
502
494 unsigned getSize() const { assert(flags.isSet(VALID_SIZE)); return size; }
495 Addr getOffset(int blkSize) const { return getAddr() & (Addr)(blkSize - 1); }
496
497 /**
498 * It has been determined that the SC packet should successfully update
499 * memory. Therefore, convert this SC packet to a normal write.
500 */
501 void

--- 348 unchanged lines hidden ---
503 unsigned getSize() const { assert(flags.isSet(VALID_SIZE)); return size; }
504 Addr getOffset(int blkSize) const { return getAddr() & (Addr)(blkSize - 1); }
505
506 /**
507 * It has been determined that the SC packet should successfully update
508 * memory. Therefore, convert this SC packet to a normal write.
509 */
510 void

--- 348 unchanged lines hidden ---