diff --git a/src/backend/x64/a32_emit_x64.cpp b/src/backend/x64/a32_emit_x64.cpp index 4f2a25c6..09ab5e64 100644 --- a/src/backend/x64/a32_emit_x64.cpp +++ b/src/backend/x64/a32_emit_x64.cpp @@ -158,7 +158,9 @@ void A32EmitX64::InvalidateCacheRanges(const boost::icl::interval_set& rang } void A32EmitX64::ClearFastDispatchTable() { - fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr}); + if (config.enable_fast_dispatch) { + fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr}); + } } void A32EmitX64::GenMemoryAccessors() { diff --git a/src/backend/x64/a64_emit_x64.cpp b/src/backend/x64/a64_emit_x64.cpp index 25fde3a6..c9755392 100644 --- a/src/backend/x64/a64_emit_x64.cpp +++ b/src/backend/x64/a64_emit_x64.cpp @@ -144,7 +144,9 @@ void A64EmitX64::InvalidateCacheRanges(const boost::icl::interval_set& rang } void A64EmitX64::ClearFastDispatchTable() { - fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr}); + if (conf.enable_fast_dispatch) { + fast_dispatch_table.fill({0xFFFFFFFFFFFFFFFFull, nullptr}); + } } void A64EmitX64::GenMemory128Accessors() {