packet.hh revision 2813
12381SN/A/*
22592SN/A * Copyright (c) 2006 The Regents of The University of Michigan
32381SN/A * All rights reserved.
42381SN/A *
52381SN/A * Redistribution and use in source and binary forms, with or without
62381SN/A * modification, are permitted provided that the following conditions are
72381SN/A * met: redistributions of source code must retain the above copyright
82381SN/A * notice, this list of conditions and the following disclaimer;
92381SN/A * redistributions in binary form must reproduce the above copyright
102381SN/A * notice, this list of conditions and the following disclaimer in the
112381SN/A * documentation and/or other materials provided with the distribution;
122381SN/A * neither the name of the copyright holders nor the names of its
132381SN/A * contributors may be used to endorse or promote products derived from
142381SN/A * this software without specific prior written permission.
152381SN/A *
162381SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172381SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182381SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192381SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202381SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212381SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222381SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232381SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242381SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252381SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262381SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Ron Dreslinski
292665Ssaidi@eecs.umich.edu *          Steve Reinhardt
302665Ssaidi@eecs.umich.edu *          Ali Saidi
312381SN/A */
322381SN/A
332381SN/A/**
342381SN/A * @file
352662Sstever@eecs.umich.edu * Declaration of the Packet class.
362381SN/A */
372381SN/A
382381SN/A#ifndef __MEM_PACKET_HH__
392381SN/A#define __MEM_PACKET_HH__
402381SN/A
412392SN/A#include "mem/request.hh"
422423SN/A#include "arch/isa_traits.hh"
432394SN/A#include "sim/root.hh"
442812Srdreslin@umich.edu#include <list>
452394SN/A
462394SN/Astruct Packet;
472394SN/Atypedef Packet* PacketPtr;
482394SN/Atypedef uint8_t* PacketDataPtr;
492812Srdreslin@umich.edutypedef std::list<PacketPtr> PacketList;
502812Srdreslin@umich.edu
512812Srdreslin@umich.edu//Coherence Flags
522812Srdreslin@umich.edu#define NACKED_LINE 1 << 0
532812Srdreslin@umich.edu#define SATISFIED 1 << 1
542812Srdreslin@umich.edu#define SHARED_LINE 1 << 2
552813Srdreslin@umich.edu#define CACHE_LINE_FILL 1 << 3
562813Srdreslin@umich.edu#define COMPRESSED 1 << 4
572813Srdreslin@umich.edu#define NO_ALLOCATE 1 << 5
582382SN/A
592811Srdreslin@umich.edu//For statistics we need max number of commands, hard code it at
602811Srdreslin@umich.edu//20 for now.  @todo fix later
612811Srdreslin@umich.edu#define NUM_MEM_CMDS 1 << 9
622811Srdreslin@umich.edu
632381SN/A/**
642662Sstever@eecs.umich.edu * A Packet is used to encapsulate a transfer between two objects in
652662Sstever@eecs.umich.edu * the memory system (e.g., the L1 and L2 cache).  (In contrast, a
662662Sstever@eecs.umich.edu * single Request travels all the way from the requester to the
672662Sstever@eecs.umich.edu * ultimate destination and back, possibly being conveyed by several
682662Sstever@eecs.umich.edu * different Packets along the way.)
692381SN/A */
702641Sstever@eecs.umich.educlass Packet
712381SN/A{
722813Srdreslin@umich.edu  public:
732813Srdreslin@umich.edu    /** Temporary FLAGS field until cache gets working, this should be in coherence/sender state. */
742813Srdreslin@umich.edu    uint64_t flags;
752813Srdreslin@umich.edu
762566SN/A  private:
772662Sstever@eecs.umich.edu   /** A pointer to the data being transfered.  It can be differnt
782662Sstever@eecs.umich.edu    *    sizes at each level of the heirarchy so it belongs in the
792662Sstever@eecs.umich.edu    *    packet, not request. This may or may not be populated when a
802662Sstever@eecs.umich.edu    *    responder recieves the packet. If not populated it memory
812662Sstever@eecs.umich.edu    *    should be allocated.
822566SN/A    */
832566SN/A    PacketDataPtr data;
842566SN/A
852662Sstever@eecs.umich.edu    /** Is the data pointer set to a value that shouldn't be freed
862662Sstever@eecs.umich.edu     *   when the packet is destroyed? */
872566SN/A    bool staticData;
882662Sstever@eecs.umich.edu    /** The data pointer points to a value that should be freed when
892662Sstever@eecs.umich.edu     *   the packet is destroyed. */
902566SN/A    bool dynamicData;
912662Sstever@eecs.umich.edu    /** the data pointer points to an array (thus delete [] ) needs to
922662Sstever@eecs.umich.edu     *   be called on it rather than simply delete.*/
932566SN/A    bool arrayData;
942566SN/A
952566SN/A
962662Sstever@eecs.umich.edu    /** The address of the request.  This address could be virtual or
972662Sstever@eecs.umich.edu     *   physical, depending on the system configuration. */
982381SN/A    Addr addr;
992381SN/A
1002662Sstever@eecs.umich.edu     /** The size of the request or transfer. */
1012381SN/A    int size;
1022381SN/A
1032813Srdreslin@umich.edu    /** The offset within the block that represents the data. */
1042813Srdreslin@umich.edu    int offset;
1052813Srdreslin@umich.edu
1062662Sstever@eecs.umich.edu    /** Device address (e.g., bus ID) of the source of the
1072662Sstever@eecs.umich.edu     *   transaction. The source is not responsible for setting this
1082662Sstever@eecs.umich.edu     *   field; it is set implicitly by the interconnect when the
1092662Sstever@eecs.umich.edu     *   packet * is first sent.  */
1102381SN/A    short src;
1112381SN/A
1122662Sstever@eecs.umich.edu    /** Device address (e.g., bus ID) of the destination of the
1132662Sstever@eecs.umich.edu     *   transaction. The special value Broadcast indicates that the
1142662Sstever@eecs.umich.edu     *   packet should be routed based on its address. This field is
1152662Sstever@eecs.umich.edu     *   initialized in the constructor and is thus always valid
1162662Sstever@eecs.umich.edu     *   (unlike * addr, size, and src). */
1172641Sstever@eecs.umich.edu    short dest;
1182641Sstever@eecs.umich.edu
1192663Sstever@eecs.umich.edu    /** Are the 'addr' and 'size' fields valid? */
1202663Sstever@eecs.umich.edu    bool addrSizeValid;
1212662Sstever@eecs.umich.edu    /** Is the 'src' field valid? */
1222641Sstever@eecs.umich.edu    bool srcValid;
1232813Srdreslin@umich.edu    /** Is the offset valid. */
1242813Srdreslin@umich.edu    bool offsetValid;
1252813Srdreslin@umich.edu
1262641Sstever@eecs.umich.edu
1272641Sstever@eecs.umich.edu  public:
1282641Sstever@eecs.umich.edu
1292811Srdreslin@umich.edu    /** Used to calculate latencies for each packet.*/
1302811Srdreslin@umich.edu    Tick time;
1312811Srdreslin@umich.edu
1322662Sstever@eecs.umich.edu    /** The special destination address indicating that the packet
1332662Sstever@eecs.umich.edu     *   should be routed based on its address. */
1342623SN/A    static const short Broadcast = -1;
1352623SN/A
1362662Sstever@eecs.umich.edu    /** A pointer to the original request. */
1372641Sstever@eecs.umich.edu    RequestPtr req;
1382641Sstever@eecs.umich.edu
1392662Sstever@eecs.umich.edu    /** A virtual base opaque structure used to hold coherence-related
1402662Sstever@eecs.umich.edu     *    state.  A specific subclass would be derived from this to
1412662Sstever@eecs.umich.edu     *    carry state specific to a particular coherence protocol.  */
1422641Sstever@eecs.umich.edu    class CoherenceState {
1432641Sstever@eecs.umich.edu      public:
1442641Sstever@eecs.umich.edu        virtual ~CoherenceState() {}
1452641Sstever@eecs.umich.edu    };
1462641Sstever@eecs.umich.edu
1472662Sstever@eecs.umich.edu    /** This packet's coherence state.  Caches should use
1482662Sstever@eecs.umich.edu     *   dynamic_cast<> to cast to the state appropriate for the
1492662Sstever@eecs.umich.edu     *   system's coherence protocol.  */
1502662Sstever@eecs.umich.edu    CoherenceState *coherence;
1512641Sstever@eecs.umich.edu
1522662Sstever@eecs.umich.edu    /** A virtual base opaque structure used to hold state associated
1532662Sstever@eecs.umich.edu     *    with the packet but specific to the sending device (e.g., an
1542662Sstever@eecs.umich.edu     *    MSHR).  A pointer to this state is returned in the packet's
1552662Sstever@eecs.umich.edu     *    response so that the sender can quickly look up the state
1562662Sstever@eecs.umich.edu     *    needed to process it.  A specific subclass would be derived
1572662Sstever@eecs.umich.edu     *    from this to carry state specific to a particular sending
1582662Sstever@eecs.umich.edu     *    device.  */
1592641Sstever@eecs.umich.edu    class SenderState {
1602641Sstever@eecs.umich.edu      public:
1612641Sstever@eecs.umich.edu        virtual ~SenderState() {}
1622641Sstever@eecs.umich.edu    };
1632641Sstever@eecs.umich.edu
1642662Sstever@eecs.umich.edu    /** This packet's sender state.  Devices should use dynamic_cast<>
1652662Sstever@eecs.umich.edu     *   to cast to the state appropriate to the sender. */
1662662Sstever@eecs.umich.edu    SenderState *senderState;
1672641Sstever@eecs.umich.edu
1682641Sstever@eecs.umich.edu  private:
1692641Sstever@eecs.umich.edu    /** List of command attributes. */
1702641Sstever@eecs.umich.edu    enum CommandAttribute
1712641Sstever@eecs.umich.edu    {
1722641Sstever@eecs.umich.edu        IsRead		= 1 << 0,
1732641Sstever@eecs.umich.edu        IsWrite		= 1 << 1,
1742641Sstever@eecs.umich.edu        IsPrefetch	= 1 << 2,
1752641Sstever@eecs.umich.edu        IsInvalidate	= 1 << 3,
1762641Sstever@eecs.umich.edu        IsRequest	= 1 << 4,
1772641Sstever@eecs.umich.edu        IsResponse 	= 1 << 5,
1782641Sstever@eecs.umich.edu        NeedsResponse	= 1 << 6,
1792811Srdreslin@umich.edu        IsSWPrefetch    = 1 << 7,
1802811Srdreslin@umich.edu        IsHWPrefetch    = 1 << 8
1812641Sstever@eecs.umich.edu    };
1822641Sstever@eecs.umich.edu
1832641Sstever@eecs.umich.edu  public:
1842641Sstever@eecs.umich.edu    /** List of all commands associated with a packet. */
1852641Sstever@eecs.umich.edu    enum Command
1862641Sstever@eecs.umich.edu    {
1872813Srdreslin@umich.edu        InvalidCmd      = 0,
1882641Sstever@eecs.umich.edu        ReadReq		= IsRead  | IsRequest | NeedsResponse,
1892641Sstever@eecs.umich.edu        WriteReq	= IsWrite | IsRequest | NeedsResponse,
1902641Sstever@eecs.umich.edu        WriteReqNoAck	= IsWrite | IsRequest,
1912641Sstever@eecs.umich.edu        ReadResp	= IsRead  | IsResponse,
1922811Srdreslin@umich.edu        WriteResp	= IsWrite | IsResponse,
1932811Srdreslin@umich.edu        Writeback       = IsWrite | IsRequest,
1942811Srdreslin@umich.edu        SoftPFReq       = IsRead  | IsRequest | IsSWPrefetch | NeedsResponse,
1952811Srdreslin@umich.edu        HardPFReq       = IsRead  | IsRequest | IsHWPrefetch | NeedsResponse,
1962811Srdreslin@umich.edu        SoftPFResp      = IsRead  | IsRequest | IsSWPrefetch | IsResponse,
1972812Srdreslin@umich.edu        HardPFResp      = IsRead  | IsRequest | IsHWPrefetch | IsResponse,
1982812Srdreslin@umich.edu        InvalidateReq   = IsInvalidate | IsRequest,
1992812Srdreslin@umich.edu        WriteInvalidateReq = IsWrite | IsInvalidate | IsRequest,
2002813Srdreslin@umich.edu        UpgradeReq      = IsInvalidate | NeedsResponse,
2012813Srdreslin@umich.edu        UpgradeResp     = IsInvalidate | IsResponse,
2022813Srdreslin@umich.edu        ReadExReq       = IsRead | IsInvalidate | NeedsResponse,
2032813Srdreslin@umich.edu        ReadExResp      = IsRead | IsInvalidate | IsResponse
2042641Sstever@eecs.umich.edu    };
2052641Sstever@eecs.umich.edu
2062662Sstever@eecs.umich.edu    /** Return the string name of the cmd field (for debugging and
2072662Sstever@eecs.umich.edu     *   tracing). */
2082641Sstever@eecs.umich.edu    const std::string &cmdString() const;
2092381SN/A
2102811Srdreslin@umich.edu    /** Reutrn the string to a cmd given by idx. */
2112811Srdreslin@umich.edu    const std::string &cmdIdxToString(Command idx);
2122811Srdreslin@umich.edu
2132811Srdreslin@umich.edu    /** Return the index of this command. */
2142811Srdreslin@umich.edu    inline int cmdToIndex() const { return (int) cmd; }
2152811Srdreslin@umich.edu
2162662Sstever@eecs.umich.edu    /** The command field of the packet. */
2172381SN/A    Command cmd;
2182381SN/A
2192641Sstever@eecs.umich.edu    bool isRead() 	 { return (cmd & IsRead)  != 0; }
2202812Srdreslin@umich.edu    bool isWrite()       { return (cmd & IsWrite) != 0; }
2212641Sstever@eecs.umich.edu    bool isRequest()	 { return (cmd & IsRequest)  != 0; }
2222641Sstever@eecs.umich.edu    bool isResponse()	 { return (cmd & IsResponse) != 0; }
2232641Sstever@eecs.umich.edu    bool needsResponse() { return (cmd & NeedsResponse) != 0; }
2242812Srdreslin@umich.edu    bool isInvalidate()  { return (cmd * IsInvalidate) != 0; }
2252812Srdreslin@umich.edu
2262813Srdreslin@umich.edu    bool isCacheFill() { return (flags & CACHE_LINE_FILL) != 0; }
2272813Srdreslin@umich.edu    bool isNoAllocate() { return (flags & NO_ALLOCATE) != 0; }
2282641Sstever@eecs.umich.edu
2292662Sstever@eecs.umich.edu    /** Possible results of a packet's request. */
2302641Sstever@eecs.umich.edu    enum Result
2312641Sstever@eecs.umich.edu    {
2322641Sstever@eecs.umich.edu        Success,
2332641Sstever@eecs.umich.edu        BadAddress,
2342685Ssaidi@eecs.umich.edu        Nacked,
2352641Sstever@eecs.umich.edu        Unknown
2362641Sstever@eecs.umich.edu    };
2372641Sstever@eecs.umich.edu
2382662Sstever@eecs.umich.edu    /** The result of this packet's request. */
2392641Sstever@eecs.umich.edu    Result result;
2402381SN/A
2412381SN/A    /** Accessor function that returns the source index of the packet. */
2422641Sstever@eecs.umich.edu    short getSrc() const { assert(srcValid); return src; }
2432641Sstever@eecs.umich.edu    void setSrc(short _src) { src = _src; srcValid = true; }
2442381SN/A
2452381SN/A    /** Accessor function that returns the destination index of
2462381SN/A        the packet. */
2472381SN/A    short getDest() const { return dest; }
2482641Sstever@eecs.umich.edu    void setDest(short _dest) { dest = _dest; }
2492549SN/A
2502663Sstever@eecs.umich.edu    Addr getAddr() const { assert(addrSizeValid); return addr; }
2512663Sstever@eecs.umich.edu    int getSize() const { assert(addrSizeValid); return size; }
2522813Srdreslin@umich.edu    int getOffset() const { assert(offsetValid); return offset; }
2532813Srdreslin@umich.edu
2542813Srdreslin@umich.edu    void addrOverride(Addr newAddr) { assert(addrSizeValid); addr = newAddr; }
2552813Srdreslin@umich.edu    void cmdOverride(Command newCmd) { cmd = newCmd; }
2562641Sstever@eecs.umich.edu
2572662Sstever@eecs.umich.edu    /** Constructor.  Note that a Request object must be constructed
2582662Sstever@eecs.umich.edu     *   first, but the Requests's physical address and size fields
2592662Sstever@eecs.umich.edu     *   need not be valid. The command and destination addresses
2602662Sstever@eecs.umich.edu     *   must be supplied.  */
2612641Sstever@eecs.umich.edu    Packet(Request *_req, Command _cmd, short _dest)
2622566SN/A        :  data(NULL), staticData(false), dynamicData(false), arrayData(false),
2632641Sstever@eecs.umich.edu           addr(_req->paddr), size(_req->size), dest(_dest),
2642663Sstever@eecs.umich.edu           addrSizeValid(_req->validPaddr),
2652813Srdreslin@umich.edu           srcValid(false), offsetValid(false),
2662641Sstever@eecs.umich.edu           req(_req), coherence(NULL), senderState(NULL), cmd(_cmd),
2672662Sstever@eecs.umich.edu           result(Unknown)
2682641Sstever@eecs.umich.edu    {
2692813Srdreslin@umich.edu        flags = 0;
2702813Srdreslin@umich.edu    }
2712813Srdreslin@umich.edu
2722813Srdreslin@umich.edu    /** Alternate constructor if you are trying to create a packet with
2732813Srdreslin@umich.edu     *  a request that is for a whole block, not the address from the req.
2742813Srdreslin@umich.edu     *  this allows for overriding the size/addr of the req.*/
2752813Srdreslin@umich.edu    Packet(Request *_req, Command _cmd, short _dest, int _blkSize)
2762813Srdreslin@umich.edu        :  data(NULL), staticData(false), dynamicData(false), arrayData(false),
2772813Srdreslin@umich.edu           addr(_req->paddr & ~(_blkSize - 1)), size(_blkSize),
2782813Srdreslin@umich.edu           offset(_req->paddr & (_blkSize - 1)), dest(_dest),
2792813Srdreslin@umich.edu           addrSizeValid(_req->validPaddr), srcValid(false), offsetValid(true),
2802813Srdreslin@umich.edu           req(_req), coherence(NULL), senderState(NULL), cmd(_cmd),
2812813Srdreslin@umich.edu           result(Unknown)
2822813Srdreslin@umich.edu    {
2832813Srdreslin@umich.edu        flags = 0;
2842641Sstever@eecs.umich.edu    }
2852549SN/A
2862662Sstever@eecs.umich.edu    /** Destructor. */
2872566SN/A    ~Packet()
2882566SN/A    { deleteData(); }
2892566SN/A
2902662Sstever@eecs.umich.edu    /** Reinitialize packet address and size from the associated
2912662Sstever@eecs.umich.edu     *   Request object, and reset other fields that may have been
2922662Sstever@eecs.umich.edu     *   modified by a previous transaction.  Typically called when a
2932662Sstever@eecs.umich.edu     *   statically allocated Request/Packet pair is reused for
2942662Sstever@eecs.umich.edu     *   multiple transactions. */
2952662Sstever@eecs.umich.edu    void reinitFromRequest() {
2962662Sstever@eecs.umich.edu        assert(req->validPaddr);
2972663Sstever@eecs.umich.edu        addr = req->paddr;
2982663Sstever@eecs.umich.edu        size = req->size;
2992663Sstever@eecs.umich.edu        addrSizeValid = true;
3002662Sstever@eecs.umich.edu        result = Unknown;
3012662Sstever@eecs.umich.edu        if (dynamicData) {
3022662Sstever@eecs.umich.edu            deleteData();
3032662Sstever@eecs.umich.edu            dynamicData = false;
3042662Sstever@eecs.umich.edu            arrayData = false;
3052662Sstever@eecs.umich.edu        }
3062662Sstever@eecs.umich.edu    }
3072566SN/A
3082662Sstever@eecs.umich.edu    /** Take a request packet and modify it in place to be suitable
3092662Sstever@eecs.umich.edu     *   for returning as a response to that request.  Used for timing
3102662Sstever@eecs.umich.edu     *   accesses only.  For atomic and functional accesses, the
3112662Sstever@eecs.umich.edu     *   request packet is always implicitly passed back *without*
3122662Sstever@eecs.umich.edu     *   modifying the command or destination fields, so this function
3132662Sstever@eecs.umich.edu     *   should not be called. */
3142662Sstever@eecs.umich.edu    void makeTimingResponse() {
3152662Sstever@eecs.umich.edu        assert(needsResponse());
3162662Sstever@eecs.umich.edu        int icmd = (int)cmd;
3172662Sstever@eecs.umich.edu        icmd &= ~(IsRequest | NeedsResponse);
3182662Sstever@eecs.umich.edu        icmd |= IsResponse;
3192662Sstever@eecs.umich.edu        cmd = (Command)icmd;
3202662Sstever@eecs.umich.edu        dest = src;
3212662Sstever@eecs.umich.edu        srcValid = false;
3222641Sstever@eecs.umich.edu    }
3232641Sstever@eecs.umich.edu
3242685Ssaidi@eecs.umich.edu    /** Take a request packet that has been returned as NACKED and modify it so
3252685Ssaidi@eecs.umich.edu     * that it can be sent out again. Only packets that need a response can be
3262685Ssaidi@eecs.umich.edu     * NACKED, so verify that that is true. */
3272685Ssaidi@eecs.umich.edu    void reinitNacked() {
3282685Ssaidi@eecs.umich.edu        assert(needsResponse() && result == Nacked);
3292685Ssaidi@eecs.umich.edu        dest =  Broadcast;
3302685Ssaidi@eecs.umich.edu        result = Unknown;
3312685Ssaidi@eecs.umich.edu    }
3322685Ssaidi@eecs.umich.edu
3332685Ssaidi@eecs.umich.edu
3342566SN/A    /** Set the data pointer to the following value that should not be freed. */
3352566SN/A    template <typename T>
3362592SN/A    void dataStatic(T *p);
3372566SN/A
3382566SN/A    /** Set the data pointer to a value that should have delete [] called on it.
3392566SN/A     */
3402566SN/A    template <typename T>
3412592SN/A    void dataDynamicArray(T *p);
3422566SN/A
3432566SN/A    /** set the data pointer to a value that should have delete called on it. */
3442566SN/A    template <typename T>
3452592SN/A    void dataDynamic(T *p);
3462566SN/A
3472566SN/A    /** return the value of what is pointed to in the packet. */
3482566SN/A    template <typename T>
3492592SN/A    T get();
3502566SN/A
3512566SN/A    /** get a pointer to the data ptr. */
3522566SN/A    template <typename T>
3532592SN/A    T* getPtr();
3542566SN/A
3552566SN/A    /** set the value in the data pointer to v. */
3562566SN/A    template <typename T>
3572592SN/A    void set(T v);
3582566SN/A
3592566SN/A    /** delete the data pointed to in the data pointer. Ok to call to matter how
3602566SN/A     * data was allocted. */
3612592SN/A    void deleteData();
3622566SN/A
3632566SN/A    /** If there isn't data in the packet, allocate some. */
3642592SN/A    void allocate();
3652568SN/A
3662568SN/A    /** Do the packet modify the same addresses. */
3672592SN/A    bool intersect(Packet *p);
3682381SN/A};
3692381SN/A
3702630SN/Abool fixPacket(Packet *func, Packet *timing);
3712381SN/A#endif //__MEM_PACKET_HH
372