packet.cc (3286:21d9d32ab8ab) packet.cc (3335:71bef174e59f)
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;

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

46static const std::string ReadRespString("ReadResp");
47static const std::string WriteRespString("WriteResp");
48static const std::string SoftPFReqString("SoftPFReq");
49static const std::string SoftPFRespString("SoftPFResp");
50static const std::string HardPFReqString("HardPFReq");
51static const std::string HardPFRespString("HardPFResp");
52static const std::string InvalidateReqString("InvalidateReq");
53static const std::string WriteInvalidateReqString("WriteInvalidateReq");
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;

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

46static const std::string ReadRespString("ReadResp");
47static const std::string WriteRespString("WriteResp");
48static const std::string SoftPFReqString("SoftPFReq");
49static const std::string SoftPFRespString("SoftPFResp");
50static const std::string HardPFReqString("HardPFReq");
51static const std::string HardPFRespString("HardPFResp");
52static const std::string InvalidateReqString("InvalidateReq");
53static const std::string WriteInvalidateReqString("WriteInvalidateReq");
54static const std::string WriteInvalidateRespString("WriteInvalidateResp");
54static const std::string UpgradeReqString("UpgradeReq");
55static const std::string ReadExReqString("ReadExReq");
56static const std::string ReadExRespString("ReadExResp");
57static const std::string OtherCmdString("<other>");
58
59const std::string &
60Packet::cmdString() const
61{

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

66 case ReadResp: return ReadRespString;
67 case WriteResp: return WriteRespString;
68 case SoftPFReq: return SoftPFReqString;
69 case SoftPFResp: return SoftPFRespString;
70 case HardPFReq: return HardPFReqString;
71 case HardPFResp: return HardPFRespString;
72 case InvalidateReq: return InvalidateReqString;
73 case WriteInvalidateReq:return WriteInvalidateReqString;
55static const std::string UpgradeReqString("UpgradeReq");
56static const std::string ReadExReqString("ReadExReq");
57static const std::string ReadExRespString("ReadExResp");
58static const std::string OtherCmdString("<other>");
59
60const std::string &
61Packet::cmdString() const
62{

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

67 case ReadResp: return ReadRespString;
68 case WriteResp: return WriteRespString;
69 case SoftPFReq: return SoftPFReqString;
70 case SoftPFResp: return SoftPFRespString;
71 case HardPFReq: return HardPFReqString;
72 case HardPFResp: return HardPFRespString;
73 case InvalidateReq: return InvalidateReqString;
74 case WriteInvalidateReq:return WriteInvalidateReqString;
75 case WriteInvalidateResp:return WriteInvalidateRespString;
74 case UpgradeReq: return UpgradeReqString;
75 case ReadExReq: return ReadExReqString;
76 case ReadExResp: return ReadExRespString;
77 default: return OtherCmdString;
78 }
79}
80
81const std::string &

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

88 case ReadResp: return ReadRespString;
89 case WriteResp: return WriteRespString;
90 case SoftPFReq: return SoftPFReqString;
91 case SoftPFResp: return SoftPFRespString;
92 case HardPFReq: return HardPFReqString;
93 case HardPFResp: return HardPFRespString;
94 case InvalidateReq: return InvalidateReqString;
95 case WriteInvalidateReq:return WriteInvalidateReqString;
76 case UpgradeReq: return UpgradeReqString;
77 case ReadExReq: return ReadExReqString;
78 case ReadExResp: return ReadExRespString;
79 default: return OtherCmdString;
80 }
81}
82
83const std::string &

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

90 case ReadResp: return ReadRespString;
91 case WriteResp: return WriteRespString;
92 case SoftPFReq: return SoftPFReqString;
93 case SoftPFResp: return SoftPFRespString;
94 case HardPFReq: return HardPFReqString;
95 case HardPFResp: return HardPFRespString;
96 case InvalidateReq: return InvalidateReqString;
97 case WriteInvalidateReq:return WriteInvalidateReqString;
98 case WriteInvalidateResp:return WriteInvalidateRespString;
96 case UpgradeReq: return UpgradeReqString;
97 case ReadExReq: return ReadExReqString;
98 case ReadExResp: return ReadExRespString;
99 default: return OtherCmdString;
100 }
101}
102
103/** delete the data pointed to in the data pointer. Ok to call to matter how

--- 131 unchanged lines hidden ---
99 case UpgradeReq: return UpgradeReqString;
100 case ReadExReq: return ReadExReqString;
101 case ReadExResp: return ReadExRespString;
102 default: return OtherCmdString;
103 }
104}
105
106/** delete the data pointed to in the data pointer. Ok to call to matter how

--- 131 unchanged lines hidden ---