summaryrefslogtreecommitdiff
path: root/src/mem/packet.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r--src/mem/packet.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index d82ca4f3e..95c6f8183 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -63,6 +63,7 @@
#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"
@@ -1055,12 +1056,14 @@ class Packet : public Printable
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;
+#endif
/** Set the value in the data pointer to v as big endian. */
template <typename T>
@@ -1077,9 +1080,11 @@ class Packet : public Printable
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);
+#endif
/**