diff options
Diffstat (limited to 'Source/Core/Common/Arm64Emitter.cpp')
| -rw-r--r-- | Source/Core/Common/Arm64Emitter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/Arm64Emitter.cpp b/Source/Core/Common/Arm64Emitter.cpp index 1c173731cf..6546686716 100644 --- a/Source/Core/Common/Arm64Emitter.cpp +++ b/Source/Core/Common/Arm64Emitter.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include <algorithm> +#include <cstring> #include <vector> #include "Common/Arm64Emitter.h" @@ -312,6 +313,12 @@ const u8* ARM64XEmitter::AlignCodePage() return m_code; } +void ARM64XEmitter::Write32(u32 value) +{ + std::memcpy(m_code, &value, sizeof(u32)); + m_code += sizeof(u32); +} + void ARM64XEmitter::FlushIcache() { FlushIcacheSection(m_lastCacheFlushEnd, m_code); |
