diff options
Diffstat (limited to 'src/usr/diag/prdf/common/plat/mem/prdfMemAddress.H')
-rw-r--r-- | src/usr/diag/prdf/common/plat/mem/prdfMemAddress.H | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/common/plat/mem/prdfMemAddress.H b/src/usr/diag/prdf/common/plat/mem/prdfMemAddress.H index 4b1fc07fb..b0b86af04 100644 --- a/src/usr/diag/prdf/common/plat/mem/prdfMemAddress.H +++ b/src/usr/diag/prdf/common/plat/mem/prdfMemAddress.H @@ -87,12 +87,22 @@ class MemAddr static MemAddr fromReadAddr( uint64_t i_addr ); /** - * @brief Creates a MemAddr from a maintenance address. + * @brief Creates a MemAddr from the current maintenance address. * @param i_addr 64-bit address. */ template<TARGETING::TYPE T> static MemAddr fromMaintAddr( uint64_t i_addr ); + /** + * @brief Converts internal data structure to a maintenance address. + * @return A uint64_t version of the address. + * @note Does not include error type. This is because in most cases we + * will use this function to write out to hardware and in doing so + * we will want to clear the status bits anyway. + */ + template<TARGETING::TYPE T> + uint64_t toMaintAddr() const; + /** @return This address's rank. */ const MemRank& getRank() const { return iv_rnk; } |