From: Brian Hibbert <b_hibbert@csc32.enet.dec.com>
Subject: Re: I-Cache consistency
Date: 1995/11/29 [thread overview]
Message-ID: <49htlj$lrn@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 49fgva$cfp@news.tuwien.ac.at
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
prev parent reply other threads:[~1995-11-29 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-28 5:00 I-Cache consistency Anton Ertl
1995-11-29 5:00 ` Brian Hibbert [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox