request.hh (10052:5bb8e054456b) request.hh (10360:919c02740209)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

254 Addr _pc;
255
256 public:
257 /** Minimal constructor. No fields are initialized.
258 * (Note that _flags and privateFlags are cleared by Flags
259 * default constructor.)
260 */
261 Request()
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

254 Addr _pc;
255
256 public:
257 /** Minimal constructor. No fields are initialized.
258 * (Note that _flags and privateFlags are cleared by Flags
259 * default constructor.)
260 */
261 Request()
262 : _taskId(ContextSwitchTaskId::Unknown),
263 translateDelta(0), accessDelta(0), depth(0)
262 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
263 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
264 _extraData(0), _contextId(0), _threadId(0), _pc(0),
265 translateDelta(0), accessDelta(0), depth(0)
264 {}
265
266 /**
267 * Constructor for physical (e.g. device) requests. Initializes
268 * just physical address, size, flags, and timestamp (to curTick()).
269 * These fields are adequate to perform a request.
270 */
271 Request(Addr paddr, int size, Flags flags, MasterID mid)
266 {}
267
268 /**
269 * Constructor for physical (e.g. device) requests. Initializes
270 * just physical address, size, flags, and timestamp (to curTick()).
271 * These fields are adequate to perform a request.
272 */
273 Request(Addr paddr, int size, Flags flags, MasterID mid)
272 : _taskId(ContextSwitchTaskId::Unknown)
274 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
275 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
276 _extraData(0), _contextId(0), _threadId(0), _pc(0),
277 translateDelta(0), accessDelta(0), depth(0)
273 {
274 setPhys(paddr, size, flags, mid);
275 }
276
277 Request(Addr paddr, int size, Flags flags, MasterID mid, Tick time)
278 {
279 setPhys(paddr, size, flags, mid);
280 }
281
282 Request(Addr paddr, int size, Flags flags, MasterID mid, Tick time)
278 : _taskId(ContextSwitchTaskId::Unknown)
283 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
284 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
285 _extraData(0), _contextId(0), _threadId(0), _pc(0),
286 translateDelta(0), accessDelta(0), depth(0)
279 {
280 setPhys(paddr, size, flags, mid, time);
281 }
282
283 Request(Addr paddr, int size, Flags flags, MasterID mid, Tick time, Addr pc)
287 {
288 setPhys(paddr, size, flags, mid, time);
289 }
290
291 Request(Addr paddr, int size, Flags flags, MasterID mid, Tick time, Addr pc)
284 : _taskId(ContextSwitchTaskId::Unknown)
292 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
293 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
294 _extraData(0), _contextId(0), _threadId(0), _pc(0),
295 translateDelta(0), accessDelta(0), depth(0)
285 {
286 setPhys(paddr, size, flags, mid, time);
287 privateFlags.set(VALID_PC);
288 _pc = pc;
289 }
290
291 Request(int asid, Addr vaddr, int size, Flags flags, MasterID mid, Addr pc,
292 int cid, ThreadID tid)
296 {
297 setPhys(paddr, size, flags, mid, time);
298 privateFlags.set(VALID_PC);
299 _pc = pc;
300 }
301
302 Request(int asid, Addr vaddr, int size, Flags flags, MasterID mid, Addr pc,
303 int cid, ThreadID tid)
293 : _taskId(ContextSwitchTaskId::Unknown)
304 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
305 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
306 _extraData(0), _contextId(0), _threadId(0), _pc(0),
307 translateDelta(0), accessDelta(0), depth(0)
294 {
295 setVirt(asid, vaddr, size, flags, mid, pc);
296 setThreadContext(cid, tid);
297 }
298
299 ~Request() {}
300
301 /**

--- 335 unchanged lines hidden ---
308 {
309 setVirt(asid, vaddr, size, flags, mid, pc);
310 setThreadContext(cid, tid);
311 }
312
313 ~Request() {}
314
315 /**

--- 335 unchanged lines hidden ---