Browse Source
Only check on Linux/aarch64
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3669/head
crueter
2 days ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
4 additions and
3 deletions
-
src/common/settings.cpp
|
|
@ -27,7 +27,7 @@ |
|
|
#include "common/settings.h"
|
|
|
#include "common/settings.h"
|
|
|
#include "common/time_zone.h"
|
|
|
#include "common/time_zone.h"
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
|
|
|
|
|
#if defined(__linux__ ) && defined(ARCHITECTURE_arm64)
|
|
|
#include <unistd.h>
|
|
|
#include <unistd.h>
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@ -182,10 +182,11 @@ bool IsFastmemEnabled() { |
|
|
return bool(values.cpuopt_fastmem); |
|
|
return bool(values.cpuopt_fastmem); |
|
|
else if (values.cpu_accuracy.GetValue() == CpuAccuracy::Unsafe) |
|
|
else if (values.cpu_accuracy.GetValue() == CpuAccuracy::Unsafe) |
|
|
return bool(values.cpuopt_unsafe_host_mmu); |
|
|
return bool(values.cpuopt_unsafe_host_mmu); |
|
|
#if defined(__linux__)
|
|
|
|
|
|
|
|
|
#if defined(__linux__) && defined(ARCHITECTURE_arm64)
|
|
|
// Only 4kb systems support host MMU right now
|
|
|
// Only 4kb systems support host MMU right now
|
|
|
|
|
|
// TODO: Support this
|
|
|
return getpagesize() == 4096; |
|
|
return getpagesize() == 4096; |
|
|
#elif !defined(__APPLE__) && !defined(__ANDROID__) && !defined(_WIN32)
|
|
|
|
|
|
|
|
|
#elif !defined(__APPLE__) && !defined(__ANDROID__) && !defined(_WIN32) && !defined(__linux__)
|
|
|
return false; |
|
|
return false; |
|
|
#else
|
|
|
#else
|
|
|
return true; |
|
|
return true; |
|
|
|