mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-06 22:10:49 +00:00
fix alloc failures
This commit is contained in:
@@ -206,7 +206,9 @@ void ArmDynarmic32::MakeJit(Common::PageTable* page_table) {
|
|||||||
config.enable_cycle_counting = !m_uses_wall_clock;
|
config.enable_cycle_counting = !m_uses_wall_clock;
|
||||||
|
|
||||||
// Code cache size
|
// Code cache size
|
||||||
#if defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
#if defined(__OPENORBIS__)
|
||||||
|
config.code_cache_size = std::uint32_t(32_MiB);
|
||||||
|
#elif defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
||||||
config.code_cache_size = std::uint32_t(128_MiB);
|
config.code_cache_size = std::uint32_t(128_MiB);
|
||||||
#else
|
#else
|
||||||
config.code_cache_size = std::uint32_t(512_MiB);
|
config.code_cache_size = std::uint32_t(512_MiB);
|
||||||
|
|||||||
@@ -258,7 +258,9 @@ void ArmDynarmic64::MakeJit(Common::PageTable* page_table, std::size_t address_s
|
|||||||
config.enable_cycle_counting = !m_uses_wall_clock;
|
config.enable_cycle_counting = !m_uses_wall_clock;
|
||||||
|
|
||||||
// Code cache size
|
// Code cache size
|
||||||
#if defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
#if defined(__OPENORBIS__)
|
||||||
|
config.code_cache_size = std::uint32_t(32_MiB);
|
||||||
|
#elif defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
||||||
config.code_cache_size = std::uint32_t(128_MiB);
|
config.code_cache_size = std::uint32_t(128_MiB);
|
||||||
#else
|
#else
|
||||||
config.code_cache_size = std::uint32_t(512_MiB);
|
config.code_cache_size = std::uint32_t(512_MiB);
|
||||||
|
|||||||
@@ -67,8 +67,14 @@ public:
|
|||||||
const void* code_ptr = nullptr;
|
const void* code_ptr = nullptr;
|
||||||
};
|
};
|
||||||
static_assert(sizeof(FastDispatchEntry) == 0x10);
|
static_assert(sizeof(FastDispatchEntry) == 0x10);
|
||||||
|
#ifdef __OPENORBIS__
|
||||||
|
static constexpr u64 fast_dispatch_table_mask = 0xFF0;
|
||||||
|
static constexpr size_t fast_dispatch_table_size = 0x100;
|
||||||
|
#else
|
||||||
static constexpr u64 fast_dispatch_table_mask = 0xFFFF0;
|
static constexpr u64 fast_dispatch_table_mask = 0xFFFF0;
|
||||||
static constexpr size_t fast_dispatch_table_size = 0x10000;
|
static constexpr size_t fast_dispatch_table_size = 0x10000;
|
||||||
|
#endif
|
||||||
|
|
||||||
void ClearFastDispatchTable();
|
void ClearFastDispatchTable();
|
||||||
void GenFastmemFallbacks();
|
void GenFastmemFallbacks();
|
||||||
void GenTerminalHandlers();
|
void GenTerminalHandlers();
|
||||||
|
|||||||
@@ -60,8 +60,13 @@ public:
|
|||||||
const void* code_ptr = nullptr;
|
const void* code_ptr = nullptr;
|
||||||
};
|
};
|
||||||
static_assert(sizeof(FastDispatchEntry) == 0x10);
|
static_assert(sizeof(FastDispatchEntry) == 0x10);
|
||||||
|
#ifdef __OPENORBIS__
|
||||||
|
static constexpr u64 fast_dispatch_table_mask = 0xFF0;
|
||||||
|
static constexpr size_t fast_dispatch_table_size = 0x100;
|
||||||
|
#else
|
||||||
static constexpr u64 fast_dispatch_table_mask = 0xFFFFF0;
|
static constexpr u64 fast_dispatch_table_mask = 0xFFFFF0;
|
||||||
static constexpr size_t fast_dispatch_table_size = 0x100000;
|
static constexpr size_t fast_dispatch_table_size = 0x100000;
|
||||||
|
#endif
|
||||||
|
|
||||||
void ClearFastDispatchTable();
|
void ClearFastDispatchTable();
|
||||||
void GenMemory128Accessors();
|
void GenMemory128Accessors();
|
||||||
|
|||||||
Reference in New Issue
Block a user