aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-07-18 13:33:12 +0000
committerAlan Modra <amodra@gmail.com>2001-07-18 13:33:12 +0000
commitbcb5558b05340223e59e61b451ba680126e89af1 (patch)
tree164be0410caf45a802d95b7357cf44075401661b /opcodes/i386-dis.c
parentf27a38390b050e2b546c5265806979bd5203c95c (diff)
downloadgdb-bcb5558b05340223e59e61b451ba680126e89af1.zip
gdb-bcb5558b05340223e59e61b451ba680126e89af1.tar.gz
gdb-bcb5558b05340223e59e61b451ba680126e89af1.tar.bz2
* i386-dis.c (grps): Print l or w suffix, and require mem modrm
for lgdt, lidt, sgdt, sidt.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r--opcodes/i386-dis.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index d5eacd2..4416606 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -197,7 +197,7 @@ fetch_data (info, addr)
#define indirEv OP_indirE, v_mode
#define Ew OP_E, w_mode
#define Ma OP_E, v_mode
-#define M OP_E, 0 /* lea */
+#define M OP_E, 0 /* lea, lgdt, etc. */
#define Mp OP_E, 0 /* 32 or 48 bit memory operand for LDS, LES etc */
#define Gb OP_G, b_mode
#define Gv OP_G, v_mode
@@ -1315,14 +1315,14 @@ static const struct dis386 grps[][8] = {
},
/* GRP7 */
{
- { "sgdt", Ew, XX, XX },
- { "sidt", Ew, XX, XX },
- { "lgdt", Ew, XX, XX },
- { "lidt", Ew, XX, XX },
- { "smsw", Ew, XX, XX },
- { "(bad)", XX, XX, XX },
- { "lmsw", Ew, XX, XX },
- { "invlpg", Ew, XX, XX },
+ { "sgdtQ", M, XX, XX },
+ { "sidtQ", M, XX, XX },
+ { "lgdtQ", M, XX, XX },
+ { "lidtQ", M, XX, XX },
+ { "smsw", Ew, XX, XX },
+ { "(bad)", XX, XX, XX },
+ { "lmsw", Ew, XX, XX },
+ { "invlpg", Ew, XX, XX },
},
/* GRP8 */
{