Renode 的命令
原创
©著作权归作者所有:来自51CTO博客作者zoomdy的原创作品,请联系作者获取转载授权,否则将追究法律责任
在 Monitor 窗口连续按 TAB 键两次,会将当前可用的命令和实例罗列出来。
执行 mach create
命令创建 machine 后,将会自动创建 machine
和 sysbus
实例。
Renode 可执行命令分三种:内建命令,命令,实例。
未创建 machine 之前,连续按 TAB 键两次,所有可用命令如下,有 +
的是内建命令,有 -
的是命令,其它为实例:
- commandFromHistory
- history
- alias
- allowPrivates
- analyzers
connector
+ console_log
- createPlatform
- currentTime
+ dump
+ dump_file
+ echo
emulation
EmulationManager
- execute
+ get_environ
- help
host
- include
- lastLog
- log
- logFile
- logLevel
- mach
- macro
+ next_value
- numbersMode
- path
- pause
- peripherals
plugins
- python
- quit
- require
- runMacro
- set
- showAnalyzer
+ sleep
- start
- string
- using
- verboseMode
- version
- watch
实例有:connector
、 emulation
、 EmulationManager
、 host
、 plugins
,创建 machine 后又增加 machine
和 sysbus
实例。
内建命令没有帮助,命令可以使用 help cmd
查看帮助,例如输入help watch
,将输出:
(monitor) help watch
watch [ w ]
executes a command periodically, showing output in monitor
Usage:
watch "<command>" <refresh period in ms>
实例可以仅输入实例名后回车来获取帮助,例如输入 host
,将输出:
(monitor) host
The following methods are available:
- Void AddHostMachineElement (IHostMachineElement element, String name)
- Void DebugLog (String message)
- Void Dispose ()
- IEnumerable<String> GetNames ()
- Void Log (LogLevel type, String message)
- Void NoisyLog (String message)
- Void RemoveHostMachineElement (String name)
- Void RemoveHostMachineElement (IHostMachineElement element)
Usage:
host MethodName param1 param2 ...
The following fields are available:
- String HostMachineName (read only)
Usage:
- get: host fieldName
- set: host fieldName Value
Clearing the emulation
这里的 Clear
实际上是 EmulationManager Clear