diff options
author | bunnei <bunneidev@gmail.com> | 2020-07-14 12:38:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 12:38:03 -0400 |
commit | e2730372b8b26bf3141bf91107f9982e270f751b (patch) | |
tree | fb09276b0a1a736c6b106f1c6b51af9f97b3c307 /src/core/settings.h | |
parent | 450cbcfee6f006407f1e355ae7d29842398bb3de (diff) | |
parent | a67d00ef31aba1c45dde956b48844f91427963a1 (diff) |
Merge pull request #4294 from MerryMage/cpu-opt-settings
configuration: Add settings to enable/disable specific CPU optimizations
Diffstat (limited to 'src/core/settings.h')
-rw-r--r-- | src/core/settings.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index 29dc57c16..3eb336f75 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -357,6 +357,11 @@ enum class GPUAccuracy : u32 { Extreme = 2, }; +enum class CPUAccuracy { + Accurate = 0, + DebugMode = 1, +}; + extern bool configuring_global; template <typename Type> @@ -402,6 +407,18 @@ struct Values { // Core Setting<bool> use_multi_core; + // Cpu + CPUAccuracy cpu_accuracy; + + bool cpuopt_page_tables; + bool cpuopt_block_linking; + bool cpuopt_return_stack_buffer; + bool cpuopt_fast_dispatcher; + bool cpuopt_context_elimination; + bool cpuopt_const_prop; + bool cpuopt_misc_ir; + bool cpuopt_reduce_misalign_checks; + // Renderer Setting<RendererBackend> renderer_backend; bool renderer_debug; @@ -476,7 +493,6 @@ struct Values { bool dump_nso; bool reporting_services; bool quest_flag; - bool disable_cpu_opt; bool disable_macro_jit; // Misceallaneous |