mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
Temporary hack so most DRC games work on the M1/Apple Silicon. [R. Belmont, balr0g, Vas Crabb]
This commit is contained in:
parent
c797dba569
commit
eb8a262af1
@ -66,7 +66,12 @@ void osd_process_kill()
|
||||
void *osd_alloc_executable(size_t size)
|
||||
{
|
||||
#if defined(SDLMAME_BSD) || defined(SDLMAME_MACOSX)
|
||||
#ifdef __aarch64__
|
||||
// $$$$HACK! This assumes no DRC on Apple Silicon; making that work will be much more involved.
|
||||
return (void *)mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED, -1, 0);
|
||||
#else
|
||||
return (void *)mmap(0, size, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED, -1, 0);
|
||||
#endif
|
||||
#elif defined(SDLMAME_UNIX)
|
||||
return (void *)mmap(0, size, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED, 0, 0);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user