Index: code/qcommon/vm_ppc_new.c =================================================================== --- code/qcommon/vm_ppc_new.c (revision 445) +++ code/qcommon/vm_ppc_new.c (working copy) @@ -24,6 +24,10 @@ #include "vm_local.h" +#ifdef MACOS_X +#include +#endif + #define DEBUG_VM 0 #if DEBUG_VM @@ -1714,7 +1718,14 @@ // go back over it in place now to fixup reletive jump targets buf = (unsigned *)vm->codeBase; - } + } else if ( pass == 1 ) { + #ifdef MACOS_X + // On Mac OS X, the following library routine clears the instruction cache for generated code + MakeDataExecutable(vm->codeBase, vm->codeLength); + #else + #warning Need to clear the instruction cache for generated code + #endif + } } if(0) {