Represents an interface to a pseudo-"Register" of a fixed size which indirectly references other registers (having the same group num, group idx, and size) depending on simulator state. Essentially, this hides banking and register aliasing (shared data) information from the client of this interface which is useful for presenting debugginer-visible and software-visible registers without regard for the underlying banking or aliasing.
More...
#include <RegisterSet.hpp>
Represents an interface to a pseudo-"Register" of a fixed size which indirectly references other registers (having the same group num, group idx, and size) depending on simulator state. Essentially, this hides banking and register aliasing (shared data) information from the client of this interface which is useful for presenting debugginer-visible and software-visible registers without regard for the underlying banking or aliasing.
- Todo:
- Access a register
Definition at line 141 of file RegisterSet.hpp.
◆ RegisterProxy() [1/2]
Concrete Register Constructor. The "current register" of this proxy never changes.
- Parameters
-
Definition at line 171 of file RegisterSet.hpp.
◆ RegisterProxy() [2/2]
◆ ~RegisterProxy()
sparta::RegisterProxy::~RegisterProxy |
( |
| ) |
|
|
inline |
◆ getContainingRegisterSet()
RegisterSet & sparta::RegisterProxy::getContainingRegisterSet |
( |
| ) |
const |
|
inline |
◆ getCurrentRegister()
RegisterBase * sparta::RegisterProxy::getCurrentRegister |
( |
| ) |
const |
|
inline |
Gets the current register being pointed to by this proxy based on simulation state.
- Exceptions
-
SpartaException | if the current register cannot be retrieved because it does not exist in the current context indicated by the simulator |
Definition at line 1057 of file RegisterSet.hpp.
◆ stringize()
std::string sparta::RegisterProxy::stringize |
( |
| ) |
const |
|
inline |
◆ tryGetCurrentRegister()
RegisterBase * sparta::RegisterProxy::tryGetCurrentRegister |
( |
| ) |
const |
|
inline |
Attempt to get the current register being pointed to by this proxy based on simulation state.
- Returns
- The current register being proxied if any. Returns nullptr if no register exists in the current context indicated by the simulator
Definition at line 1067 of file RegisterSet.hpp.
The documentation for this class was generated from the following file: