diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-13 20:54:07 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-13 20:54:07 +0000 |
commit | 63a60c74b9cbe733a2c6110a78d2610b75afde3e (patch) | |
tree | 0ae9236caec491f6ff7804f32fe6dfe422ae8a7a /code/qcommon | |
parent | 7e430ed829f31dffc90e24e9fbf65e4341a13c2a (diff) | |
download | ioquake3-aero-63a60c74b9cbe733a2c6110a78d2610b75afde3e.tar.gz ioquake3-aero-63a60c74b9cbe733a2c6110a78d2610b75afde3e.zip |
* Patch from https://bugzilla.icculus.org/show_bug.cgi?id=2540
git-svn-id: svn://svn.icculus.org/quake3/trunk@471 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/vm_ppc_new.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/code/qcommon/vm_ppc_new.c b/code/qcommon/vm_ppc_new.c index 17cc405..c10e700 100644 --- a/code/qcommon/vm_ppc_new.c +++ b/code/qcommon/vm_ppc_new.c @@ -24,6 +24,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "vm_local.h" +#ifdef MACOS_X +#include <CoreServices/CoreServices.h> +#endif + #define DEBUG_VM 0 #if DEBUG_VM @@ -1714,7 +1718,14 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) { // 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) { |