Debugger Shell Cache Line Commands

The cmdwin::caln commands manage cache line operations. They affect memory elements within a designated cache.

The following table summarizes these commands.

Table 1. Debugger Shell Cache Line Commands
Command Description
cmdwin::caln::get Display cache line
cmdwin::caln::flush Flush cache line
cmdwin::caln::inval Invalidate cache line
cmdwin::caln::lock Locks/unlocks cache line
cmdwin::caln::set Writes specified data to cache line

The basic format for a shell cache line command is:

command [<cache ID>] <line> [<count>]

The optional cache ID argument specifies the cache that the command affects, otherwise it affects the default cache, as set by the cmdwin::ca::default command.

The required line argument specifies the cache line to affect.

The optional count argument specifies the number of cache lines the command affects. The default is one line. For example:

%> cmdwin::caln:flush 2

flushes line 2 of the default cache.

The cmdwin::caln:set command varies from the other commands in that you must specify data words that fill the cache line. For example:

%> cmdwin::caln:set 2 = 0 1 1 2 3 5 8 13

Sets the contents of cache line two, where the first word has a value of 0, the second word has a value of 1, the third word has a value of 1, the fourth word has a value of 2, and so on.

Note: If the command specifies a list of data values that are less than one line's worth of words, then the values are repeated from the beginning of the list to complete the filling the cache line. If too many data words are specified for the cache line to hold, the extra values are discarded.