base: Add endianness conversion functions for std::array types.
authorGabe Black <gabeblack@google.com>
Wed, 13 Dec 2017 01:49:35 +0000 (17:49 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 13 Dec 2017 19:12:23 +0000 (19:12 +0000)
commita8f82f545abd27657e19a91dd6b9675a576b116b
tree02f5422bfaa98f0b17be7af3eb7c427f14ee0b88
parent5a4b143c2d53ee4eb0ff881278e35a35493b9de1
base: Add endianness conversion functions for std::array types.

These swap the endianness of each element within the array
individually.

They probably obsolute the Twin(32|64)_t types which I believe were
used for SPARC.

Change-Id: Ic389eb24bdcdc0081068b0c5a37abdf416f6c924
Reviewed-on: https://gem5-review.googlesource.com/6581
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/sim/byteswap.hh