summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2020-06-15 19:59:54 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2020-06-15 19:59:54 +0200
commitd563017dfe63aaa26e7c08369995838f8b9fdafb (patch)
tree9ddaa9082abcdf5c98f13e37a921a45041c0ec99 /src/common
parentxbyak_abi: Fix ABI_PushRegistersAndAdjustStack (diff)
downloadyuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.tar
yuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.tar.gz
yuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.tar.bz2
yuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.tar.lz
yuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.tar.xz
yuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.tar.zst
yuzu-d563017dfe63aaa26e7c08369995838f8b9fdafb.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/x64/xbyak_abi.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/common/x64/xbyak_abi.h b/src/common/x64/xbyak_abi.h
index d15e1aaf0..1dcd147b6 100644
--- a/src/common/x64/xbyak_abi.h
+++ b/src/common/x64/xbyak_abi.h
@@ -223,40 +223,4 @@ inline void ABI_PopRegistersAndAdjustStack(Xbyak::CodeGenerator& code, std::bits
}
}
-inline size_t ABI_PushRegistersAndAdjustStackGPS(Xbyak::CodeGenerator& code, std::bitset<32> regs,
- size_t rsp_alignment,
- size_t needed_frame_size = 0) {
- s32 subtraction, xmm_offset;
- ABI_CalculateFrameSize(regs, rsp_alignment, needed_frame_size, &subtraction, &xmm_offset);
-
- for (std::size_t i = 0; i < regs.size(); ++i) {
- if (regs[i] && ABI_ALL_GPRS[i]) {
- code.push(IndexToReg64(static_cast<int>(i)));
- }
- }
-
- if (subtraction != 0) {
- code.sub(code.rsp, subtraction);
- }
-
- return ABI_SHADOW_SPACE;
-}
-
-inline void ABI_PopRegistersAndAdjustStackGPS(Xbyak::CodeGenerator& code, std::bitset<32> regs,
- size_t rsp_alignment, size_t needed_frame_size = 0) {
- s32 subtraction, xmm_offset;
- ABI_CalculateFrameSize(regs, rsp_alignment, needed_frame_size, &subtraction, &xmm_offset);
-
- if (subtraction != 0) {
- code.add(code.rsp, subtraction);
- }
-
- // GPRs need to be popped in reverse order
- for (int i = 15; i >= 0; i--) {
- if (regs[i]) {
- code.pop(IndexToReg64(i));
- }
- }
-}
-
} // namespace Common::X64