mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-09 16:42:43 +00:00
OpcodeDispatcher: add Pop helpers
hide away the allocate dance Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
200c6c054f
commit
900c62fa7b
@ -2383,6 +2383,23 @@ private:
|
||||
return _Prefetch(ForStore, Stream, CacheLevel, ssa0, Invalid(), MEM_OFFSET_SXTX, 1);
|
||||
}
|
||||
|
||||
Ref Pop(uint8_t Size, Ref SP_RMW) {
|
||||
Ref Value = _AllocateGPR(false);
|
||||
_Pop(Size, SP_RMW, Value);
|
||||
return Value;
|
||||
}
|
||||
|
||||
Ref Pop(uint8_t Size) {
|
||||
Ref SP = _RMWHandle(LoadGPRRegister(X86State::REG_RSP));
|
||||
Ref Value = _AllocateGPR(false);
|
||||
|
||||
_Pop(Size, SP, Value);
|
||||
|
||||
// Store the new stack pointer
|
||||
StoreGPRRegister(X86State::REG_RSP, SP);
|
||||
return Value;
|
||||
}
|
||||
|
||||
void InstallHostSpecificOpcodeHandlers();
|
||||
|
||||
///< Segment telemetry tracking
|
||||
|
Loading…
x
Reference in New Issue
Block a user