From 2c9eee1eb5b823a878f67289f488156ceb8b63b3 Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Sat, 25 Apr 2026 01:14:34 -0500 Subject: [PATCH] Reduce address space size for FreeBSD (#4318) --- src/core/address_space.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/address_space.cpp b/src/core/address_space.cpp index 2d44e62df..722761f6b 100644 --- a/src/core/address_space.cpp +++ b/src/core/address_space.cpp @@ -45,6 +45,9 @@ constexpr VAddr USER_MIN = 0x1000000000ULL; #if defined(__linux__) // Linux maps the shadPS4 executable around here, so limit the user maximum constexpr VAddr USER_MAX = 0x54FFFFFFFFFFULL; +#elif defined(__FreeBSD__) +// FreeBSD address space is extremely volatile, keep this lower for safety. +constexpr VAddr USER_MAX = 0xFFFFFFFFFFFULL; #else constexpr VAddr USER_MAX = 0x5FFFFFFFFFFFULL; #endif