📄 c_cache.htm
字号:
<title>The cache Command</title><h1>cache</h1><!--INDEX "cache command" "display cache contents" locked valid tag -->The cache command displays the contents of the caches.<p></dl><h2>Format</h2><dl><dd>The format for the cache command is:<p><pre>cache [-idvl][set [adr]]</pre>where:<p><dl compact><dt>-i <dd>is a flag indicating that the Icache should be displayed.<dt>-d <dd>is a flag indicating that the Dcache should be displayed (default).<dt>-v <dd>is a flag indicating that only valid entries should be displayed.<dt>-l <dd>is a flag indicating that only locked entries should be displayed (400x cores only).<dt>set <dd>is the set number, eg. 0 or 1 for set0 and set1 respectively (default is set0).<dt>adr <dd>is the address of the first cache entry to be displayed.</dl><p>By default, the cache command displays the first 8 lines of set0 of theDcache.<p></dl><h2>Functional Description</h2><dl><dd>The cache command displays the contents of the caches. If the user does not specify the starting address adr or set number, display starts at address zero.Note that, because PMON generally executes from cache, the valuesdisplayed by this command will change even though no user applicationhas been executed. With IMON this restriction is avoided. <p>If the user specifies the -i option, the contents of the Icachewill be displayed, otherwise the Dcache will be displayed.If set is specified, the command will display the contents of thespecified cache set.If adr is specified, the display will start at that address.<p>Examples illustrating the use of the cache command follow.<p><pre>PMON> cache Display Dcache set0 starting at address zero.PMON> cache 1 80020000 Display Dcache set 1 starting at address 0x80020000.PMON> cache -i 0 80020000 Display Icache set 0 starting at address 0x80020000.</pre></dl><h2>Files</h2><dl><dd>The cache command is located in <a href="../lib/c400x.c">lib/c400x.c</a>or <a href="../lib/c401x.c">lib/c401x.c</a></dl><h2>See Also</h2><dl><dd><a href="c_flush.htm">flush command</a></dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -