request.hh (2989:9a6f66c38acc) | request.hh (3170:37fd1e73f836) |
---|---|
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; --- 218 unchanged lines hidden (view full) --- 227 int getCpuNum() { assert(validCpuAndThreadNums); return cpuNum; } 228 /** Accessor function for thread number.*/ 229 int getThreadNum() { assert(validCpuAndThreadNums); return threadNum; } 230 231 /** Accessor function for pc.*/ 232 Addr getPC() { assert(validPC); return pc; } 233 234 /** Accessor Function to Check Cacheability. */ | 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; --- 218 unchanged lines hidden (view full) --- 227 int getCpuNum() { assert(validCpuAndThreadNums); return cpuNum; } 228 /** Accessor function for thread number.*/ 229 int getThreadNum() { assert(validCpuAndThreadNums); return threadNum; } 230 231 /** Accessor function for pc.*/ 232 Addr getPC() { assert(validPC); return pc; } 233 234 /** Accessor Function to Check Cacheability. */ |
235 bool isUncacheable() { return getFlags() & UNCACHEABLE; } | 235 bool isUncacheable() { return (getFlags() & UNCACHEABLE) != 0; } |
236 | 236 |
237 bool isInstRead() { return getFlags() & INST_READ; } | 237 bool isInstRead() { return (getFlags() & INST_READ) != 0; } |
238 | 238 |
239 bool isLocked() { return (getFlags() & LOCKED) != 0; } 240 |
|
239 friend class Packet; 240}; 241 242#endif // __MEM_REQUEST_HH__ | 241 friend class Packet; 242}; 243 244#endif // __MEM_REQUEST_HH__ |