core config: Expose min/max ranges of integral settings and use it

This commit is contained in:
Eladash 2019-08-02 21:53:47 +03:00 committed by Ivan
parent a6c94a0eaf
commit 6d3fc3a386
3 changed files with 9 additions and 3 deletions

View file

@ -66,7 +66,7 @@ namespace vm
atomic_t<u32> g_addr_lock = 0;
// Memory mutex: passive locks
std::array<atomic_t<cpu_thread*>, 4> g_locks{};
std::array<atomic_t<cpu_thread*>, g_cfg.core.ppu_threads.max> g_locks{};
std::array<atomic_t<u64>, 6> g_range_locks{};
static void _register_lock(cpu_thread* _cpu)