revision 960:2f0819278fdb
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 960:2f0819278fdb |
parent | 959:f6b45ab24349 |
child | 961:3541b280e0f1 |
author | nkeynes |
date | Wed Jan 14 23:27:57 2009 +0000 (13 years ago) |
Execute the mem_unprotect call only on 64-bit platforms (where it may be needed), since
it seems to break on OS X 10.4 32-bit, at least
it seems to break on OS X 10.4 32-bit, at least
![]() | src/sh4/mmu.c | view | annotate | diff | log |
1.1 --- a/src/sh4/mmu.c Wed Jan 14 00:19:04 2009 +00001.2 +++ b/src/sh4/mmu.c Wed Jan 14 23:27:57 2009 +00001.3 @@ -145,9 +145,13 @@1.4 register_mem_page_remapped_hook( mmu_ext_page_remapped, NULL );1.5 mmu_utlb_1k_init();1.7 - /* Ensure the code regions are executable */1.8 + /* Ensure the code regions are executable (64-bit only). Although it might1.9 + * be more portable to mmap these at runtime rather than using static decls1.10 + */1.11 +#if SIZEOF_VOID_P == 81.12 mem_unprotect( mmu_utlb_pages, sizeof(mmu_utlb_pages) );1.13 mem_unprotect( mmu_utlb_1k_pages, sizeof(mmu_utlb_1k_pages) );1.14 +#endif1.15 }1.17 void MMU_reset()
.