110 return defaultValue_;
149 return defaultValue_;
188 return defaultValue_;
227 return defaultValue_;
267 return defaultValue_;
305 return defaultValue_;
333 unsigned int newValue) {
345 return defaultValue_;
373 unsigned int newValue) {
385 return defaultValue_;
425 return defaultValue_;
455 const std::string& newValue) {
460 <<
"Could not open file for writing." << std::endl;
474 return defaultValue_;
515 return defaultValue_;
544 unsigned int newValue) {
556 return defaultValue_;
595 return defaultValue_;
634 return defaultValue_;
652 unsigned int newValue) {
659 return defaultValue_;
670 new TemplatedSimulatorSetting<BooleanSetting, SetExecutionTrace>(
675 new TemplatedSimulatorSetting<BooleanSetting, SetBusTrace>(
680 new TemplatedSimulatorSetting<BooleanSetting, SetRFTracking>(
685 new TemplatedSimulatorSetting<StringSetting, SetHistoryFilename>(
690 new TemplatedSimulatorSetting<BooleanSetting, SetHistorySave>(
695 new TemplatedSimulatorSetting<PositiveIntegerSetting, SetHistorySize>(
699 settings_[
"procedure_transfer_tracking"] =
700 new TemplatedSimulatorSetting<
707 new TemplatedSimulatorSetting<
714 new TemplatedSimulatorSetting<
721 new TemplatedSimulatorSetting<
728 new TemplatedSimulatorSetting<
735 new TemplatedSimulatorSetting<
741 settings_[
"simulation_time_statistics"] =
742 new TemplatedSimulatorSetting<
748 new TemplatedSimulatorSetting<
754 new TemplatedSimulatorSetting<
760 new TemplatedSimulatorSetting<
762 "Sets the length of last procedure transfers to save in\n"
763 "memory for call trace printing.");
792 const int argumentCount = arguments.size() -1;
800 if (argumentCount == 0) {
801 SettingMap::iterator i =
settings_.begin();
806 << std::setw(30) << (*i).first
807 << std::setw(20) << (*i).second->valueAsString() <<
" "
808 << (*i).second->description() << std::endl;
814 SettingMap::iterator settingPosition =
817 if (settingPosition ==
settings_.end()) {
827 if (arguments.size() - 1 == 2) {
#define DEFAULT_INPUT_HISTORY_SIZE
#define SIM_DEFAULT_COMMAND_LOG
The default command log file name.
bool checkArgumentCount(int argumentCount, int minimum, int maximum)
ScriptInterpreter * interpreter() const
virtual void setString(std::string value)
std::string errorMessage() const
static bool fileIsDirectory(const std::string fileName)
static bool fileIsWritable(const std::string fileName)
static bool fileIsCreatable(const std::string fileName)
virtual void setInputHistoryLength(std::size_t length)
virtual void setInputHistoryLog(const std::string &historyFilename)
virtual void setSaveInputHistoryToFile(bool flag)
virtual std::ostream & outputStream()
virtual LineReader * lineReader() const
virtual void setError(bool state)
virtual void setResult(DataObject *result)
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &interpreter, SimulatorFrontend &, const std::string &newValue)
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &interpreter, SimulatorFrontend &, bool newValue)
static const DataObject & defaultValue()
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &interpreter, SimulatorFrontend &, unsigned int newValue)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
static const DataObject & defaultValue()
static const DataObject & defaultValue()
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
virtual bool setValue(SimulatorInterpreter &interpreter, SimulatorFrontend &simFront, const DataObject &newValue)=0
virtual std::string valueAsString()=0
SettingMap settings_
storage for simulator settings
virtual ~SettingCommand()
virtual std::string helpText() const
virtual bool execute(const std::vector< DataObject > &arguments)
SimulatorFrontend & simulatorFrontend()
virtual std::ostream & outputStream()
void setFUResourceConflictDetection(bool value)
void setCallHistoryLength(std::size_t length)
void setMemoryAccessTracking(bool value)
void setSimulationTimeStatistics(bool value)
void setProfileDataSaving(bool value)
void setNextInstructionPrinting(bool value)
void setUtilizationDataSaving(bool value)
void setStaticCompilation(bool value)
void setRFAccessTracing(bool value)
void setBusTracing(bool value)
void setTimeout(unsigned int value)
void setProcedureTransferTracing(bool value)
void setExecutionTracing(bool value)
virtual boost::format text(int textId)
@ TXT_INTERP_SETTING_HISTORY_SIZE
Description of the execution trace setting.
@ TXT_STATIC_COMPILATION
Use static compilation when using compiled simulator.
@ TXT_INTERP_HELP_SETTING
Help text for command "setting" of the CLI.
@ TXT_SIMULATION_TIME_STATISTICS
Description of the simulation time statistics setting.
@ TXT_INTERP_SETTING_PROFILE_SAVING
@ TXT_INTERP_SETTING_MEMORY_ACCESS_TRACKING
@ TXT_INTERP_SETTING_FU_CONFLICT_DETECTION
@ TXT_INTERP_SETTING_HISTORY_SAVE
@ TXT_INTERP_SETTING_PROCEDURE_TRANSFER_TRACKING
@ TXT_INTERP_SETTING_NEXT_INSTRUCTION_PRINTING
@ TXT_SIMULATION_TIMEOUT
Simulation timeout in seconds.
@ TXT_INTERP_SETTING_UTILIZATION_SAVING
@ TXT_INTERP_SETTING_EXECTRACE
@ TXT_INTERP_SETTING_BUSTRACE
@ TXT_INTERP_SETTING_HISTORY_FILENAME
@ TXT_INTERP_SETTING_RFTRACKING