Make DR Cache executable by default in native PowerPC mode.

This commit is contained in:
gbeauche 2004-05-31 10:55:42 +00:00
parent 389dd61d0d
commit 374101ee9e

View File

@ -613,6 +613,13 @@ int main(int argc, char **argv)
goto quit;
}
dr_cache_area_mapped = true;
#if !EMULATED_PPC
if (vm_protect((char *)DR_CACHE_BASE, DR_CACHE_SIZE, VM_PAGE_READ | VM_PAGE_WRITE | VM_PAGE_EXECUTE) < 0) {
sprintf(str, GetString(STR_DR_CACHE_MMAP_ERR), strerror(errno));
ErrorAlert(str);
goto quit;
}
#endif
DRCacheAddr = DR_CACHE_BASE;
D(bug("DR Cache at %p\n", DRCacheAddr));