#158495 - sverx - Thu Jun 12, 2008 10:17 am
Hi there... I'm back once more with my newbie questions.
This time I've got to ask the forum about the ARM9 Cache.
I've already read the really interesting (and clear!) topic here, and I've read, mainly, about flushing the data cache
and/or ORing 0x400000 to a memory address to 'bypass' the cache so really accessing the memory content.
In my little program they both work but on the NO$GBA emulator, when I use the 'ORing 0x400000' system, the numbers of Total Errors (you know, the F3 key...) immediatly goes from the 0 I had before to some thousand... and I see no reasons at all :|
You see... I would like not to use the DC_FlushAll() because I just need -sometimes- to access a memory area where -constantly- the ARM7 writes different values, so I guess I shouldn't disturb the cache for that... I hope you understand what I mean... :|
(yes, I had to study English better when in high school...)
Any help/hint will be appreciated! :)
Thanks! Ciao :)
This time I've got to ask the forum about the ARM9 Cache.
I've already read the really interesting (and clear!) topic here, and I've read, mainly, about flushing the data cache
Code: |
DC_FlushAll() |
and/or ORing 0x400000 to a memory address to 'bypass' the cache so really accessing the memory content.
In my little program they both work but on the NO$GBA emulator, when I use the 'ORing 0x400000' system, the numbers of Total Errors (you know, the F3 key...) immediatly goes from the 0 I had before to some thousand... and I see no reasons at all :|
You see... I would like not to use the DC_FlushAll() because I just need -sometimes- to access a memory area where -constantly- the ARM7 writes different values, so I guess I shouldn't disturb the cache for that... I hope you understand what I mean... :|
(yes, I had to study English better when in high school...)
Any help/hint will be appreciated! :)
Thanks! Ciao :)