Re: Doubt in updating the cache..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karthi,

>     When the Instruction/data is read from memory,
> it's copy will be put into the cache.
> 
> Question:
> 
>     How does the R4k processor determines whether the
> value read from memory is Instruction or Data so that
> the value will be put into the appropriate primary 
> cache?

The caches are not prescient...

Data is only ever put into the cache when the CPU *uses* it (and it
isn't there already).  If the CPU was do ingan instruction fetch, the
copy of the memory data goes in the I-cache; if the CPU was trying to
do a load it goes in the D-cache.

--
Dominic


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux