mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-08 08:00:01 +01:00
xbyak is intended to be installed in /usr/local/include/xbyak. Since we desire not to install xbyak before using it, we copy the headers to the appropriate directory structure and use that instead
26 lines
624 B
C++
26 lines
624 B
C++
/* This file is part of the dynarmic project.
|
|
* Copyright (c) 2016 MerryMage
|
|
* SPDX-License-Identifier: 0BSD
|
|
*/
|
|
|
|
#include "dynarmic/backend/x64/hostloc.h"
|
|
|
|
#include <xbyak/xbyak.h>
|
|
|
|
#include "dynarmic/backend/x64/abi.h"
|
|
#include "dynarmic/backend/x64/stack_layout.h"
|
|
|
|
namespace Dynarmic::Backend::X64 {
|
|
|
|
Xbyak::Reg64 HostLocToReg64(HostLoc loc) {
|
|
ASSERT(HostLocIsGPR(loc));
|
|
return Xbyak::Reg64(static_cast<int>(loc));
|
|
}
|
|
|
|
Xbyak::Xmm HostLocToXmm(HostLoc loc) {
|
|
ASSERT(HostLocIsXMM(loc));
|
|
return Xbyak::Xmm(static_cast<int>(loc) - static_cast<int>(HostLoc::XMM0));
|
|
}
|
|
|
|
} // namespace Dynarmic::Backend::X64
|