Does x86 have a non-privileged instruction to flush an entire cache as opposed to a single line?

341 Views Asked by At

I am wondering if an instruction or sequence of instructions in x86 assembly exists to flush the entire L1I and L1D caches of the CPU executing the instruction. Specifically, I am looking for the non-privileged cache equivalent to the instruction MOV to CR0 (changing CR0.PG from 1 to 0) that flushes all TLBs (including global ones). My goal is to flush these caches for security reasons and add them to other assembly instruction routines.

0

There are 0 best solutions below