diff options
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/bridge.hh | 3 | ||||
-rw-r--r-- | src/mem/cache/cache_impl.hh | 3 | ||||
-rw-r--r-- | src/mem/packet.hh | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/mem/bridge.hh b/src/mem/bridge.hh index 1331a45f9..a9dd67a2b 100644 --- a/src/mem/bridge.hh +++ b/src/mem/bridge.hh @@ -42,6 +42,7 @@ #include <inttypes.h> #include <queue> +#include "base/fast_alloc.hh" #include "mem/mem_object.hh" #include "mem/packet.hh" #include "mem/port.hh" @@ -73,7 +74,7 @@ class Bridge : public MemObject /** Pass ranges from one side of the bridge to the other? */ std::vector<Range<Addr> > filterRanges; - class PacketBuffer : public Packet::SenderState { + class PacketBuffer : public Packet::SenderState, public FastAlloc { public: Tick ready; diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 2f4567e0d..47d20f915 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -38,6 +38,7 @@ */ #include "sim/host.hh" +#include "base/fast_alloc.hh" #include "base/misc.hh" #include "base/range_ops.hh" @@ -346,7 +347,7 @@ Cache<TagStore>::access(PacketPtr pkt, BlkType *&blk, int &lat) } -class ForwardResponseRecord : public Packet::SenderState +class ForwardResponseRecord : public Packet::SenderState, public FastAlloc { Packet::SenderState *prevSenderState; int prevSrc; diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 05442b369..7aad9de98 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -295,7 +295,7 @@ class Packet : public FastAlloc, public Printable * needed to process it. A specific subclass would be derived * from this to carry state specific to a particular sending * device. */ - class SenderState : public FastAlloc { + class SenderState { public: virtual ~SenderState() {} }; @@ -304,7 +304,7 @@ class Packet : public FastAlloc, public Printable * Object used to maintain state of a PrintReq. The senderState * field of a PrintReq should always be of this type. */ - class PrintReqState : public SenderState { + class PrintReqState : public SenderState, public FastAlloc { /** An entry in the label stack. */ class LabelStackEntry { public: |