request.hh (11003:ba91725c8f6b) request.hh (11005:e7f403b6b76f)
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

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

291 Addr _vaddr;
292
293 /**
294 * Extra data for the request, such as the return value of
295 * store conditional or the compare value for a CAS. */
296 uint64_t _extraData;
297
298 /** The context ID (for statistics, typically). */
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

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

291 Addr _vaddr;
292
293 /**
294 * Extra data for the request, such as the return value of
295 * store conditional or the compare value for a CAS. */
296 uint64_t _extraData;
297
298 /** The context ID (for statistics, typically). */
299 int _contextId;
299 ContextID _contextId;
300 /** The thread ID (id within this CPU) */
301 ThreadID _threadId;
302
303 /** program counter of initiating access; for tracing/debugging */
304 Addr _pc;
305
306 public:
307

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

348 translateDelta(0), accessDelta(0), depth(0)
349 {
350 setPhys(paddr, size, flags, mid, time);
351 privateFlags.set(VALID_PC);
352 _pc = pc;
353 }
354
355 Request(int asid, Addr vaddr, unsigned size, Flags flags, MasterID mid,
300 /** The thread ID (id within this CPU) */
301 ThreadID _threadId;
302
303 /** program counter of initiating access; for tracing/debugging */
304 Addr _pc;
305
306 public:
307

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

348 translateDelta(0), accessDelta(0), depth(0)
349 {
350 setPhys(paddr, size, flags, mid, time);
351 privateFlags.set(VALID_PC);
352 _pc = pc;
353 }
354
355 Request(int asid, Addr vaddr, unsigned size, Flags flags, MasterID mid,
356 Addr pc, int cid, ThreadID tid)
356 Addr pc, ContextID cid, ThreadID tid)
357 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
358 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
359 _extraData(0), _contextId(0), _threadId(0), _pc(0),
360 translateDelta(0), accessDelta(0), depth(0)
361 {
362 setVirt(asid, vaddr, size, flags, mid, pc);
363 setThreadContext(cid, tid);
364 }
365
366 ~Request() {}
367
368 /**
369 * Set up CPU and thread numbers.
370 */
371 void
357 : _paddr(0), _size(0), _masterId(invldMasterId), _time(0),
358 _taskId(ContextSwitchTaskId::Unknown), _asid(0), _vaddr(0),
359 _extraData(0), _contextId(0), _threadId(0), _pc(0),
360 translateDelta(0), accessDelta(0), depth(0)
361 {
362 setVirt(asid, vaddr, size, flags, mid, pc);
363 setThreadContext(cid, tid);
364 }
365
366 ~Request() {}
367
368 /**
369 * Set up CPU and thread numbers.
370 */
371 void
372 setThreadContext(int context_id, ThreadID tid)
372 setThreadContext(ContextID context_id, ThreadID tid)
373 {
374 _contextId = context_id;
375 _threadId = tid;
376 privateFlags.set(VALID_CONTEXT_ID|VALID_THREAD_ID);
377 }
378
379 /**
380 * Set up a virtual (e.g., CPU) request in a previously

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

586
587 bool
588 hasContextId() const
589 {
590 return privateFlags.isSet(VALID_CONTEXT_ID);
591 }
592
593 /** Accessor function for context ID.*/
373 {
374 _contextId = context_id;
375 _threadId = tid;
376 privateFlags.set(VALID_CONTEXT_ID|VALID_THREAD_ID);
377 }
378
379 /**
380 * Set up a virtual (e.g., CPU) request in a previously

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

586
587 bool
588 hasContextId() const
589 {
590 return privateFlags.isSet(VALID_CONTEXT_ID);
591 }
592
593 /** Accessor function for context ID.*/
594 int
594 ContextID
595 contextId() const
596 {
597 assert(privateFlags.isSet(VALID_CONTEXT_ID));
598 return _contextId;
599 }
600
601 /** Accessor function for thread ID. */
602 ThreadID

--- 65 unchanged lines hidden ---
595 contextId() const
596 {
597 assert(privateFlags.isSet(VALID_CONTEXT_ID));
598 return _contextId;
599 }
600
601 /** Accessor function for thread ID. */
602 ThreadID

--- 65 unchanged lines hidden ---