Browse Source
Merge pull request #12325 from GPUCode/better-nce-message
settings: Clearer NCE error messages
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
src/common/settings.cpp
|
|
|
@ -160,12 +160,16 @@ static bool is_nce_enabled = false; |
|
|
|
|
|
|
|
void SetNceEnabled(bool is_39bit) { |
|
|
|
const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce; |
|
|
|
is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit; |
|
|
|
if (is_nce_selected && !is_nce_enabled) { |
|
|
|
if (is_nce_selected && !IsFastmemEnabled()) { |
|
|
|
LOG_WARNING(Common, "Fastmem is required to natively execute code in a performant manner, " |
|
|
|
"falling back to Dynarmic"); |
|
|
|
} |
|
|
|
if (is_nce_selected && !is_39bit) { |
|
|
|
LOG_WARNING( |
|
|
|
Common, |
|
|
|
"Program does not utilize 39-bit address space, unable to natively execute code"); |
|
|
|
} |
|
|
|
is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit; |
|
|
|
} |
|
|
|
|
|
|
|
bool IsNceEnabled() { |
|
|
|
|