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
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/ostream.h>
|
||||
|
||||
|
@ -75,7 +76,7 @@ bool A32EmitContext::FPSCR_DN() const {
|
|||
}
|
||||
|
||||
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();
|
||||
code.PreludeComplete();
|
||||
|
|
Loading…
Reference in a new issue