diff options
author | GPUCode <geoster3d@gmail.com> | 2023-11-17 22:23:48 +0200 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2023-11-25 00:46:47 -0500 |
commit | 48388376206aaa7d887b41030019035a06203867 (patch) | |
tree | 6dc27b3fc69d7ec4a1d4247fd0a00b7542ef72d4 /src/common/settings.cpp | |
parent | 2e02efbdd047ce125c7d0af418619f4e120df798 (diff) |
device_memory: Enable direct mapped addresses for nce
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r-- | src/common/settings.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 19dfe08da..167e984a6 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -156,8 +156,14 @@ bool IsFastmemEnabled() { return true; } -bool IsNceEnabled(bool is_64bit) { - return values.cpu_backend.GetValue() == CpuBackend::Nce && is_64bit; +static bool is_nce_enabled = false; + +void SetNceEnabled(bool is_64bit) { + is_nce_enabled = values.cpu_backend.GetValue() == CpuBackend::Nce && is_64bit; +} + +bool IsNceEnabled() { + return is_nce_enabled; } bool IsDockedMode() { |