Function xuantie::asm::dcache_isw
source · [−]pub unsafe fn dcache_isw(way_and_set: usize)
Expand description
DCACHE.ISW, D-cache invalid item for way and set instruction
Invalidate D-cache dirty table item corresponding to given way and set.
Permissions
Can run on M mode, or S mode if applicable.
Exceptions
Raises illegal instruction exception when mxstatus.theadisaee = 0
, or
when mxstatus.theadisaee = 1
but run on U mode.
Platform support
This instruction is supported on Xuantie C910, C906, E907 and E906 cores.
The C910 core has a 2-way set-associative D-cache. Input variable rs1[31]
represents number of way,
while rs1[w:6]
represents number of set. When D-cache is configured 32 Kibibytes, w
equals 13;
when configured 64 Kibibytes, w
equals 14.
The C906 core has a 4-way set-associative D-cache. Input variable rs1[31:30]
represents number of way,
while rs1[w:6]
represents number of set. When D-cache is configured 32 Kibibytes, w
equals 13;
when configured 64 Kibibytes, w
equals 14.
The E907 core has a 2-way set-associative D-cache. Input variable rs1[31]
represents number of way,
while rs1[w:6]
represents number of set. When D-cache is configured 32 Kibibytes, w
equals 13;
when configured 16 Kibibytes, w
equals 12, and so on.
The E906 core has a 2-way set-associative D-cache. Input variable rs1[31]
represents number of way,
while rs1[w:6]
represents number of set. When D-cache is configured 32 Kibibytes, w
equals 13;
when configured 16 Kibibytes, w
equals 12, and so on.