avr-run1
Gnu simulator for avr
Usage
avr-run [options]
[{VAR=VAL | --}]
program
[program
args]
Options
-
-t[on|off], --trace[=on|off] -
Trace useful things
-
--trace-insn[=on|off] -
Perform instruction tracing
-
--trace-disasm[=on|off] -
Disassemble instructions (slower, but more accurate)
-
--trace-decode[=on|off] -
Trace instruction decoding
-
--trace-extract[=on|off] -
Trace instruction extraction
-
--trace-linenum[=on|off] -
Perform line number tracing (implies
--trace-insn)
-
--trace-memory[=on|off] -
Trace memory operations
-
--trace-alu[=on|off] -
Trace ALU (Arithmetic Logic Unit) operations
-
--trace-fpu[=on|off] -
Trace FPU (Floating Point Unit) operations
-
--trace-vpu[=on|off] -
Trace VPU (Vector Processing Unit) operations
-
--trace-branch[=on|off] -
Trace branching
-
--trace-semantics[=on|off] -
Perform ALU, FPU, VPU, MEMORY, and BRANCH tracing
-
--trace-model[=on|off] -
Include model performance data
-
--trace-core[=on|off] -
Trace core operations
-
--trace-events[=on|off] -
Trace events
-
--trace-syscall[=on|off] -
Trace system calls
-
--trace-register[=on|off] -
Trace cpu register accesses
-
--trace-debug[=on|off] -
Add information useful for debugging the simulator to the tracing output
--trace-fileFILE NAME-
Specify tracing output file
-
-p[on|off], --profile[=on|off] -
Perform profiling
-
--profile-insn[=on|off] -
Perform instruction profiling
-
--profile-memory[=on|off] -
Perform memory profiling
-
--profile-core[=on|off] -
Perform CORE profiling
-
--profile-model[=on|off] -
Perform model profiling
|
Specify the speed of the simulated cpu clock |
|---|---|
|
Specify profile output file |
-
--profile-pc[=on|off] -
Perform PC profiling
|
Specified PC profiling frequency |
|---|---|
|
Specify PC profiling size |
|
Specify PC profiling sample coverage |
-
--profile-pc-range BASE,BOUND -
Specify PC profiling address range
-
--hw-info, --info-hw -
List configurable hw regions
-
--hw-trace[=on|off], --trace-hw -
Trace all hardware devices
-
--hw-device DEVICE -
Add the specified device
-
--hw-list -
List the device tree
-
--hw-file FILE -
Add the devices listed in the file
--sockser-addrSOCKET ADDRESS-
Set serial emulation socket address
-
--watch-cycles-ACTION [+]COUNT -
Watch the simulator, take ACTION in COUNT cycles (`+' for every COUNT cycles), ACTION is int breakpoint
-
--watch-pc-ACTION [!]ADDRESS -
Watch the PC, take ACTION when matches ADDRESS (in range ADDRESS,ADDRESS), `!' negates test
-
--watch-clock-ACTION [+]MILLISECONDS -
Watch the clock, take ACTION after MILLISECONDS (`+' for every MILLISECONDS)
-
--watch-delete IDENT|all|pc|cycles|clock -
Delete a watchpoint
-
--watch-info -
List scheduled watchpoints
-
--memory-delete ADDRESS|all, --delete-memory ADDRESS -
Delete memory at ADDRESS (all addresses)
-
--memory-region ADDRESS,SIZE[,MODULO] -
Add a memory region
-
--memory-alias ADDRESS,SIZE{,ADDRESS} -
Add memory shadow
--memory-size<size>[in bytes, Kb (k suffix), Mb (m suffix) or Gb (g suffix)]-
Add memory at address zero
-
--memory-fill VALUE -
Fill subsequently added memory regions
-
--memory-clear -
Clear subsequently added memory regions
-
--memory-mapfile FILE -
Memory-map next memory region from file
-
--memory-info, --info-memory -
List configurable memory regions
-
--map-info -
List mapped regions
-
--model MODEL -
Specify model to simulate
-
--model-info, --info-model -
List selectable models
-
-v, --verbose -
Verbose output
-
-E B|big|L|little, --endian B|big|L|little -
Set endianness
-
--environment user|virtual|operating -
Set running environment
-
--alignment strict|nonstrict|forced -
Set memory access alignment
-
-D, --debug -
Print debugging messages
-
--debug-insn -
Print instruction debugging messages
--debug-fileFILE NAME-
Specify debugging output file
--do-command COMMAND
-
-h, --help -
Print help information
-
--version -
Print version information
-
--architecture MACHINE -
Specify the architecture to use
-
--architecture-info, --info-architecture -
List supported architectures
-
--target BFDNAME -
Specify the object-code format for the object files
-
--target-info, --info-target -
List supported targets
--load-{lma,vma}-
Use VMA or LMA addresses when loading image (default LMA)
-
--sysroot SYSROOT -
Root for system calls with absolute file-names and cwd at start
-
--argv0 ARGV0 -
Set argv[0] to the specified string
-
--env-set VAR=VAL -
Set the variable in the program's environment
-
--env-unset VAR -
Unset the variable in the program's environment
-
--env-clear -
Clear the program's environment
Note: Depending on the simulator configuration some options
-
may not be applicable
VAR=VAL Environment variables to set. Ignored if -- is used. program args Arguments to pass to simulated program.
-
Note: Very few simulators support this.
Releases
4 releases since Debian 7 (Wheezy); the text changed 3 times.
--alignment since Debian 12 (Bookworm);
--architecture since Debian 12 (Bookworm);
--architecture-info since Debian 12 (Bookworm);
--argv0 since Debian 12 (Bookworm);
--debug since Debian 12 (Bookworm);
--debug-insn since Debian 12 (Bookworm);
--delete-memory since Debian 12 (Bookworm);
--endian since Debian 12 (Bookworm);
--env-clear since Debian 12 (Bookworm);
--env-set since Debian 12 (Bookworm);
--env-unset since Debian 12 (Bookworm);
--environment since Debian 12 (Bookworm);
--help since Debian 12 (Bookworm);
--hw-device since Debian 12 (Bookworm);
--hw-file since Debian 12 (Bookworm);
--hw-info since Debian 12 (Bookworm);
--hw-list since Debian 12 (Bookworm);
--hw-trace since Debian 12 (Bookworm);
--info-architecture since Debian 12 (Bookworm);
--info-hw since Debian 12 (Bookworm);
--info-memory since Debian 12 (Bookworm);
--info-model since Debian 12 (Bookworm);
--info-target since Debian 12 (Bookworm);
--map-info since Debian 12 (Bookworm);
--memory-alias since Debian 12 (Bookworm);
--memory-clear since Debian 12 (Bookworm);
--memory-delete since Debian 12 (Bookworm);
--memory-fill since Debian 12 (Bookworm);
--memory-info since Debian 12 (Bookworm);
--memory-mapfile since Debian 12 (Bookworm);
--memory-region since Debian 12 (Bookworm);
--model since Debian 12 (Bookworm);
--model-info since Debian 12 (Bookworm);
--profile since Debian 12 (Bookworm);
--profile-core since Debian 12 (Bookworm);
--profile-insn since Debian 12 (Bookworm);
--profile-memory since Debian 12 (Bookworm);
--profile-model since Debian 12 (Bookworm);
--profile-pc since Debian 12 (Bookworm);
--profile-pc-range since Debian 12 (Bookworm);
--sysroot since Debian 12 (Bookworm);
--target since Debian 12 (Bookworm);
--target-info since Debian 12 (Bookworm);
--trace since Debian 12 (Bookworm);
--trace-alu since Debian 12 (Bookworm);
--trace-branch since Debian 12 (Bookworm);
--trace-core since Debian 12 (Bookworm);
--trace-debug since Debian 12 (Bookworm);
--trace-decode since Debian 12 (Bookworm);
--trace-disasm since Debian 12 (Bookworm);
--trace-events since Debian 12 (Bookworm);
--trace-extract since Debian 12 (Bookworm);
--trace-fpu since Debian 12 (Bookworm);
--trace-hw since Debian 12 (Bookworm);
--trace-insn since Debian 12 (Bookworm);
--trace-linenum since Debian 12 (Bookworm);
--trace-memory since Debian 12 (Bookworm);
--trace-model since Debian 12 (Bookworm);
--trace-register since Debian 12 (Bookworm);
--trace-semantics since Debian 12 (Bookworm);
--trace-syscall since Debian 12 (Bookworm);
--trace-vpu since Debian 12 (Bookworm);
--verbose since Debian 12 (Bookworm);
--version since Debian 12 (Bookworm);
--watch-clock-ACTION since Debian 12 (Bookworm);
--watch-cycles-ACTION since Debian 12 (Bookworm);
--watch-delete since Debian 12 (Bookworm);
--watch-info since Debian 12 (Bookworm);
--watch-pc-ACTION since Debian 12 (Bookworm);
-D since Debian 12 (Bookworm);
-E since Debian 12 (Bookworm);
-h since Debian 12 (Bookworm);
-p since Debian 12 (Bookworm);
-t since Debian 12 (Bookworm).