aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-03-03 11:24:16 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-03-03 11:24:26 -0800
commit3cd7f3e3bdab2b9f5fa0005ce2b8333b46843c3e (patch)
tree8aafcd63e6bd6b7c8890192b8ee7dcb5dc6c01f9 /opcodes/i386-opc.h
parent5e5d66b6a46c7b0353308bfb508b96a59f1addbf (diff)
downloadgdb-3cd7f3e3bdab2b9f5fa0005ce2b8333b46843c3e.zip
gdb-3cd7f3e3bdab2b9f5fa0005ce2b8333b46843c3e.tar.gz
gdb-3cd7f3e3bdab2b9f5fa0005ce2b8333b46843c3e.tar.bz2
x86: Replace IgnoreSize/DefaultSize with MnemonicSize
Since an instruction template can't have both IgnoreSize and DefaultSize, this patch replaces IgnoreSize and DefaultSize with MnemonicSize. gas/ * config/tc-i386.c (match_template): Replace ignoresize and defaultsize with mnemonicsize. (process_suffix): Likewise. opcodes/ * i386-gen.c (opcode_modifiers): Replace IgnoreSize/DefaultSize with MnemonicSize. * i386-opc.h (IGNORESIZE): New. (DEFAULTSIZE): Likewise. (IgnoreSize): Removed. (DefaultSize): Likewise. (MnemonicSize): New. (i386_opcode_modifier): Replace ignoresize/defaultsize with mnemonicsize. * i386-opc.tbl (IgnoreSize): New. (DefaultSize): Likewise. * i386-tbl.h: Regenerated.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index fc69d4d..1718ca27 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -427,9 +427,10 @@ enum
CheckRegSize,
/* instruction ignores operand size prefix and in Intel mode ignores
mnemonic size suffix check. */
- IgnoreSize,
+#define IGNORESIZE 1
/* default insn size depends on mode */
- DefaultSize,
+#define DEFAULTSIZE 2
+ MnemonicSize,
/* any memory size */
Anysize,
/* b suffix on instruction illegal */
@@ -661,8 +662,7 @@ typedef struct i386_opcode_modifier
unsigned int floatr:1;
unsigned int size:2;
unsigned int checkregsize:1;
- unsigned int ignoresize:1;
- unsigned int defaultsize:1;
+ unsigned int mnemonicsize:2;
unsigned int anysize:1;
unsigned int no_bsuf:1;
unsigned int no_wsuf:1;