From 10c60dda97f5b71cd4f4bf38157345af6a541fb9 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Tue, 9 Jan 2018 21:21:50 +0000 Subject: [PATCH] a64_emit_x64: Don't use far code for now --- src/backend_x64/a64_emit_x64.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/backend_x64/a64_emit_x64.cpp b/src/backend_x64/a64_emit_x64.cpp index 665ac01b..b283c285 100644 --- a/src/backend_x64/a64_emit_x64.cpp +++ b/src/backend_x64/a64_emit_x64.cpp @@ -251,17 +251,9 @@ void A64EmitX64::EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDesc } else { EmitPatchJg(terminal.next); } - Xbyak::Label dest; - code->jmp(dest, Xbyak::CodeGenerator::T_NEAR); - - code->SwitchToFarCode(); - code->align(16); - code->L(dest); code->mov(rax, A64::LocationDescriptor{terminal.next}.PC()); code->mov(qword[r15 + offsetof(A64JitState, pc)], rax); - // PushRSBHelper(rax, rbx, terminal.next); code->ForceReturnFromRunCode(); - code->SwitchToNearCode(); } void A64EmitX64::EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor) {