mem: Assume all dynamic packet data is array allocated
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 2 Dec 2014 11:07:43 +0000 (06:07 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 2 Dec 2014 11:07:43 +0000 (06:07 -0500)
commit41846cb61b0f511099eb9a203f11885de328ab45
tree7563b309ba914ea57dd12e6cfba3ea33817ab1b1
parent5df96cb690168d750ab0fafffd11fb51624374d2
mem: Assume all dynamic packet data is array allocated

This patch simplifies how we deal with dynamically allocated data in
the packet, always assuming that it is array allocated, and hence
should be array deallocated (delete[] as opposed to delete). The only
uses of dataDynamic was in the Ruby testers.

The ARRAY_DATA flag in the packet is removed accordingly. No
defragmentation of the flags is done at this point, leaving a gap in
the bit masks.

As the last part the patch, it renames dataDynamicArray to dataDynamic.
src/cpu/minor/lsq.cc
src/cpu/o3/fetch_impl.hh
src/cpu/simple/timing.cc
src/cpu/testers/directedtest/InvalidateGenerator.cc
src/cpu/testers/directedtest/SeriesRequestGenerator.cc
src/cpu/testers/memtest/memtest.cc
src/cpu/testers/networktest/networktest.cc
src/cpu/testers/rubytest/Check.cc
src/cpu/testers/traffic_gen/generators.cc
src/mem/packet.hh