diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-12-01 23:01:17 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-12-01 23:01:17 -0800 |
commit | 62c79ca63703ee2b2c5947016c0c5e10744c2479 (patch) | |
tree | e47c3ccb24647e643aea3959cd0d9e7b50f79858 /src/arch/x86/isa/decoder | |
parent | 4e3ff42762f8fd08e130b10e59525139f12c932d (diff) | |
download | gem5-62c79ca63703ee2b2c5947016c0c5e10744c2479.tar.xz |
X86: Implement the lgdt instruction.
--HG--
extra : convert_revision : d1698a82df3c57cc9bbf8d5d190f271bfc7cb2e4
Diffstat (limited to 'src/arch/x86/isa/decoder')
-rw-r--r-- | src/arch/x86/isa/decoder/two_byte_opcodes.isa | 10 |
1 files changed, 9 insertions, 1 deletions
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(); |