Changes so that time in the packet is actually set properly.
src/mem/packet.hh: Make sure packets set the time parameter correctly. --HG-- extra : convert_revision : e381d2789e0aaa1b6c2fbde417b7ba5815deec61
This commit is contained in:
parent
6eebfda2d9
commit
825a7aadd2
1 changed files with 3 additions and 0 deletions
|
@ -266,6 +266,7 @@ class Packet
|
||||||
result(Unknown)
|
result(Unknown)
|
||||||
{
|
{
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
time = curTick;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Alternate constructor if you are trying to create a packet with
|
/** Alternate constructor if you are trying to create a packet with
|
||||||
|
@ -280,6 +281,7 @@ class Packet
|
||||||
result(Unknown)
|
result(Unknown)
|
||||||
{
|
{
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
time = curTick;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
|
@ -295,6 +297,7 @@ class Packet
|
||||||
assert(req->validPaddr);
|
assert(req->validPaddr);
|
||||||
addr = req->paddr;
|
addr = req->paddr;
|
||||||
size = req->size;
|
size = req->size;
|
||||||
|
time = req->time;
|
||||||
addrSizeValid = true;
|
addrSizeValid = true;
|
||||||
result = Unknown;
|
result = Unknown;
|
||||||
if (dynamicData) {
|
if (dynamicData) {
|
||||||
|
|
Loading…
Reference in a new issue