Packet: Put back part of the assert
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 12 Jan 2012 00:27:11 +0000 (19:27 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 12 Jan 2012 00:27:11 +0000 (19:27 -0500)
src/mem/packet.cc

index aefaf975d9a6c18212cc6a4704dcef31f5221580..64f4fcd14716e143db5d9d7fee160b5ea0b0ff7d 100644 (file)
@@ -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;