diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2022-12-13 16:51:45 -0800 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2022-12-15 14:02:40 -0800 |
commit | 9f93b98c87cfdbcbeb59b9da298344c840f747a4 (patch) | |
tree | 3ba6d247ca03596c7a9b9ab7ed93957a69b33c6d /fesvr/htif.h | |
parent | 4d4159e76d61980e300cea7bdbdab873f07db12a (diff) | |
download | spike-9f93b98c87cfdbcbeb59b9da298344c840f747a4.zip spike-9f93b98c87cfdbcbeb59b9da298344c840f747a4.tar.gz spike-9f93b98c87cfdbcbeb59b9da298344c840f747a4.tar.bz2 |
Rename memif_endianness_t to endianness_t
Diffstat (limited to 'fesvr/htif.h')
-rw-r--r-- | fesvr/htif.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fesvr/htif.h b/fesvr/htif.h index 5767e31..f63ff1c 100644 --- a/fesvr/htif.h +++ b/fesvr/htif.h @@ -31,18 +31,18 @@ class htif_t : public chunked_memif_t template<typename T> inline T from_target(target_endian<T> n) const { - memif_endianness_t endianness = get_target_endianness(); - assert(endianness == memif_endianness_little || endianness == memif_endianness_big); + endianness_t endianness = get_target_endianness(); + assert(endianness == endianness_little || endianness == endianness_big); - return endianness == memif_endianness_big? n.from_be() : n.from_le(); + return endianness == endianness_big? n.from_be() : n.from_le(); } template<typename T> inline target_endian<T> to_target(T n) const { - memif_endianness_t endianness = get_target_endianness(); - assert(endianness == memif_endianness_little || endianness == memif_endianness_big); + endianness_t endianness = get_target_endianness(); + assert(endianness == endianness_little || endianness == endianness_big); - return endianness == memif_endianness_big? target_endian<T>::to_be(n) : target_endian<T>::to_le(n); + return endianness == endianness_big? target_endian<T>::to_be(n) : target_endian<T>::to_le(n); } protected: |