From 5987f0a8f5887f0ffc6025af25e2f23e17650baa Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 5 Apr 2022 12:49:53 +0200 Subject: [PATCH] LibX86: Mark MMX instructions as SSE instructions SSE2 expands on the same opcodes as MMX, so we have to mutate on prefix here. --- Userland/Libraries/LibX86/Instruction.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index b70287d925..5ac628fb52 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -104,6 +104,9 @@ enum InstructionFormat { OP_RM32_reg32_imm8, OP_RM16_reg16_CL, OP_RM32_reg32_CL, + // SSE instructions mutate on some prefixes, so we have to mark them + // for further parsing + __SSE, OP_mm1_rm32, OP_rm32_mm2, OP_mm1_mm2m64, @@ -115,9 +118,6 @@ enum InstructionFormat { OP_reg_mm1_imm8, OP_mm1_r32m16_imm8, - // SSE instructions mutate on some prefixes, so we have to mark them - // for further parsing - __SSE, OP_xmm1_xmm2m32, OP_xmm1_xmm2m64, OP_xmm1_xmm2m128,