mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-11 09:30:00 +01:00
backend/x64: Do not clear fast_dispatch_table if not enabled
There is no need to pay for the cost of setting a large block of memory if we're not using it.
This commit is contained in:
parent
9b65100660
commit
8f9206901d
@ -158,7 +158,9 @@ void A32EmitX64::InvalidateCacheRanges(const boost::icl::interval_set<u32>& rang
|
|||||||
}
|
}
|
||||||
|
|
||||||
void A32EmitX64::ClearFastDispatchTable() {
|
void A32EmitX64::ClearFastDispatchTable() {
|
||||||
fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr});
|
if (config.enable_fast_dispatch) {
|
||||||
|
fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void A32EmitX64::GenMemoryAccessors() {
|
void A32EmitX64::GenMemoryAccessors() {
|
||||||
|
|||||||
@ -144,7 +144,9 @@ void A64EmitX64::InvalidateCacheRanges(const boost::icl::interval_set<u64>& rang
|
|||||||
}
|
}
|
||||||
|
|
||||||
void A64EmitX64::ClearFastDispatchTable() {
|
void A64EmitX64::ClearFastDispatchTable() {
|
||||||
fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr});
|
if (conf.enable_fast_dispatch) {
|
||||||
|
fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void A64EmitX64::GenMemory128Accessors() {
|
void A64EmitX64::GenMemory128Accessors() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user