GRMON3-UM
June 2019, Version 3.1.0
142 www.cobham.com/gaisler
48. icache - syntax
NAME
icache - Show, enable or disable instruction cache
SYNOPSIS
icache ?boolean? ?cpu#?
icache diag ?windex? ?lindex? ?cpu#?
icache flush ?cpu#?
icache way windex ?lindex? ?cpu#?
icache tag windex lindex ?value? ?tbmask? ?cpu#?
DESCRIPTION
In all forms of the icache command, the optional parameter ?cpu#? specifies which CPU to operate on. The active
CPU will be used if parameter is omitted.
icache ?boolean? ?cpu#?
If ?boolean? is not given then show the content of all ways. If ?boolean? is present, then enable or
disable the instruction cache.
icache diag ?windex? ?lindex? ?cpu#?
Check if the instruction cache is consistent with the memory. Optionally a specific way or line can be
checked.
icache flush ?cpu#?
Flushes the instruction cache
icache way windex ?lindex? ?cpu#?
Show the contents of specified way windex or optionally a specific line ?lindex?.
icache tag windex lindex ?value? ?tbmask? ?cpu#?
Read or write a raw instruction cache tag value. Way and line is selected with windex and lindex. The
parameter value, if given, is written to the tag. The optional parameter tbmask is xor-ed with the test
check bits generated by the cache controller during the write.
RETURN VALUE
Command icache diag returns a list of all inconsistent entries. Each element of the list contains CPU id, way id,
line id, word id, physical address, cached data and the data from the memory.
Command icache tag returns the tag value on read.
The other icache commands have no return value.
SEE ALSO
Section 3.4.15, “CPU cache support”
dcache