The cmdwin::ca cache commands manage global cache operations. That is, they affect the operation of the entire cache. For multi-core processors, these commands operate on a specific cache if an optional ID number is provided. If the ID number is absent, the command operates on the cache that was assigned as the default by the last cmdwin::ca::default command.
The following table summarizes these cache commands.
| Command | Description |
|---|---|
| cmdwin::ca::default | Set specified cache as default |
| cmdwin::ca::enable | Enable/disable cache |
| cmdwin::ca::flush | Flushes cache |
| cmdwin::ca::inval | Invalidates cache |
| cmdwin::ca::lock | Lock/Unlock cache |
| cmdwin::ca::show | Show the architecture of the cache |
The basic format of a shell global cache command is:
command [<cache ID>] [on | off]
The optional cache ID number argument selects the cache that the command affects.
The optional on or off argument changes a cache's state.
For example, to display a particular cache's characteristics:
%> cmdwin::ca:show 1
displays the characteristics of the second processor cache.
You use the cmd::ca::default to assign a default cache that becomes the target of global cache commands. For example:
%> cmdwin::ca:default 0
makes the first processor cache the default cache. Subsequent global cache commands that do not specify a cache ID will affect this cache.
Other cache commands require the off or on state argument. When specifying a particular cache, the state argument follows the ID argument. For example:
%> cmdwin::ca:lock 2 on
locks the contents of the third processor cache, while:
%> cmdwin::ca:enable 1 off
disables the second processor cache.