diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-12-12 01:17:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-12-12 01:17:41 +0000 |
commit | 759a05ce2497537aaf1982648a616ecd04127a4a (patch) | |
tree | fe5bb0474d486e76cde8fc8cc9b53ff49f2c0d8f /opcodes | |
parent | 5639ff87266587c20ebb8387300cba229044be1b (diff) | |
download | gdb-759a05ce2497537aaf1982648a616ecd04127a4a.zip gdb-759a05ce2497537aaf1982648a616ecd04127a4a.tar.gz gdb-759a05ce2497537aaf1982648a616ecd04127a4a.tar.bz2 |
Set vex.w to 0 for VEX C5 prefix.
2009-12-11 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (get_valid_dis386): Set vex.w to 0 for VEX C5
prefix.
(print_insn): Don't set vex.w here.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5bebff2..38bb872 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,11 @@ 2009-12-11 H.J. Lu <hongjiu.lu@intel.com> + * i386-dis.c (get_valid_dis386): Set vex.w to 0 for VEX C5 + prefix. + (print_insn): Don't set vex.w here. + +2009-12-11 H.J. Lu <hongjiu.lu@intel.com> + * i386-dis.c (print_insn): Set vex.w to 0. 2009-12-11 Quentin Neill <quentin.neill@amd.com> diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index cfb724f..e646f25 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -10444,6 +10444,8 @@ get_valid_dis386 (const struct dis386 *dp, disassemble_info *info) && vex.register_specifier > 0x7) BadOp (); + vex.w = 0; + vex.length = (*codep & 0x4) ? 256 : 128; switch ((*codep & 0x3)) { @@ -10763,7 +10765,6 @@ print_insn (bfd_vma pc, disassemble_info *info) need_vex = 0; need_vex_reg = 0; - vex.w = 0; vex_w_done = 0; if (dp->name == NULL && dp->op[0].bytemode == FLOATCODE) |