mem-cache: Add match functions to QueueEntry
[gem5.git] / src / mem / packet_access.hh
index 92752a72011096631c0617421abee56a0b2aa8a9..97357ae5e355406902c1d5fc0af1658f2ebe4185 100644 (file)
@@ -43,7 +43,6 @@
  */
 
 #include "arch/isa_traits.hh"
-#include "config/the_isa.hh"
 #include "mem/packet.hh"
 #include "sim/byteswap.hh"
 
@@ -99,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
@@ -136,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__