summaryrefslogtreecommitdiff
path: root/mem/packet.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-02-15 14:21:09 -0500
committerRon Dreslinski <rdreslin@umich.edu>2006-02-15 14:21:09 -0500
commit7f114ca41930c7e0a71dfb105472671cfa25ddec (patch)
treed2d696e7633a347bb5ca2824720caed578f62fe2 /mem/packet.hh
parent3298e937d389c2fa0a5e5a8eeb1db2a3fac3e7e3 (diff)
downloadgem5-7f114ca41930c7e0a71dfb105472671cfa25ddec.tar.xz
Many changes that make the new mem system compile. Now to convert the rest of the tree to use the new mem system.
mem/mem_object.hh: Create constrtor so it compiles mem/packet.hh: Fix typedefs so they compile, add in a few more headers for compilation mem/page_table.cc: convert to new mem system so it compiles mem/page_table.hh: fix it to the version that had asid support. Make it compile in the new system mem/physical.cc: Fix some compilation bugs mem/physical.hh: Add a type that made compile fail mem/port.hh: Fix a spelling error that messed up compilation mem/request.hh: fix typedefs and forward declerations so it compiles --HG-- extra : convert_revision : 580fb1ba31ada799ff0122601b8b5a8d994bb8af
Diffstat (limited to 'mem/packet.hh')
-rw-r--r--mem/packet.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/mem/packet.hh b/mem/packet.hh
index ca2a84fb3..ef4eb85d9 100644
--- a/mem/packet.hh
+++ b/mem/packet.hh
@@ -36,6 +36,12 @@
#define __MEM_PACKET_HH__
#include "mem/request.hh"
+#include "targetarch/isa_traits.hh"
+#include "sim/root.hh"
+
+struct Packet;
+typedef Packet* PacketPtr;
+typedef uint8_t* PacketDataPtr;
/** List of all commands associated with a packet. */
enum Command
@@ -54,8 +60,6 @@ enum PacketResult
class SenderState{};
class Coherence{};
-typedef PacketDataPtr *unit8_t;
-
/**
* A Packet is the structure to handle requests between two levels
* of the memory system. The Request is a global object that trancends
@@ -118,6 +122,4 @@ struct Packet
short getDest() const { return dest; }
};
-typedef PacketPtr *Packet;
-
#endif //__MEM_PACKET_HH