mem-cache: Add match functions to QueueEntry
[gem5.git] / src / mem / packet_access.hh
index 1fee979cef213a0ad9f7f7470039ab45c5e155d6..97357ae5e355406902c1d5fc0af1658f2ebe4185 100644 (file)
@@ -43,8 +43,6 @@
  */
 
 #include "arch/isa_traits.hh"
-#include "base/bigint.hh"
-#include "config/the_isa.hh"
 #include "mem/packet.hh"
 #include "sim/byteswap.hh"
 
@@ -100,12 +98,14 @@ Packet::get(ByteOrder endian) const
     };
 }
 
+#if THE_ISA != NULL_ISA
 template <typename T>
 inline T
 Packet::get() const
 {
     return TheISA::gtoh(getRaw<T>());
 }
+#endif
 
 template <typename T>
 inline void
@@ -137,11 +137,13 @@ Packet::set(T v, ByteOrder endian)
     };
 }
 
+#if THE_ISA != NULL_ISA
 template <typename T>
 inline void
 Packet::set(T v)
 {
     setRaw(TheISA::htog(v));
 }
+#endif
 
 #endif //__MEM_PACKET_ACCESS_HH__