From 35402a9a17e5ae0909d9c3f345cff42d112b7b3a Mon Sep 17 00:00:00 2001 From: MerryMage Date: Mon, 13 Apr 2020 19:43:51 +0100 Subject: [PATCH] a64_emit_x64: Fix location descriptor generation in GenTerminalHandlers --- src/backend/x64/a64_emit_x64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/x64/a64_emit_x64.cpp b/src/backend/x64/a64_emit_x64.cpp index e4ff3bad..1741df20 100644 --- a/src/backend/x64/a64_emit_x64.cpp +++ b/src/backend/x64/a64_emit_x64.cpp @@ -295,7 +295,7 @@ void A64EmitX64::GenTerminalHandlers() { code.and_(rcx, rbp); code.mov(ebx, dword[r15 + offsetof(A64JitState, fpcr)]); code.and_(ebx, A64::LocationDescriptor::fpcr_mask); - code.shl(ebx, A64::LocationDescriptor::fpcr_shift); + code.shl(rbx, A64::LocationDescriptor::fpcr_shift); code.or_(rbx, rcx); };