packet.hh (5764:f07df23e1fc8) | packet.hh (6076:e141cc7896ce) |
---|---|
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; --- 106 unchanged lines hidden (view full) --- 115 IsPrefetch, //!< Not a demand access 116 IsInvalidate, 117 NeedsExclusive, //!< Requires exclusive copy to complete in-cache 118 IsRequest, //!< Issued by requester 119 IsResponse, //!< Issue by responder 120 NeedsResponse, //!< Requester needs response from target 121 IsSWPrefetch, 122 IsHWPrefetch, | 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; --- 106 unchanged lines hidden (view full) --- 115 IsPrefetch, //!< Not a demand access 116 IsInvalidate, 117 NeedsExclusive, //!< Requires exclusive copy to complete in-cache 118 IsRequest, //!< Issued by requester 119 IsResponse, //!< Issue by responder 120 NeedsResponse, //!< Requester needs response from target 121 IsSWPrefetch, 122 IsHWPrefetch, |
123 IsLocked, //!< Alpha/MIPS LL or SC access | 123 IsLlsc, //!< Alpha/MIPS LL or SC access |
124 HasData, //!< There is an associated payload 125 IsError, //!< Error response 126 IsPrint, //!< Print state matching address (for debugging) 127 NUM_COMMAND_ATTRIBUTES 128 }; 129 130 /** 131 * Structure that defines attributes and other data associated --- 29 unchanged lines hidden (view full) --- 161 bool isWrite() const { return testCmdAttrib(IsWrite); } 162 bool isRequest() const { return testCmdAttrib(IsRequest); } 163 bool isResponse() const { return testCmdAttrib(IsResponse); } 164 bool needsExclusive() const { return testCmdAttrib(NeedsExclusive); } 165 bool needsResponse() const { return testCmdAttrib(NeedsResponse); } 166 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); } 167 bool hasData() const { return testCmdAttrib(HasData); } 168 bool isReadWrite() const { return isRead() && isWrite(); } | 124 HasData, //!< There is an associated payload 125 IsError, //!< Error response 126 IsPrint, //!< Print state matching address (for debugging) 127 NUM_COMMAND_ATTRIBUTES 128 }; 129 130 /** 131 * Structure that defines attributes and other data associated --- 29 unchanged lines hidden (view full) --- 161 bool isWrite() const { return testCmdAttrib(IsWrite); } 162 bool isRequest() const { return testCmdAttrib(IsRequest); } 163 bool isResponse() const { return testCmdAttrib(IsResponse); } 164 bool needsExclusive() const { return testCmdAttrib(NeedsExclusive); } 165 bool needsResponse() const { return testCmdAttrib(NeedsResponse); } 166 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); } 167 bool hasData() const { return testCmdAttrib(HasData); } 168 bool isReadWrite() const { return isRead() && isWrite(); } |
169 bool isLocked() const { return testCmdAttrib(IsLocked); } | 169 bool isLlsc() const { return testCmdAttrib(IsLlsc); } |
170 bool isError() const { return testCmdAttrib(IsError); } 171 bool isPrint() const { return testCmdAttrib(IsPrint); } 172 173 const Command 174 responseCommand() const 175 { 176 return commandInfo[cmd].response; 177 } --- 218 unchanged lines hidden (view full) --- 396 bool isWrite() const { return cmd.isWrite(); } 397 bool isRequest() const { return cmd.isRequest(); } 398 bool isResponse() const { return cmd.isResponse(); } 399 bool needsExclusive() const { return cmd.needsExclusive(); } 400 bool needsResponse() const { return cmd.needsResponse(); } 401 bool isInvalidate() const { return cmd.isInvalidate(); } 402 bool hasData() const { return cmd.hasData(); } 403 bool isReadWrite() const { return cmd.isReadWrite(); } | 170 bool isError() const { return testCmdAttrib(IsError); } 171 bool isPrint() const { return testCmdAttrib(IsPrint); } 172 173 const Command 174 responseCommand() const 175 { 176 return commandInfo[cmd].response; 177 } --- 218 unchanged lines hidden (view full) --- 396 bool isWrite() const { return cmd.isWrite(); } 397 bool isRequest() const { return cmd.isRequest(); } 398 bool isResponse() const { return cmd.isResponse(); } 399 bool needsExclusive() const { return cmd.needsExclusive(); } 400 bool needsResponse() const { return cmd.needsResponse(); } 401 bool isInvalidate() const { return cmd.isInvalidate(); } 402 bool hasData() const { return cmd.hasData(); } 403 bool isReadWrite() const { return cmd.isReadWrite(); } |
404 bool isLocked() const { return cmd.isLocked(); } | 404 bool isLlsc() const { return cmd.isLlsc(); } |
405 bool isError() const { return cmd.isError(); } 406 bool isPrint() const { return cmd.isPrint(); } 407 408 // Snoop flags 409 void assertMemInhibit() { flags.set(MEM_INHIBIT); } 410 bool memInhibitAsserted() { return flags.isSet(MEM_INHIBIT); } 411 void assertShared() { flags.set(SHARED); } 412 bool sharedAsserted() { return flags.isSet(SHARED); } --- 349 unchanged lines hidden --- | 405 bool isError() const { return cmd.isError(); } 406 bool isPrint() const { return cmd.isPrint(); } 407 408 // Snoop flags 409 void assertMemInhibit() { flags.set(MEM_INHIBIT); } 410 bool memInhibitAsserted() { return flags.isSet(MEM_INHIBIT); } 411 void assertShared() { flags.set(SHARED); } 412 bool sharedAsserted() { return flags.isSet(SHARED); } --- 349 unchanged lines hidden --- |