diff options
Diffstat (limited to 'src/sim/aux_vector.cc')
-rw-r--r-- | src/sim/aux_vector.cc | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/sim/aux_vector.cc b/src/sim/aux_vector.cc index ef91da520..87a22e455 100644 --- a/src/sim/aux_vector.cc +++ b/src/sim/aux_vector.cc @@ -68,10 +68,25 @@ template<class IntType> AuxVector<IntType>::AuxVector(IntType type, IntType val) + : _auxType(TheISA::htog(type)), _auxVal(TheISA::htog(val)), + _auxHostType(type), _auxHostVal(val) +{ } + +template<class IntType> +inline void +AuxVector<IntType>::setAuxType(IntType type) +{ + _auxType = TheISA::htog(type); + _auxHostType = type; +} + +template<class IntType> +inline void +AuxVector<IntType>::setAuxVal(IntType val) { - a_type = TheISA::htog(type); - a_val = TheISA::htog(val); + _auxVal = TheISA::htog(val); + _auxHostVal = val; } -template struct AuxVector<uint32_t>; -template struct AuxVector<uint64_t>; +template class AuxVector<uint32_t>; +template class AuxVector<uint64_t>; |