From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,37e0200fe9bcd213 X-Google-Attributes: gid1164f8,public From: Brian Hibbert Subject: Re: I-Cache consistency Date: 1995/11/29 Message-ID: <49htlj$lrn@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 120495516 references: <49fgva$cfp@news.tuwien.ac.at> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.2N (Windows; I; 16bit) 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