mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-11 01:19:59 +01:00
a32_emit_x64: std::move A32::UserConfig in the constructor
This avoids a few redundant atomic increments and decrements, considering the UserConfig instance contains a std::array of std::shared_ptr<Coprocessor> instances.
This commit is contained in:
parent
b098c650df
commit
54d8552177
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
#include <fmt/ostream.h>
|
#include <fmt/ostream.h>
|
||||||
|
|
||||||
@ -75,7 +76,7 @@ bool A32EmitContext::FPSCR_DN() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
A32EmitX64::A32EmitX64(BlockOfCode& code, A32::UserConfig config, A32::Jit* jit_interface)
|
A32EmitX64::A32EmitX64(BlockOfCode& code, A32::UserConfig config, A32::Jit* jit_interface)
|
||||||
: EmitX64(code), config(config), jit_interface(jit_interface)
|
: EmitX64(code), config(std::move(config)), jit_interface(jit_interface)
|
||||||
{
|
{
|
||||||
GenMemoryAccessors();
|
GenMemoryAccessors();
|
||||||
code.PreludeComplete();
|
code.PreludeComplete();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user