write-configuration x
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

write-reg

Synopsis

write-reg [cpu-name] "reg-name" value
<processor_info>.write-reg "reg-name" value

Description

Set the register reg-name to value.

To set the eax register on the x86 processor cpu0 to 3, the command invocation is write-reg cpu0 eax 3. There is also a namespace version cpu0.write-reg eax 3 or the more convenient variant %eax = 3 that writes a register on the current frontend processor.

This function may or may not have the correct side-effects, depending on target and register. If no cpu-name is given, the current frontend processor is used.

Provided By

Simics Core

See Also

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