summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-17 14:34:08 -0700
committerGabe Black <gabeblack@google.com>2018-10-18 07:48:49 +0000
commit6adc2afaa0398a4872b9fd3694311333e8f6ded3 (patch)
treee0e61a94926333fb94d66bab449307f699a38b8b
parent9d0fc9c29b6bd713967343c70844c7b64a5077ee (diff)
downloadgem5-6adc2afaa0398a4872b9fd3694311333e8f6ded3.tar.xz
mem: Mark the guest endianness packet accessors as deprecated.
Change-Id: Iebefeb5b1ce905f2b45b30b7656d6a01d0724584 Reviewed-on: https://gem5-review.googlesource.com/c/13575 Maintainer: Gabe Black <gabeblack@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r--src/mem/packet.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index 95c6f8183..e378de8f0 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -1062,7 +1062,8 @@ class Packet : public Printable
* endian.
*/
template <typename T>
- T get() const;
+ 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. */
@@ -1083,10 +1084,10 @@ class Packet : public Printable
#if THE_ISA != NULL_ISA
/** Set the value in the data pointer to v as guest endian. */
template <typename T>
- void set(T v);
+ 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.