aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-dis.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-07-21 08:56:49 +0200
committerJan Beulich <jbeulich@suse.com>2023-07-21 08:56:49 +0200
commitc54748b2fae98907b3f86fd2a3b6b46249759ceb (patch)
tree8ab3cda8295cb2d3415b0ceaca95516ee8165810 /opcodes/i386-dis.c
parentf4c4456eb4d826f39abb2575ce5c2c4640bb16f3 (diff)
downloadgdb-c54748b2fae98907b3f86fd2a3b6b46249759ceb.zip
gdb-c54748b2fae98907b3f86fd2a3b6b46249759ceb.tar.gz
gdb-c54748b2fae98907b3f86fd2a3b6b46249759ceb.tar.bz2
x86: simplify disassembly of LAR/LSL
For whatever reason in c9f5b96bdab0 ("x86: correct handling of LAR and LSL") I didn't realize that we can easily use Sv instead of going through mod_table[]. Redo this aspect of that change.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r--opcodes/i386-dis.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 9905317..179612f 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -867,8 +867,6 @@ enum
MOD_0F01_REG_3,
MOD_0F01_REG_5,
MOD_0F01_REG_7,
- MOD_0F02,
- MOD_0F03,
MOD_0F12_PREFIX_0,
MOD_0F16_PREFIX_0,
MOD_0F18_REG_0,
@@ -2018,8 +2016,8 @@ static const struct dis386 dis386_twobyte[] = {
/* 00 */
{ REG_TABLE (REG_0F00 ) },
{ REG_TABLE (REG_0F01 ) },
- { MOD_TABLE (MOD_0F02) },
- { MOD_TABLE (MOD_0F03) },
+ { "larS", { Gv, Sv }, 0 },
+ { "lslS", { Gv, Sv }, 0 },
{ Bad_Opcode },
{ "syscall", { XX }, 0 },
{ "clts", { XX }, 0 },
@@ -7895,16 +7893,6 @@ static const struct dis386 mod_table[][2] = {
{ RM_TABLE (RM_0F01_REG_7_MOD_3) },
},
{
- /* MOD_0F02 */
- { "larS", { Gv, Mw }, 0 },
- { "larS", { Gv, Ev }, 0 },
- },
- {
- /* MOD_0F03 */
- { "lslS", { Gv, Mw }, 0 },
- { "lslS", { Gv, Ev }, 0 },
- },
- {
/* MOD_0F12_PREFIX_0 */
{ "%XEVmovlpYX", { XM, Vex, EXq }, 0 },
{ "%XEVmovhlpY%XS", { XM, Vex, EXq }, 0 },