diff options
author | Tim Angus <tim@ngus.net> | 2007-07-21 22:52:39 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-07-21 22:52:39 +0000 |
commit | bfef94ce3a4f415043c0e7b97e222a3e9ee14b8d (patch) | |
tree | 0169bfb821f1e92d7c5d2d38dff60cd0a5bca714 /src/qcommon | |
parent | 32685fe5624f4f7a722ebf27388b24711e772ff1 (diff) |
* Merge of ioq3-r1119
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/vm_ppc.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/qcommon/vm_ppc.c b/src/qcommon/vm_ppc.c index 79fc506f..460fe425 100644 --- a/src/qcommon/vm_ppc.c +++ b/src/qcommon/vm_ppc.c @@ -24,10 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // ppc dynamic compiler #include "vm_local.h" - -#ifdef MACOS_X -#include <CoreServices/CoreServices.h> -#endif +#include <sys/mman.h> #define DEBUG_VM 0 @@ -1726,12 +1723,8 @@ 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 + // clear the instruction cache for generated code + msync(vm->codeBase, vm->codeLength, MS_INVALIDATE); } } if(0) |