read-configuration read-variable
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

read-reg

Synopsis

read-reg [cpu-name] "reg-name"
<processor_info>.read-reg "reg-name"

Description

Reads the register reg-name from an object implementing the int_register interface.

To read the eax register in an x86 processor called cpu0, the command invocation is read-reg cpu0 eax. There is also a namespace version cpu0.read-reg eax or the more convenient variant %eax that reads a register from the current frontend processor.

If no processor is selected using cpu-name, the current frontend processor is used.

Provided By

Simics Core

See Also

%, write-reg, print-processor-registers, pselect
read-configuration read-variable