From 62c79ca63703ee2b2c5947016c0c5e10744c2479 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 1 Dec 2007 23:01:17 -0800 Subject: X86: Implement the lgdt instruction. --HG-- extra : convert_revision : d1698a82df3c57cc9bbf8d5d190f271bfc7cb2e4 --- src/arch/x86/isa/decoder/two_byte_opcodes.isa | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/arch/x86/isa/decoder') diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index f3485bc4e..ecd575a5d 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -109,7 +109,15 @@ default: decode MODRM_REG { 0x0: sgdt_Ms(); 0x1: sidt_Ms(); - 0x2: lgdt_Ms(); + 0x2: decode MODE_SUBMODE { + 0x0: Inst::LGDT(M); + default: decode OPSIZE { + // 16 bit operand sizes are special, but only + // in legacy and compatability modes. + 0x2: Inst::LGDT_16(M); + default: Inst::LGDT(M); + } + } 0x3: lidt_Ms(); 0x4: smsw_Mw(); 0x6: lmsw_Mw(); -- cgit v1.2.3