Commit | Line | Data |
---|---|---|
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> | |
8 | ||
9 | <h2> | |
10 | write-reg | |
11 | </h2> | |
12 | ||
13 | <h4> | |
14 | NAME | |
15 | </h4> | |
16 | <ul> | |
17 | write-reg - write value to a register | |
18 | </ul> | |
19 | ||
20 | <h4>SYNOPSIS</h4> | |
21 | <tt> | |
22 | <ul> | |
23 | write-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> | |
31 | Set a cpu register. If <a href="flag_cpu.html">-cpu</a> is omitted, | |
32 | the current strand is used. | |
33 | Use <a href="cmd_cpuregs.html">cpuregs</a> command to show the supported register names. | |
34 | <p> | |
35 | By default, the current cwp register, global level, and trap level are | |
36 | used to access windowed registers, global registers, and trap | |
37 | registers, respectively. | |
38 | The -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 | |
45 | windowed 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 | |
49 | registers</td> | |
50 | </tr> | |
51 | <tr> | |
52 | <td valign="top">-tl <i>trap-level</i></td><td>Sets the trap level used to access trap | |
53 | registers</td> | |
54 | </tr> | |
55 | </table> | |
56 | </ul> | |
57 | ||
58 | <h4>RETURN VALUES</h4> | |
59 | <ul> | |
60 | None. | |
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> |