mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 16:00:44 +02:00
OpcodeDispatcher: optimize pop segment
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
ee339b5960
commit
81969a684e
1 file changed
+1
-7
@@ -537,13 +537,7 @@ void OpDispatchBuilder::POPSegmentOp(OpcodeArgs) {
|
||||
const uint8_t SrcSize = GetSrcSize(Op);
|
||||
const uint8_t DstSize = GetDstSize(Op);
|
||||
|
||||
auto Constant = _Constant(SrcSize);
|
||||
auto OldSP = LoadGPRRegister(X86State::REG_RSP);
|
||||
auto NewSegment = _LoadMem(GPRClass, SrcSize, OldSP, SrcSize);
|
||||
auto NewSP = _Add(OpSize::i64Bit, OldSP, Constant);
|
||||
|
||||
// Store the new stack pointer
|
||||
StoreGPRRegister(X86State::REG_RSP, NewSP);
|
||||
auto NewSegment = Pop(SrcSize);
|
||||
|
||||
switch (SegmentReg) {
|
||||
case FEXCore::X86Tables::DecodeFlags::FLAG_ES_PREFIX:
|
||||
|
||||
Reference in new issue
Block a user