# | Line 613 | Line 613 | int main(int argc, char **argv) | |
---|---|---|
613 | goto quit; | |
614 | } | |
615 | dr_cache_area_mapped = true; | |
616 | + | #if !EMULATED_PPC |
617 | + | if (vm_protect((char *)DR_CACHE_BASE, DR_CACHE_SIZE, VM_PAGE_READ | VM_PAGE_WRITE | VM_PAGE_EXECUTE) < 0) { |
618 | + | sprintf(str, GetString(STR_DR_CACHE_MMAP_ERR), strerror(errno)); |
619 | + | ErrorAlert(str); |
620 | + | goto quit; |
621 | + | } |
622 | + | #endif |
623 | DRCacheAddr = DR_CACHE_BASE; | |
624 | D(bug("DR Cache at %p\n", DRCacheAddr)); | |
625 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |