diff options
Diffstat (limited to 'src/mem/packet_access.hh')
-rw-r--r-- | src/mem/packet_access.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/packet_access.hh b/src/mem/packet_access.hh index 92752a720..97357ae5e 100644 --- a/src/mem/packet_access.hh +++ b/src/mem/packet_access.hh @@ -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__ |