A64: Add unsafe_optimizations option

* Strength reduce FMA unsafely
This commit is contained in:
MerryMage 2020-07-06 21:01:24 +01:00
parent 82868034d3
commit 761e95eec0
5 changed files with 35 additions and 0 deletions

View file

@ -138,6 +138,9 @@ struct UserConfig {
return (f & optimizations) != no_optimizations;
}
/// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
bool unsafe_optimizations = false;
/// When set to true, UserCallbacks::DataCacheOperationRaised will be called when any
/// data cache instruction is executed. Notably DC ZVA will not implicitly do anything.
/// When set to false, UserCallbacks::DataCacheOperationRaised will never be called.