diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-07 17:46:04 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-07 17:46:04 +0000 |
commit | b7ea19760ab96b70013cd0ce6f54ed6a89f0e1ca (patch) | |
tree | 53b4acf14af06c00a754db6d9e6e32e7c18c48b8 /src/mem/packet_access.hh | |
parent | ea7bdf9f60c404761dfc568d5291c75747a2dd88 (diff) | |
download | gem5-b7ea19760ab96b70013cd0ce6f54ed6a89f0e1ca.tar.xz |
Make byteswap work correctly on Twin??_t types.
--HG--
extra : convert_revision : a8a14078d62c24e480ffa69591edfc775d1d76cc
Diffstat (limited to 'src/mem/packet_access.hh')
-rw-r--r-- | src/mem/packet_access.hh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mem/packet_access.hh b/src/mem/packet_access.hh index 552b6dd27..d1edd00aa 100644 --- a/src/mem/packet_access.hh +++ b/src/mem/packet_access.hh @@ -41,31 +41,6 @@ // these functions and make the users do their own byte swapping since // the memory system does not in fact have an endianness. -template<> -inline Twin64_t -Packet::get() -{ - Twin64_t d; - assert(staticData || dynamicData); - assert(sizeof(Twin64_t) <= size); - d.a = TheISA::gtoh(*(uint64_t*)data); - d.b = TheISA::gtoh(*((uint64_t*)data + 1)); - return d; -} - -template<> -inline Twin32_t -Packet::get() -{ - Twin32_t d; - assert(staticData || dynamicData); - assert(sizeof(Twin32_t) <= size); - d.a = TheISA::gtoh(*(uint32_t*)data); - d.b = TheISA::gtoh(*((uint32_t*)data + 1)); - return d; -} - - /** return the value of what is pointed to in the packet. */ template <typename T> inline T |