<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
<title>SPARC Architectural Model: User Commands
</title>
<body bgcolor=
"#FFFFFF" LANG=
"en-US">
<div STYLE=
"margin-bottom: 0cm"></div>
write-reg - write value to a register
write-reg [-cpu
<i>cpu_set
</i>]
[-cwp
<i>window-pointer
</i>] [-gl
<i>global-level
</i>] [-tl
<i>trap-level
</i>]
<i>reg-name
</i> <i>value
</i>
Set a cpu register. If
<a href=
"flag_cpu.html">-cpu
</a> is omitted,
the current strand is used.
Use
<a href=
"cmd_cpuregs.html">cpuregs
</a> command to show the supported register names.
By default, the current cwp register, global level, and trap level are
used to access windowed registers, global registers, and trap
The -cwp, -gl, and -tl flags may be used to override these defaults.
<th>Flag
</th><th>Behavior
</i></th>
<td valign=
"top">-cwp
<i>window-pointer
</i></td><td>Sets cmd_the register window used to access
<td valign=
"top">-gl
<i>global-level
</i></td><td>Sets the global level used to access global
<td valign=
"top">-tl
<i>trap-level
</i></td><td>Sets the trap level used to access trap
<ul><a href=
"cmd_reg.html">%reg
</a></ul>
<ul><a href=
"cmd_read-reg.html">read-reg
</a></ul>
<ul><a href=
"cmd_pregs.html">pregs
</a></ul>
<ul><a href=
"cmd_cpuregs.html">cpuregs
</a></ul>