request.hh (3170:37fd1e73f836) request.hh (3804:fa7a01dddc7a)
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;

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

90 /**
91 * The time this request was started. Used to calculate
92 * latencies. This field is set to curTick any time paddr or vaddr
93 * is written. */
94 Tick time;
95
96 /** The address space ID. */
97 int asid;
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;

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

90 /**
91 * The time this request was started. Used to calculate
92 * latencies. This field is set to curTick any time paddr or vaddr
93 * is written. */
94 Tick time;
95
96 /** The address space ID. */
97 int asid;
98 /** The ASI is any -- SPARC ONLY */
99 int asi;
100 /** This request is to a memory mapped register. */
101 bool mmapedReg;
102
98 /** The virtual address of the request. */
99 Addr vaddr;
100
101 /** The return value of store conditional. */
102 uint64_t scResult;
103
104 /** The cpu number (for statistics, typically). */
105 int cpuNum;

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

210 { assert(validPaddr || validAsidVaddr); flags = _flags; }
211
212 /** Accessor function for vaddr.*/
213 Addr getVaddr() { assert(validAsidVaddr); return vaddr; }
214
215 /** Accessor function for asid.*/
216 int getAsid() { assert(validAsidVaddr); return asid; }
217
103 /** The virtual address of the request. */
104 Addr vaddr;
105
106 /** The return value of store conditional. */
107 uint64_t scResult;
108
109 /** The cpu number (for statistics, typically). */
110 int cpuNum;

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

215 { assert(validPaddr || validAsidVaddr); flags = _flags; }
216
217 /** Accessor function for vaddr.*/
218 Addr getVaddr() { assert(validAsidVaddr); return vaddr; }
219
220 /** Accessor function for asid.*/
221 int getAsid() { assert(validAsidVaddr); return asid; }
222
223 /** Accessor function for asi.*/
224 int getAsi() { assert(validAsidVaddr); return asi; }
225 /** Accessor function for asi.*/
226 void setAsi(int a) { assert(validAsidVaddr); asi = a; }
227
228 /** Accessor function for asi.*/
229 bool getMmapedReg() { assert(validPaddr); return mmapedReg; }
230 /** Accessor function for asi.*/
231 void setMmapedReg(bool r) { assert(validPaddr); mmapedReg = r; }
232
218 /** Accessor function to check if sc result is valid. */
219 bool scResultValid() { return validScResult; }
220 /** Accessor function for store conditional return value.*/
221 uint64_t getScResult() { assert(validScResult); return scResult; }
222 /** Accessor function for store conditional return value.*/
223 void setScResult(uint64_t _scResult)
224 { scResult = _scResult; validScResult = true; }
225

--- 19 unchanged lines hidden ---
233 /** Accessor function to check if sc result is valid. */
234 bool scResultValid() { return validScResult; }
235 /** Accessor function for store conditional return value.*/
236 uint64_t getScResult() { assert(validScResult); return scResult; }
237 /** Accessor function for store conditional return value.*/
238 void setScResult(uint64_t _scResult)
239 { scResult = _scResult; validScResult = true; }
240

--- 19 unchanged lines hidden ---