summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2012-01-11 19:27:11 -0500
committerAli Saidi <saidi@eecs.umich.edu>2012-01-11 19:27:11 -0500
commitc40ae2c3fbab796a95bd512dd72c29345cbe0dfc (patch)
treeba50adce4de82402412e2b73d9d3a42ec40a11a7 /src
parentbc1c21274e8c3559fe4bd8b8622f1f2afe1efd9b (diff)
downloadgem5-c40ae2c3fbab796a95bd512dd72c29345cbe0dfc.tar.xz
Packet: Put back part of the assert
Diffstat (limited to 'src')
-rw-r--r--src/mem/packet.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/packet.cc b/src/mem/packet.cc
index aefaf975d..64f4fcd14 100644
--- 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;