-----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Monday, November 09, 2009 10:32 AM To: Beckmann, Brad Subject: [PATCH 09 of 31] m5: Added isValidSrc and isValidDest calls topacket.hh
# HG changeset patch # User Brad Beckmann <[email protected]> # Date 1257791382 28800 # Node ID 222de182d810c1d23cdeed7377c7099ca230dccb # Parent e8b82831cc8efe4d4573111766cd242b4f75a8bc m5: Added isValidSrc and isValidDest calls to packet.hh diff -r e8b82831cc8e -r 222de182d810 src/mem/packet.hh --- a/src/mem/packet.hh Mon Nov 09 10:29:42 2009 -0800 +++ b/src/mem/packet.hh Mon Nov 09 10:29:42 2009 -0800 @@ -437,6 +437,7 @@ bool hadBadAddress() const { return cmd == MemCmd::BadAddressError; } void copyError(Packet *pkt) { assert(pkt->isError()); cmd = pkt->cmd; } + bool isSrcValid() { return flags.isSet(VALID_SRC); } /// Accessor function to get the source index of the packet. NodeID getSrc() const { assert(flags.isSet(VALID_SRC)); return src; } /// Accessor function to set the source index of the packet. @@ -444,6 +445,7 @@ /// Reset source field, e.g. to retransmit packet on different bus. void clearSrc() { flags.clear(VALID_SRC); } + bool isDestValid() { return flags.isSet(VALID_DST); } /// Accessor function for the destination index of the packet. NodeID getDest() const { assert(flags.isSet(VALID_DST)); return dest; } /// Accessor function to set the destination index of the packet. _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
