Go to the documentation of this file.
55 zeroRegister_(zeroRegister) {
61 for (
int i = 1; i < size; i++) {
82 if (index < 0 || index >
static_cast<int>(
registerStates_.size()) - 1) {
83 string msg =
"Register index out of range";
RegisterFileState(int size, int width, bool zeroRegister=false)
std::vector< RegisterState * > registerStates_
Contains all the registers of the state.
virtual ~RegisterFileState()
static NullRegisterFileState * instance_
Unique instance of NullRegisterFileState.
virtual RegisterState & registerState(int index)
static NullRegisterState & instance()
#define abortWithError(message)
static NullRegisterFileState & instance()
virtual ~NullRegisterFileState()
virtual std::size_t registerCount() const
virtual RegisterState & registerState(int index)