Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* I-Cache consistency
@ 1995-11-28  5:00 Anton Ertl
  1995-11-29  5:00 ` Brian Hibbert
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Ertl @ 1995-11-28  5:00 UTC (permalink / raw)


I am working on an application that writes code into memory and then
executes it. Therefore I need to make sure that the I-cache does not
contain stale code. Is there a system call etc. on the Alpha for doing
this (like cachectl under Ultrix/MIPS) or is it unnecessary? I have
looked in the documentation and in the header files, but found
nothing.

I am currently working with OSF/1, but would also appreciate info on
other OSs.

Thanks in advance.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: I-Cache consistency
  1995-11-28  5:00 I-Cache consistency Anton Ertl
@ 1995-11-29  5:00 ` Brian Hibbert
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Hibbert @ 1995-11-29  5:00 UTC (permalink / raw)


anton@a0.complang.tuwien.ac.at (Anton Ertl) wrote:
>I am working on an application that writes code into memory and then
>executes it. Therefore I need to make sure that the I-cache does not
>contain stale code. Is there a system call etc. on the Alpha for doing
>this (like cachectl under Ultrix/MIPS) or is it unnecessary? I have
>looked in the documentation and in the header files, but found
>nothing.
>
>I am currently working with OSF/1, but would also appreciate info on
>other OSs.


   Try the CALL_PAL IMB instruction (Instruction Memory Barrier).  This 
is a required PALcode instruction that is intended for exactly the type 
of code that you are writing.  You must execute this instruction before 
executing any code that was written into the instruction stream or the
results will be unpredicatable.  

   See the "Alpha Architecture Reference Manual" (edited by Richard 
Sites, available from Digital Press) for more info.

Brian Hibbert





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-11-29  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-28  5:00 I-Cache consistency Anton Ertl
1995-11-29  5:00 ` Brian Hibbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox