request.hh (4610:97834b18a8b4) | request.hh (5222:bb733a878f85) |
---|---|
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; --- 61 unchanged lines hidden (view full) --- 70const uint32_t EVICT_NEXT = 0x20000; 71/** The request should ignore unaligned access faults */ 72const uint32_t NO_ALIGN_FAULT = 0x40000; 73/** The request was an instruction read. */ 74const uint32_t INST_READ = 0x80000; 75/** This request is for a memory swap. */ 76const uint32_t MEM_SWAP = 0x100000; 77const uint32_t MEM_SWAP_COND = 0x200000; | 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; --- 61 unchanged lines hidden (view full) --- 70const uint32_t EVICT_NEXT = 0x20000; 71/** The request should ignore unaligned access faults */ 72const uint32_t NO_ALIGN_FAULT = 0x40000; 73/** The request was an instruction read. */ 74const uint32_t INST_READ = 0x80000; 75/** This request is for a memory swap. */ 76const uint32_t MEM_SWAP = 0x100000; 77const uint32_t MEM_SWAP_COND = 0x200000; |
78/** The request should ignore unaligned access faults */ 79const uint32_t NO_HALF_WORD_ALIGN_FAULT = 0x400000; |
|
78 79 80class Request : public FastAlloc 81{ 82 private: 83 /** 84 * The physical address of the request. Valid only if validPaddr 85 * is set. */ --- 181 unchanged lines hidden (view full) --- 267 268 bool isLocked() { return (getFlags() & LOCKED) != 0; } 269 270 bool isSwap() { return (getFlags() & MEM_SWAP || 271 getFlags() & MEM_SWAP_COND); } 272 273 bool isCondSwap() { return (getFlags() & MEM_SWAP_COND) != 0; } 274 | 80 81 82class Request : public FastAlloc 83{ 84 private: 85 /** 86 * The physical address of the request. Valid only if validPaddr 87 * is set. */ --- 181 unchanged lines hidden (view full) --- 269 270 bool isLocked() { return (getFlags() & LOCKED) != 0; } 271 272 bool isSwap() { return (getFlags() & MEM_SWAP || 273 getFlags() & MEM_SWAP_COND); } 274 275 bool isCondSwap() { return (getFlags() & MEM_SWAP_COND) != 0; } 276 |
277 bool inline isMisaligned() {return (!(getFlags() & NO_ALIGN_FAULT) && 278 ((vaddr & 1) || 279 (!(getFlags() & NO_HALF_WORD_ALIGN_FAULT) 280 && (vaddr & 0x2))));} |
|
275 276 friend class Packet; 277}; 278 279#endif // __MEM_REQUEST_HH__ | 281 282 friend class Packet; 283}; 284 285#endif // __MEM_REQUEST_HH__ |