Go to the documentation of this file.
33 #ifndef OPERATION_CONTEXT_PIMPL_HH
34 #define OPERATION_CONTEXT_PIMPL_HH
99 bool hasState(
const char* name)
const;
void unregisterState(const char *name)
void registerState(OperationState *state)
InstructionAddress & irfBlockStart()
UInt32 InstructionAddress
SimValue & returnAddress_
Simulates the procedure return address.
StateRegistry & stateRegistry()
std::map< std::string, OperationState * > StateRegistry
Type of state registry.
void setUpdateProgramCounter(bool value)
int contextId_
Unique number that identifies a context instance.
bool saveReturnAddress_
Should the return address be saved?
void advanceClock(OperationContext &)
CycleCount * cycleCountVar_
The external variable that contains the current simulation cycle count.
OperationState & state(const char *name) const
CycleCount cycleCount_
Number of times advanceClock() has been called since the creation.
bool hasMemoryModel() const
void setMemory(Memory *memory)
Memory * memory_
The Memory model instance.
OperationContextPimpl(const TCEString &name)
SimValue & returnAddress()
const TCEString FUName_
Name of the FU instance – passed down from MachineStateBuilder.
bool updateProgramCounter_
Should program counter be updated?
void setStateRegistry(StateRegistry &stateRegistry)
InstructionAddress & programCounter()
void setCycleCountVariable(CycleCount &cycleCount)
CycleCount cycleCount() const
void initializeContextId()
bool updateProgramCounter() const
static int nextContextId_
Context id for the next created context instance.
long long CycleCount
Type for storing simulation cycle counts.
void setSaveReturnAddress(bool value)
void unsetStateRegistry()
int branchDelayCycles_
Amount of delay cycles caused by pipeline.
const TCEString & functionUnitName()
bool hasState(const char *name) const
InstructionAddress & programCounter_
Simulates the program counter value.
StateRegistry * stateRegistry_
The state registry.