Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / docs / ui-cmds / cmd_write-reg.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>SPARC Architectural Model: User Commands</title>
</head>
<body bgcolor="#FFFFFF" LANG="en-US">
<div STYLE="margin-bottom: 0cm"></div>&nbsp;
<h2>
write-reg
</h2>
<h4>
NAME
</h4>
<ul>
write-reg - write value to a register
</ul>
<h4>SYNOPSIS</h4>
<tt>
<ul>
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>
</ul>
</tt>
<h4>DESCRIPTION</h4>
<ul>
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.
<p>
By default, the current cwp register, global level, and trap level are
used to access windowed registers, global registers, and trap
registers, respectively.
The -cwp, -gl, and -tl flags may be used to override these defaults.
<table cellpadding=5%>
<tr>
<th>Flag</th><th>Behavior</i></th>
</tr>
<tr>
<td valign="top">-cwp <i>window-pointer</i></td><td>Sets cmd_the register window used to access
windowed registers</td>
</tr>
<tr>
<td valign="top">-gl <i>global-level</i></td><td>Sets the global level used to access global
registers</td>
</tr>
<tr>
<td valign="top">-tl <i>trap-level</i></td><td>Sets the trap level used to access trap
registers</td>
</tr>
</table>
</ul>
<h4>RETURN VALUES</h4>
<ul>
None.
</ul>
<h4>SEE ALSO</h4>
<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>
<hr>
</body>
</html>