mem: restructure Packet cmd initialization a bit more
authorSteve Reinhardt <steve.reinhardt@amd.com>
Wed, 11 Feb 2015 18:48:50 +0000 (10:48 -0800)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Wed, 11 Feb 2015 18:48:50 +0000 (10:48 -0800)
commitee0b52404c99cfed91a8d3fbebe3f42b0ac133df
tree5c26f8de53e57903f80ed45e643b4abd3020040a
parentccef61d1ccaea43cf44aa45bee272475f0b10405
mem: restructure Packet cmd initialization a bit more

Refactor the way that specific MemCmd values are generated for packets.
The new approach is a little more elegant in that we assign the right
value up front, and it's also more amenable to non-heap-allocated
Packet objects.

Also replaced the code in the Minor model that was still doing it the
ad-hoc way.

This is basically a refinement of http://repo.gem5.org/gem5/rev/711eb0e64249.
src/cpu/inorder/resources/cache_unit.cc
src/cpu/inorder/resources/cache_unit.hh
src/cpu/minor/lsq.cc
src/cpu/simple/atomic.cc
src/mem/packet.hh