diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-03-30 14:09:41 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-03-30 14:09:41 +0200 |
commit | 5e0423804a6e421e0e8a22631eab42c984502f25 (patch) | |
tree | 8c4af9a6fd049ff6140fd7ca66160cb1ed273e5f /opcodes/i386-opc.c | |
parent | 346848622660e06b352613d425fe6ad67194ed14 (diff) | |
download | gdb-5e0423804a6e421e0e8a22631eab42c984502f25.zip gdb-5e0423804a6e421e0e8a22631eab42c984502f25.tar.gz gdb-5e0423804a6e421e0e8a22631eab42c984502f25.tar.bz2 |
x86: drop seg_entry
Use struct reg_entry instead for most purposes, with a separate array
holding just the respective opcode prefix bytes.
Diffstat (limited to 'opcodes/i386-opc.c')
-rw-r--r-- | opcodes/i386-opc.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/opcodes/i386-opc.c b/opcodes/i386-opc.c index 370adc3..ca3bdfb 100644 --- a/opcodes/i386-opc.c +++ b/opcodes/i386-opc.c @@ -23,10 +23,12 @@ #include "i386-opc.h" #include "i386-tbl.h" -/* Segment stuff. */ -const seg_entry cs = { "cs", 0x2e }; -const seg_entry ds = { "ds", 0x3e }; -const seg_entry ss = { "ss", 0x36 }; -const seg_entry es = { "es", 0x26 }; -const seg_entry fs = { "fs", 0x64 }; -const seg_entry gs = { "gs", 0x65 }; +/* To be indexed by segment register number. */ +const unsigned char i386_seg_prefixes[] = { + ES_PREFIX_OPCODE, + CS_PREFIX_OPCODE, + SS_PREFIX_OPCODE, + DS_PREFIX_OPCODE, + FS_PREFIX_OPCODE, + GS_PREFIX_OPCODE +}; |