projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc1c212
)
Packet: Put back part of the assert
author
Ali Saidi
<saidi@eecs.umich.edu>
Thu, 12 Jan 2012 00:27:11 +0000
(19:27 -0500)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Thu, 12 Jan 2012 00:27:11 +0000
(19:27 -0500)
src/mem/packet.cc
patch
|
blob
|
history
diff --git
a/src/mem/packet.cc
b/src/mem/packet.cc
index aefaf975d9a6c18212cc6a4704dcef31f5221580..64f4fcd14716e143db5d9d7fee160b5ea0b0ff7d 100644
(file)
--- a/
src/mem/packet.cc
+++ b/
src/mem/packet.cc
@@
-286,6
+286,7
@@
Packet::checkFunctional(Printable *obj, Addr addr, int size, uint8_t *data)
"for functional copying!");
}
}
+ assert(bytesValidEnd <= getSize());
// copy partial data into the packet's data array
uint8_t *dest = getPtr<uint8_t>() + func_offset;