|
libmicroemu 0.2.0
ARM Microcontroller Emulator Library
|
Provides access to special registers. More...
#include <spec_reg_access.h>
Public Types | |
| using | CpuAccessor = TCpuAccessor |
| using | SReg = typename CpuAccessor::SReg |
Public Member Functions | |
| SpecialRegAccessor (CpuAccessor &cpua) | |
| Constructs a SpecialRegAccessor object with the given processor states. | |
| ~SpecialRegAccessor ()=default | |
| Default destructor for the SpecialRegAccessor object. | |
| SpecialRegAccessor (const SpecialRegAccessor &)=default | |
| Default copy constructor for the SpecialRegAccessor object. | |
| SpecialRegAccessor & | operator= (const SpecialRegAccessor &)=default |
| Default copy assignment operator for the SpecialRegAccessor object. | |
| SpecialRegAccessor (SpecialRegAccessor &&)=default | |
| Default move constructor for the SpecialRegAccessor object. | |
| SpecialRegAccessor & | operator= (SpecialRegAccessor &&)=default |
| Default move assignment operator for the SpecialRegAccessor object. | |
| std::string_view | GetRegisterName (const SpecialRegisterId ®_id) const override |
| Gets the name of the specified special register. | |
| u32 | ReadRegister (const SpecialRegisterId ®_id) const override |
| Reads the value of the specified special register. | |
| void | WriteRegister (const SpecialRegisterId ®_id, u32 value) override |
| Writes the value to the specified special register. | |
Provides access to special registers.
The SpecialRegAccessor class allows reading and writing values to special registers. It is templated on the type TCpuAccessor , which gives internal access to the registers.
| TCpuAccessor | The type of the cpu accessor object. |
| TSpecRegOps | The type representing the operations on special registers. |
|
inline |
Constructs a SpecialRegAccessor object with the given processor states.
| CpuAccessor | The processor states to be used by the SpecialRegAccessor object. |
|
inlineoverridevirtual |
Gets the name of the specified special register.
| reg_id | The ID of the special register. |
Implements libmicroemu::ISpecialRegAccessor.
|
inlineoverridevirtual |
Reads the value of the specified special register.
| reg_id | The ID of the special register to be read. |
Implements libmicroemu::ISpecialRegAccessor.
|
inlineoverridevirtual |
Writes the value to the specified special register.
| reg_id | The ID of the special register to be written. |
| value | The value to be written to the special register. |
Implements libmicroemu::ISpecialRegAccessor.