[Skyeye-developer] Help with cache and MMU models for ARM920T
kang shuo
blackfin.kang at gmail.com
Mon Apr 30 21:55:47 CST 2007
If my memory is not wrong , In ARM Reference Manual, it is said:
The instruction cache can be enabled with the MMU enabled or disabled.
However, the data cache can only be enabled when the MMU is enabled.
I do not know if arm920t have the same rules with the above statement.
In general speaking, SkyEye cares the correct behavior for application
program more than pricise simulation for the machine. That is to say,
in some time, maybe Skyeye do not want to simulate every detail of
machine if it do not affect the run behavior of a program.
-- Thanks
-- Michael.Kang
On 4/30/07, Juan Castillo <castillo at teisa.unican.es> wrote:
> Hello everybody.
>
> I wrote some mails before about possibility of measuring cache performance in
> arm920t cores with skyeye.
>
> I have been analysing source code of mmu and caches and I have one question:
> in file "arm920t_mmu.c", the function "arm920t_mmu_read(...)" performs a
> read, but it seems that if you have MMU_Disable (line 244), data is obtained
> directly from bank memory and we return from function. Cache access is
> performed after this condition.
>
> So, it seems that if MMU is disable, caches are also disable. I think that
> arm920t core accesses caches with virtual addresses, so MMU is only neccesary
> when a cache miss occurs. MMU and caches are independent systems that can be
> separately enabled.
>
> Could anybody tell me how the cache model has been obtained? I do not think
> that MMU has to be enabled to use caches, but maybe I am wrong.
>
> Thank you very much.
>
> ----------------------
>
> _______________________________________________
> Skyeye-developer mailing list
> Skyeye-developer at lists.gro.clinux.org
> http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
>
More information about the Skyeye-developer
mailing list