packet.hh (2855:5ca2cdb32521) packet.hh (2883:20cbfd9cf24c)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

242
243 /** Accessor function that returns the destination index of
244 the packet. */
245 short getDest() const { return dest; }
246 void setDest(short _dest) { dest = _dest; }
247
248 Addr getAddr() const { assert(addrSizeValid); return addr; }
249 int getSize() const { assert(addrSizeValid); return size; }
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

242
243 /** Accessor function that returns the destination index of
244 the packet. */
245 short getDest() const { return dest; }
246 void setDest(short _dest) { dest = _dest; }
247
248 Addr getAddr() const { assert(addrSizeValid); return addr; }
249 int getSize() const { assert(addrSizeValid); return size; }
250 Addr getOffset(int blkSize) const { return req->getPaddr() & (Addr)(blkSize - 1); }
250 Addr getOffset(int blkSize) const { return addr & (Addr)(blkSize - 1); }
251
252 void addrOverride(Addr newAddr) { assert(addrSizeValid); addr = newAddr; }
253 void cmdOverride(Command newCmd) { cmd = newCmd; }
254
255 /** Constructor. Note that a Request object must be constructed
256 * first, but the Requests's physical address and size fields
257 * need not be valid. The command and destination addresses
258 * must be supplied. */

--- 112 unchanged lines hidden ---
251
252 void addrOverride(Addr newAddr) { assert(addrSizeValid); addr = newAddr; }
253 void cmdOverride(Command newCmd) { cmd = newCmd; }
254
255 /** Constructor. Note that a Request object must be constructed
256 * first, but the Requests's physical address and size fields
257 * need not be valid. The command and destination addresses
258 * must be supplied. */

--- 112 unchanged lines hidden ---