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 | %<I>reg</I> | |
11 | </H2> | |
12 | ||
13 | <H4> | |
14 | NAME | |
15 | </H4> | |
16 | <UL> | |
17 | %<I>REG</I> - READ REGISTER BY NAME | |
18 | </UL> | |
19 | ||
20 | <H4>SYNOPSIS</H4> | |
21 | <TT> | |
22 | <UL> | |
23 | %<I>REG</i> | |
24 | </ul> | |
25 | </tt> | |
26 | ||
27 | <h4>DESCRIPTION</h4> | |
28 | <ul> | |
29 | This operator returns the value of the register <i>reg</i> for the current | |
30 | cpu specified by <a href="cmd_pselect.html">pselect</a>. | |
31 | The current cwp register, global level, and trap level are | |
32 | used to access windowed registers, global registers, and trap | |
33 | registers, respectively. | |
34 | <p> | |
35 | The <a href="cmd_read-reg.html">read-reg</a> command provides flags | |
36 | to access registers using a different cpu, register window, | |
37 | global level or trap level. | |
38 | <p> | |
39 | Use <a href="cmd_cpuregs.html">cpuregs</a> to list | |
40 | the supported register names. | |
41 | </ul> | |
42 | ||
43 | <h4>RETURN VALUES</h4> | |
44 | <ul> | |
45 | Returns the value of a specified register. | |
46 | </ul> | |
47 | ||
48 | <h4>SEE ALSO</h4> | |
49 | <ul><a href="cmd_pselect.html">pselect</a></ul> | |
50 | <ul><a href="cmd_read-reg.html">read-reg</a></ul> | |
51 | <ul><a href="cmd_write-reg.html">write-reg</a></ul> | |
52 | <ul><a href="cmd_pregs.html">pregs</a></ul> | |
53 | <ul><a href="cmd_cpuregs.html">cpuregs</a></ul> | |
54 | ||
55 | <hr> | |
56 | </body> | |
57 | </html> |