Ruby: Remove some unused code
[gem5.git] / src / mem / packet_access.hh
index aac0c3ae5683b3a7f6f64ef2e68646402e1095e7..fca9606fc84a73273a4a3e54f96c9d8e0dedd98d 100644 (file)
@@ -30,6 +30,8 @@
  */
 
 #include "arch/isa_traits.hh"
+#include "base/bigint.hh"
+#include "config/the_isa.hh"
 #include "mem/packet.hh"
 #include "sim/byteswap.hh"
 
@@ -45,7 +47,7 @@ template <typename T>
 inline T
 Packet::get()
 {
-    assert(staticData || dynamicData);
+    assert(flags.isSet(STATIC_DATA|DYNAMIC_DATA));
     assert(sizeof(T) <= size);
     return TheISA::gtoh(*(T*)data);
 }
@@ -55,6 +57,7 @@ template <typename T>
 inline void
 Packet::set(T v)
 {
+    assert(flags.isSet(STATIC_DATA|DYNAMIC_DATA));
     assert(sizeof(T) <= size);
     *(T*)data = TheISA::htog(v);
 }