10#include "sparta/memory/AddressTypes.hpp"
28 const std::string& why) :
29 SpartaException(((std::stringstream&)(std::stringstream() <<
"Invalid translation from " << std::hex
30 << addr <<
" : " << why)).str())
47 const std::string& access,
48 const std::string& why) :
49 SpartaException(((std::stringstream&)(std::stringstream() <<
"Invalid " << access <<
" access at 0x" << std::hex
50 << addr <<
" of size: " << std::dec << size <<
": " << why)).str())
62 const std::string& why) :
75 const std::string& why) :
88 const std::string& why) :
101 const std::string& why) :
Exception class for all of Sparta.
Used to construct and throw a standard C++ exception. Inherits from std::exception.
SpartaException()
Construct a SpartaException object with empty reason.
Indicates that there was an issue accessing a SPARTA memory object or interface.
Error while attempting to peek some memory object or interface.
Error while attempting to poke some memory object or interface.
Error while attempting to read some memory object or interface.
Indicates that there was an issue translating an address in the SPARTA framework.
Error while attempting to write some memory object or interface.
uint64_t addr_t
Type for generic address representation in generic interfaces, errors and printouts within SPARTA.
Macros for handling exponential backoff.