request.hh (2670:9107b8bd08cd) | request.hh (2679:737e9f158843) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 194 unchanged lines hidden (view full) --- 203 { assert(validPaddr || validAsidVaddr); flags = _flags; } 204 205 /** Accessor function for vaddr.*/ 206 Addr getVaddr() { assert(validAsidVaddr); return vaddr; } 207 208 /** Accessor function for asid.*/ 209 int getAsid() { assert(validAsidVaddr); return asid; } 210 | 1/* 2 * Copyright (c) 2002-2005 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; --- 194 unchanged lines hidden (view full) --- 203 { assert(validPaddr || validAsidVaddr); flags = _flags; } 204 205 /** Accessor function for vaddr.*/ 206 Addr getVaddr() { assert(validAsidVaddr); return vaddr; } 207 208 /** Accessor function for asid.*/ 209 int getAsid() { assert(validAsidVaddr); return asid; } 210 |
211 /** Accessor function to check if sc result is valid. */ 212 bool scResultValid() { return validScResult; } |
|
211 /** Accessor function for store conditional return value.*/ 212 uint64_t getScResult() { assert(validScResult); return scResult; } 213 /** Accessor function for store conditional return value.*/ 214 void setScResult(uint64_t _scResult) 215 { scResult = _scResult; validScResult = true; } 216 217 /** Accessor function for cpu number.*/ 218 int getCpuNum() { assert(validCpuAndThreadNums); return cpuNum; } 219 /** Accessor function for thread number.*/ 220 int getThreadNum() { assert(validCpuAndThreadNums); return threadNum; } 221 222 /** Accessor function for pc.*/ 223 Addr getPC() { assert(validPC); return pc; } 224 225 friend class Packet; 226}; 227 228#endif // __MEM_REQUEST_HH__ | 213 /** Accessor function for store conditional return value.*/ 214 uint64_t getScResult() { assert(validScResult); return scResult; } 215 /** Accessor function for store conditional return value.*/ 216 void setScResult(uint64_t _scResult) 217 { scResult = _scResult; validScResult = true; } 218 219 /** Accessor function for cpu number.*/ 220 int getCpuNum() { assert(validCpuAndThreadNums); return cpuNum; } 221 /** Accessor function for thread number.*/ 222 int getThreadNum() { assert(validCpuAndThreadNums); return threadNum; } 223 224 /** Accessor function for pc.*/ 225 Addr getPC() { assert(validPC); return pc; } 226 227 friend class Packet; 228}; 229 230#endif // __MEM_REQUEST_HH__ |