summaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2022-11-10 17:11:27 -0800
committerGravatar GitHub2022-11-10 17:11:27 -0800
commitd05b183f2118a5e2c919c35023549f30201bdd7c (patch)
tree082cf6bb2e372c3233872b836fa96bdc0c25f279 /src/common/host_memory.cpp
parentMerge pull request #9180 from Docteh/remove_stuff (diff)
parentInitial ARM64 support (diff)
downloadyuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.gz
yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.xz
yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.zip
Merge pull request #9198 from liamwhite/arm64
Initial ARM64 support
Diffstat (limited to 'src/common/host_memory.cpp')
-rw-r--r--src/common/host_memory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 7f9659612..909f6cf3f 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -359,6 +359,12 @@ public:
359 } 359 }
360 }); 360 });
361 361
362 long page_size = sysconf(_SC_PAGESIZE);
363 if (page_size != 0x1000) {
364 LOG_CRITICAL(HW_Memory, "page size {:#x} is incompatible with 4K paging", page_size);
365 throw std::bad_alloc{};
366 }
367
362 // Backing memory initialization 368 // Backing memory initialization
363#if defined(__FreeBSD__) && __FreeBSD__ < 13 369#if defined(__FreeBSD__) && __FreeBSD__ < 13
364 // XXX Drop after FreeBSD 12.* reaches EOL on 2024-06-30 370 // XXX Drop after FreeBSD 12.* reaches EOL on 2024-06-30