summaryrefslogtreecommitdiff
path: root/mem
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-02-07 17:33:03 -0500
committerRon Dreslinski <rdreslin@umich.edu>2006-02-07 17:33:03 -0500
commiteabb0cfc78c227901731f2908a697ba1a2a7841b (patch)
tree7dee440ad86328471ed87994abc8b9603d251246 /mem
parent4e366780288ffb5d43cae054df45b07b61c1580e (diff)
downloadgem5-eabb0cfc78c227901731f2908a697ba1a2a7841b.tar.xz
Pushing current state. Need to fix compilation problems, have moved the SCONS script to build memory objects first.
Some places I could have been using a forward decleration and that should be cleaned up as well. SConscript: Changed to move new memory object compilation to the top. See the errors right away. Will also need to update all other objects that included the old memory system to use the new one. But not until we at least get the mem system compiling first. mem/packet.hh: Adding includes and typedefs to fix compilation errors mem/request.hh: Add definition for compilation issues --HG-- extra : convert_revision : 34d9ae534a7a625445b981e81c7a1f856517cb04
Diffstat (limited to 'mem')
-rw-r--r--mem/packet.hh8
-rw-r--r--mem/request.hh2
2 files changed, 10 insertions, 0 deletions
diff --git a/mem/packet.hh b/mem/packet.hh
index 5eb9b881c..ca2a84fb3 100644
--- a/mem/packet.hh
+++ b/mem/packet.hh
@@ -35,6 +35,7 @@
#ifndef __MEM_PACKET_HH__
#define __MEM_PACKET_HH__
+#include "mem/request.hh"
/** List of all commands associated with a packet. */
enum Command
@@ -50,6 +51,11 @@ enum PacketResult
BadAddress
};
+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
@@ -112,4 +118,6 @@ struct Packet
short getDest() const { return dest; }
};
+typedef PacketPtr *Packet;
+
#endif //__MEM_PACKET_HH
diff --git a/mem/request.hh b/mem/request.hh
index 31f5b1921..bcbf3fecf 100644
--- a/mem/request.hh
+++ b/mem/request.hh
@@ -53,6 +53,8 @@ class Request
Addr copyDest;
};
+typedef RequestPtr *Request;
+
class CpuRequest : public Request
{
/** The virtual address of the request. */