summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/decoder
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-12-01 23:01:31 -0800
committerGabe Black <gblack@eecs.umich.edu>2007-12-01 23:01:31 -0800
commit557bc8064752ac66c099542956af63670a666de5 (patch)
tree41997693d55c22ab9ed923febbeaa3eb10e37158 /src/arch/x86/isa/decoder
parent62c79ca63703ee2b2c5947016c0c5e10744c2479 (diff)
downloadgem5-557bc8064752ac66c099542956af63670a666de5.tar.xz
X86: Implement the LIDT instruction.
--HG-- extra : convert_revision : 380515e985318311632e00b13000585afb052e3b
Diffstat (limited to 'src/arch/x86/isa/decoder')
-rw-r--r--src/arch/x86/isa/decoder/two_byte_opcodes.isa10
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 ecd575a5d..717a8f26f 100644
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa
@@ -118,7 +118,15 @@
default: Inst::LGDT(M);
}
}
- 0x3: lidt_Ms();
+ 0x3: decode MODE_SUBMODE {
+ 0x0: Inst::LIDT(M);
+ default: decode OPSIZE {
+ // 16 bit operand sizes are special, but only
+ // in legacy and compatability modes.
+ 0x2: Inst::LIDT_16(M);
+ default: Inst::LIDT(M);
+ }
+ }
0x4: smsw_Mw();
0x6: lmsw_Mw();
0x7: invlpg_M();