diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-11-17 09:04:00 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-11-17 09:06:10 -0800 |
commit | 3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7 (patch) | |
tree | 22120de3d4dd6304996480824c6eb102ba4d90d3 /gas/config | |
parent | f68eca29d3b3e551a45a1bb02b05a0b3a4856f59 (diff) | |
download | gdb-3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7.zip gdb-3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7.tar.gz gdb-3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7.tar.bz2 |
i386: Move i386_seg_prefixes to gas
gas/
* config/tc-i386.c (i386_seg_prefixes): New. Moved from opcodes.
opcodes/
* i386-opc.c (i386_seg_prefixes): Removed.
* i386-opc.h (i386_seg_prefixes): Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 5bc3a56..f54e7fd 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -464,6 +464,16 @@ static const struct RC_name RC_NamesTable[] = { saeonly, STRING_COMMA_LEN ("sae") }, }; +/* To be indexed by segment register number. */ +static const unsigned char i386_seg_prefixes[] = { + ES_PREFIX_OPCODE, + CS_PREFIX_OPCODE, + SS_PREFIX_OPCODE, + DS_PREFIX_OPCODE, + FS_PREFIX_OPCODE, + GS_PREFIX_OPCODE +}; + /* List of chars besides those in app.c:symbol_chars that can start an operand. Used to prevent the scrubber eating vital white-space. */ const char extra_symbol_chars[] = "*%-([{}" |