Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / docs / ui-cmds / cmd_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>
%<I>reg</I>
</H2>
<H4>
NAME
</H4>
<UL>
%<I>REG</I> - READ REGISTER BY NAME
</UL>
<H4>SYNOPSIS</H4>
<TT>
<UL>
%<I>REG</i>
</ul>
</tt>
<h4>DESCRIPTION</h4>
<ul>
This operator returns the value of the register <i>reg</i> for the current
cpu specified by <a href="cmd_pselect.html">pselect</a>.
The current cwp register, global level, and trap level are
used to access windowed registers, global registers, and trap
registers, respectively.
<p>
The <a href="cmd_read-reg.html">read-reg</a> command provides flags
to access registers using a different cpu, register window,
global level or trap level.
<p>
Use <a href="cmd_cpuregs.html">cpuregs</a> to list
the supported register names.
</ul>
<h4>RETURN VALUES</h4>
<ul>
Returns the value of a specified register.
</ul>
<h4>SEE ALSO</h4>
<ul><a href="cmd_pselect.html">pselect</a></ul>
<ul><a href="cmd_read-reg.html">read-reg</a></ul>
<ul><a href="cmd_write-reg.html">write-reg</a></ul>
<ul><a href="cmd_pregs.html">pregs</a></ul>
<ul><a href="cmd_cpuregs.html">cpuregs</a></ul>
<hr>
</body>
</html>