packet.hh (13347:4085b1fa2288) | packet.hh (13348:e3d801b37735) |
---|---|
1/* 2 * Copyright (c) 2012-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 1048 unchanged lines hidden (view full) --- 1057 T get(ByteOrder endian) const; 1058 1059#if THE_ISA != NULL_ISA 1060 /** 1061 * Get the data in the packet byte swapped from guest to host 1062 * endian. 1063 */ 1064 template <typename T> | 1/* 2 * Copyright (c) 2012-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 1048 unchanged lines hidden (view full) --- 1057 T get(ByteOrder endian) const; 1058 1059#if THE_ISA != NULL_ISA 1060 /** 1061 * Get the data in the packet byte swapped from guest to host 1062 * endian. 1063 */ 1064 template <typename T> |
1065 T get() const; | 1065 T get() const 1066 M5_DEPRECATED_MSG("The memory system should be ISA independent."); |
1066#endif 1067 1068 /** Set the value in the data pointer to v as big endian. */ 1069 template <typename T> 1070 void setBE(T v); 1071 1072 /** Set the value in the data pointer to v as little endian. */ 1073 template <typename T> --- 4 unchanged lines hidden (view full) --- 1078 * endianness. 1079 */ 1080 template <typename T> 1081 void set(T v, ByteOrder endian); 1082 1083#if THE_ISA != NULL_ISA 1084 /** Set the value in the data pointer to v as guest endian. */ 1085 template <typename T> | 1067#endif 1068 1069 /** Set the value in the data pointer to v as big endian. */ 1070 template <typename T> 1071 void setBE(T v); 1072 1073 /** Set the value in the data pointer to v as little endian. */ 1074 template <typename T> --- 4 unchanged lines hidden (view full) --- 1079 * endianness. 1080 */ 1081 template <typename T> 1082 void set(T v, ByteOrder endian); 1083 1084#if THE_ISA != NULL_ISA 1085 /** Set the value in the data pointer to v as guest endian. */ 1086 template <typename T> |
1086 void set(T v); | 1087 void set(T v) 1088 M5_DEPRECATED_MSG("The memory system should be ISA independent."); |
1087#endif 1088 | 1089#endif 1090 |
1089 | |
1090 /** 1091 * Get the data in the packet byte swapped from the specified 1092 * endianness and zero-extended to 64 bits. 1093 */ 1094 uint64_t getUintX(ByteOrder endian) const; 1095 1096 /** 1097 * Set the value in the word w after truncating it to the length --- 176 unchanged lines hidden --- | 1091 /** 1092 * Get the data in the packet byte swapped from the specified 1093 * endianness and zero-extended to 64 bits. 1094 */ 1095 uint64_t getUintX(ByteOrder endian) const; 1096 1097 /** 1098 * Set the value in the word w after truncating it to the length --- 176 unchanged lines hidden --- |