Skip to content

Commit

Permalink
Correctly use the refactored JitEnableWrite
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG authored and nadiaholmquist committed Dec 8, 2023
1 parent 72d4eba commit bbecab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ARMJIT_A64/ARMJIT_Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Compiler::Compiler(melonDS::NDS& nds) : Arm64Gen::ARM64XEmitter(), NDS(nds)
VirtualProtect(pageAligned, alignedSize, PAGE_EXECUTE_READWRITE, &dummy);
#elif defined(__APPLE__)
pageAligned = (u8*)mmap(NULL, 1024*1024*16, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS | MAP_JIT,-1, 0);
JitEnableWrite();
nds.JIT.JitEnableWrite();
#else
mprotect(pageAligned, alignedSize, PROT_EXEC | PROT_READ | PROT_WRITE);
#endif
Expand Down

0 comments on commit bbecab6

Please sign in to comment.