Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / docs / ui-cmds / cmd_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>
10%<I>reg</I>
11</H2>
12
13<H4>
14NAME
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>
29This operator returns the value of the register <i>reg</i> for the current
30cpu specified by <a href="cmd_pselect.html">pselect</a>.
31The current cwp register, global level, and trap level are
32used to access windowed registers, global registers, and trap
33registers, respectively.
34<p>
35The <a href="cmd_read-reg.html">read-reg</a> command provides flags
36to access registers using a different cpu, register window,
37global level or trap level.
38<p>
39Use <a href="cmd_cpuregs.html">cpuregs</a> to list
40the supported register names.
41</ul>
42
43<h4>RETURN VALUES</h4>
44<ul>
45Returns 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>