* how to clear the D_cache and I_cache in the MIPS linux ?
@ 2009-04-22 9:08 fredtan
2009-04-22 10:50 ` Arnaud Patard
0 siblings, 1 reply; 3+ messages in thread
From: fredtan @ 2009-04-22 9:08 UTC (permalink / raw)
To: linux-mips
I am porting native‐code compilation to a JavaScript engine in the MIPS
platform.After the program
finished dynamic and transparent binary translation,it first write back the
code into the memory from
D_CACHE,then invalidate I_CACHE,then run the code. My MIPS does not have
SYNCI instruction,Cache
instruction is a privilege instruction, the program has no right to use it.
So , What can I do ?
Very grateful for any reply !!!
--
View this message in context: http://www.nabble.com/how-to-clear-the-D_cache-and-I_cache-in-the-MIPS-linux---tp23172497p23172497.html
Sent from the linux-mips main mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to clear the D_cache and I_cache in the MIPS linux ?
2009-04-22 9:08 how to clear the D_cache and I_cache in the MIPS linux ? fredtan
@ 2009-04-22 10:50 ` Arnaud Patard
2009-04-22 11:34 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Patard @ 2009-04-22 10:50 UTC (permalink / raw)
To: fredtan; +Cc: linux-mips
fredtan <tanflying@gmail.com> writes:
> D_CACHE,then invalidate I_CACHE,then run the code. My MIPS does not have
> SYNCI instruction,Cache
>
> instruction is a privilege instruction, the program has no right to use it.
> So , What can I do ?
use cacheflush()
Arnaud
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to clear the D_cache and I_cache in the MIPS linux ?
2009-04-22 10:50 ` Arnaud Patard
@ 2009-04-22 11:34 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2009-04-22 11:34 UTC (permalink / raw)
To: Arnaud Patard; +Cc: fredtan, linux-mips
On Wed, Apr 22, 2009 at 12:50:36PM +0200, Arnaud Patard wrote:
> fredtan <tanflying@gmail.com> writes:
>
> > D_CACHE,then invalidate I_CACHE,then run the code. My MIPS does not have
> > SYNCI instruction,Cache
> >
> > instruction is a privilege instruction, the program has no right to use it.
> > So , What can I do ?
>
> use cacheflush()
It is preferable to always use cacheflush(). The plan is to eventually
enhance the cacheflush(3) library function to use SYNCI as applicable for
a particular platform.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-22 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22 9:08 how to clear the D_cache and I_cache in the MIPS linux ? fredtan
2009-04-22 10:50 ` Arnaud Patard
2009-04-22 11:34 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).