changeset c5401cb99aae in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=c5401cb99aae description: m5: Added isValidSrc and isValidDest calls to packet.hh
diffstat: 1 file changed, 2 insertions(+) src/mem/packet.hh | 2 ++ diffs (19 lines): diff -r 71b272bd988e -r c5401cb99aae src/mem/packet.hh --- a/src/mem/packet.hh Wed Nov 18 13:55:58 2009 -0800 +++ b/src/mem/packet.hh Wed Nov 18 13:55:58 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 m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev