mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-29 19:48:58 +02:00
fx
This commit is contained in:
parent
abdce9d2a5
commit
3adbd973b0
1 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ void ABI_PushRegistersAndAdjustStack(BlockOfCode& code, const size_t frame_size,
|
||||||
const size_t num_xmms = (ABI_ALL_XMMS & regs).count();
|
const size_t num_xmms = (ABI_ALL_XMMS & regs).count();
|
||||||
const FrameInfo frame_info = CalculateFrameInfo(num_gprs, num_xmms, frame_size);
|
const FrameInfo frame_info = CalculateFrameInfo(num_gprs, num_xmms, frame_size);
|
||||||
|
|
||||||
|
code.push(rbp);
|
||||||
|
code.mov(rbp, rsp);
|
||||||
for (size_t i = 0; i < regs.size(); ++i)
|
for (size_t i = 0; i < regs.size(); ++i)
|
||||||
if (regs[i] && HostLocIsGPR(HostLoc(i)))
|
if (regs[i] && HostLocIsGPR(HostLoc(i)))
|
||||||
code.push(HostLocToReg64(HostLoc(i)));
|
code.push(HostLocToReg64(HostLoc(i)));
|
||||||
|
|
@ -87,6 +89,7 @@ void ABI_PopRegistersAndAdjustStack(BlockOfCode& code, const size_t frame_size,
|
||||||
for (int32_t i = regs.size() - 1; i >= 0; --i)
|
for (int32_t i = regs.size() - 1; i >= 0; --i)
|
||||||
if (regs[i] && HostLocIsGPR(HostLoc(i)))
|
if (regs[i] && HostLocIsGPR(HostLoc(i)))
|
||||||
code.pop(HostLocToReg64(HostLoc(i)));
|
code.pop(HostLocToReg64(HostLoc(i)));
|
||||||
|
code.pop(rbp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ABI_PushCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, const std::size_t frame_size) {
|
void ABI_PushCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, const std::size_t frame_size) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue