aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/i386.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-11-13 01:03:55 +0000
committerAlan Modra <amodra@gmail.com>2001-11-13 01:03:55 +0000
commite5470cdc92ed9cc52c7cd065c3def567e61c6f0a (patch)
tree1d86d160acb5ac2782b34cfc2490e328d416907e /include/opcode/i386.h
parent8df934503e1fcf6efe4a381e4356e4d08a6c9e2d (diff)
downloadgdb-e5470cdc92ed9cc52c7cd065c3def567e61c6f0a.zip
gdb-e5470cdc92ed9cc52c7cd065c3def567e61c6f0a.tar.gz
gdb-e5470cdc92ed9cc52c7cd065c3def567e61c6f0a.tar.bz2
* i386.h (i386_optab): Add entries for "sldr", "smsw" and "str" to
accept WordReg. * i386-dis.c (grps): Change "sldt", "str", and "smsw" entries to "sldtQ", "strQ", "smswQ" respectively; all with Ev operand category instead of Ew.
Diffstat (limited to 'include/opcode/i386.h')
-rw-r--r--include/opcode/i386.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/opcode/i386.h b/include/opcode/i386.h
index 38de44a..571990e 100644
--- a/include/opcode/i386.h
+++ b/include/opcode/i386.h
@@ -553,9 +553,12 @@ static const template i386_optab[] = {
{"sgdt", 1, 0x0f01, 0, Cpu286, wlq_Suf|Modrm, { WordMem, 0, 0} },
{"sidt", 1, 0x0f01, 1, Cpu286, wlq_Suf|Modrm, { WordMem, 0, 0} },
-{"sldt", 1, 0x0f00, 0, Cpu286, wlq_Suf|Modrm, { WordReg|WordMem, 0, 0} },
-{"smsw", 1, 0x0f01, 4, Cpu286, wlq_Suf|Modrm, { WordReg|WordMem, 0, 0} },
-{"str", 1, 0x0f00, 1, Cpu286, w_Suf|Modrm|IgnoreSize,{ Reg16|ShortMem, 0, 0} },
+{"sldt", 1, 0x0f00, 0, Cpu286, wlq_Suf|Modrm, { WordReg|InvMem, 0, 0} },
+{"sldt", 1, 0x0f00, 0, Cpu286, w_Suf|Modrm|IgnoreSize,{ ShortMem, 0, 0} },
+{"smsw", 1, 0x0f01, 4, Cpu286, wlq_Suf|Modrm, { WordReg|InvMem, 0, 0} },
+{"smsw", 1, 0x0f01, 4, Cpu286, w_Suf|Modrm|IgnoreSize,{ ShortMem, 0, 0} },
+{"str", 1, 0x0f00, 1, Cpu286, wlq_Suf|Modrm, { WordReg|InvMem, 0, 0} },
+{"str", 1, 0x0f00, 1, Cpu286, w_Suf|Modrm|IgnoreSize,{ ShortMem, 0, 0} },
{"verr", 1, 0x0f00, 4, Cpu286, w_Suf|Modrm|IgnoreSize,{ Reg16|ShortMem, 0, 0} },
{"verw", 1, 0x0f00, 5, Cpu286, w_Suf|Modrm|IgnoreSize,{ Reg16|ShortMem, 0, 0} },