|
|
Flushing instruction cache
Hi
I am just wondering if the Intel instruction set includes (Dual Core)
an instruction that allows me to flush the INSTRUCTION cache in one
go? I know there is a CFLUSH instruction out there, which allows fine-
grained deleting of single cache lines. However, looping over each
cache line takes quite a while. I think I have found once an
instruction that allows me to flush the whole data cache at once, but
I am more looking into the instruction cache at the moment!
Many thanks!
|
|
0
|
|
|
|
Reply
|
Martin
|
2/26/2009 11:09:13 AM |
|
Martin <spamtrap@crayne.org> wrote in part:
> I am just wondering if the Intel instruction set includes
> (Dual Core) an instruction that allows me to flush the
> INSTRUCTION cache in one go? I know there is a CFLUSH
> instruction out there, which allows fine- grained deleting
> of single cache lines. However, looping over each cache line
> takes quite a while. I think I have found once an instruction
> that allows me to flush the whole data cache at once, but
> I am more looking into the instruction cache at the moment!
I think you mean CLFLUSH instruction, and it can be used
on instructions or data but may GP(0) fault. I do not
know how it reacts to codepages which are typically RO.
Otherwise, there are the older INVD / WBINVD instructions
but these need to be run in Ring0 ore real-mode code.
For dual core, you will need to issue the instructions on
both cores to clear L1 caches.
-- Robert
|
|
0
|
|
|
|
Reply
|
Robert
|
2/26/2009 3:21:27 PM
|
|
|
1 Replies
282 Views
(page loaded in 0.039 seconds)
|
|
|
|
|
|
|
|
|