mem: Add sanity check to packet queue size
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
commit852a7bcf923af424de8df1ddbeb462d52de8383b
tree21fc1767419334465995ce8468d26cb3210056c8
parentce5fc494e3f26ef7e7c0c3b72eaa4a93a2d31b73
mem: Add sanity check to packet queue size

This patch adds a basic check to ensure that the packet queue does not
grow absurdly large. The queue should only be used to store packets
that were delayed due to blocking from the neighbouring port, and not
for actual storage. Thus, a limit of 100 has been chosen for now
(which is already quite substantial).
src/mem/packet_queue.cc