*/
#include "arch/isa_traits.hh"
-#include "base/bigint.hh"
-#include "config/the_isa.hh"
#include "mem/packet.hh"
#include "sim/byteswap.hh"
{
assert(flags.isSet(STATIC_DATA|DYNAMIC_DATA));
assert(sizeof(T) <= size);
- *(T*)data = TheISA::htog(v);
+ *(T*)data = v;
}
};
}
+#if THE_ISA != NULL_ISA
template <typename T>
inline T
Packet::get() const
{
return TheISA::gtoh(getRaw<T>());
}
+#endif
template <typename T>
inline void
};
}
+#if THE_ISA != NULL_ISA
template <typename T>
inline void
Packet::set(T v)
{
setRaw(TheISA::htog(v));
}
+#endif
#endif //__MEM_PACKET_ACCESS_HH__