In legion build config, updated path to GNU tools and updated deprecated Sun CC flag...
[OpenSPARC-T2-SAM] / sam-t2 / sam / docs / ui-cmds / cmd_write-reg.html
CommitLineData
920dae64
AT
1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
4<title>SPARC Architectural Model: User Commands</title>
5</head>
6<body bgcolor="#FFFFFF" LANG="en-US">
7<div STYLE="margin-bottom: 0cm"></div>&nbsp;
8
9<h2>
10write-reg
11</h2>
12
13<h4>
14NAME
15</h4>
16<ul>
17write-reg - write value to a register
18</ul>
19
20<h4>SYNOPSIS</h4>
21<tt>
22<ul>
23write-reg [-cpu <i>cpu_set</i>]
24[-cwp <i>window-pointer</i>] [-gl <i>global-level</i>] [-tl <i>trap-level</i>]
25<i>reg-name</i> <i>value</i>
26</ul>
27</tt>
28
29<h4>DESCRIPTION</h4>
30<ul>
31Set a cpu register. If <a href="flag_cpu.html">-cpu</a> is omitted,
32the current strand is used.
33Use <a href="cmd_cpuregs.html">cpuregs</a> command to show the supported register names.
34<p>
35By default, the current cwp register, global level, and trap level are
36used to access windowed registers, global registers, and trap
37registers, respectively.
38The -cwp, -gl, and -tl flags may be used to override these defaults.
39<table cellpadding=5%>
40<tr>
41<th>Flag</th><th>Behavior</i></th>
42</tr>
43<tr>
44<td valign="top">-cwp <i>window-pointer</i></td><td>Sets cmd_the register window used to access
45windowed registers</td>
46</tr>
47<tr>
48<td valign="top">-gl <i>global-level</i></td><td>Sets the global level used to access global
49registers</td>
50</tr>
51<tr>
52<td valign="top">-tl <i>trap-level</i></td><td>Sets the trap level used to access trap
53registers</td>
54</tr>
55</table>
56</ul>
57
58<h4>RETURN VALUES</h4>
59<ul>
60None.
61</ul>
62
63<h4>SEE ALSO</h4>
64<ul><a href="cmd_reg.html">%reg</a></ul>
65<ul><a href="cmd_read-reg.html">read-reg</a></ul>
66<ul><a href="cmd_pregs.html">pregs</a></ul>
67<ul><a href="cmd_cpuregs.html">cpuregs</a></ul>
68
69<hr>
70</body>
71</html>