#include "base/logging.hh"
#include "base/printable.hh"
#include "base/types.hh"
-#include "config/the_isa.hh"
#include "mem/request.hh"
#include "sim/core.hh"
template <typename T>
T get(ByteOrder endian) const;
-#if THE_ISA != NULL_ISA
- /**
- * Get the data in the packet byte swapped from guest to host
- * endian.
- */
- template <typename T>
- T get() const
- M5_DEPRECATED_MSG("The memory system should be ISA independent.");
-#endif
-
/** Set the value in the data pointer to v as big endian. */
template <typename T>
void setBE(T v);
template <typename T>
void set(T v, ByteOrder endian);
-#if THE_ISA != NULL_ISA
- /** Set the value in the data pointer to v as guest endian. */
- template <typename T>
- void set(T v)
- M5_DEPRECATED_MSG("The memory system should be ISA independent.");
-#endif
-
/**
* Get the data in the packet byte swapped from the specified
* endianness and zero-extended to 64 bits.
* Andreas Sandberg
*/
-#include "arch/isa_traits.hh"
-#include "mem/packet.hh"
-#include "sim/byteswap.hh"
-
#ifndef __MEM_PACKET_ACCESS_HH__
#define __MEM_PACKET_ACCESS_HH__
+#include "mem/packet.hh"
+#include "sim/byteswap.hh"
+
template <typename T>
inline T
Packet::getRaw() 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
Packet::setBE(T v)
};
}
-#if THE_ISA != NULL_ISA
-template <typename T>
-inline void
-Packet::set(T v)
-{
- setRaw(TheISA::htog(v));
-}
-#endif
-
#endif //__MEM_PACKET_ACCESS_HH__