Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Khem Raj <kraj@mvista.com>
To: "'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: [PATCH] arm: GDB disassembles ARM VFP 'fadds' instruction wrongly.
Date: Wed, 06 Jul 2005 23:16:00 -0000	[thread overview]
Message-ID: <42CC6663.5000908@mvista.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

Hello,

Like binutils, the following patch fixes the opcode disassembly for 
'fadds' ARM VFP instruction.
currently

fadds   s14, s14, s15

will be disassembled as

fadds   s14, s14, s14  by  gdb.

Is it ok ?

Thanks

-Khem

Changelog Entry:

2005-07-06  Khem Raj  <kraj@mvista.com>

       * arm-dis.c (opcode32 arm_opcodes): Fix ARM VFP fadds instruction 
disassembly pattern.

[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 893 bytes --]

? diff
Index: arm-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/arm-dis.c,v
retrieving revision 1.48
diff -u -p -r1.48 arm-dis.c
--- arm-dis.c	8 Jun 2005 17:27:40 -0000	1.48
+++ arm-dis.c	6 Jul 2005 23:12:22 -0000
@@ -460,7 +460,7 @@ static const struct opcode32 arm_opcodes
   {FPU_VFP_EXT_V1, 0x0eb00bc0, 0x0fff0ff0, "fabsd%c\t%1z, %0z"},
   {FPU_VFP_EXT_V1xD, 0x0eb00ac0, 0x0fbf0fd0, "fabss%c\t%1y, %0y"},
   {FPU_VFP_EXT_V1, 0x0e300b00, 0x0ff00ff0, "faddd%c\t%1z, %2z, %0z"},
-  {FPU_VFP_EXT_V1xD, 0x0e300a00, 0x0fb00f50, "fadds%c\t%1y, %2y, %1y"},
+  {FPU_VFP_EXT_V1xD, 0x0e300a00, 0x0fb00f50, "fadds%c\t%1y, %2y, %0y"},
   {FPU_VFP_EXT_V1, 0x0eb40b40, 0x0fff0f70, "fcmp%7'ed%c\t%1z, %0z"},
   {FPU_VFP_EXT_V1xD, 0x0eb40a40, 0x0fbf0f50, "fcmp%7'es%c\t%1y, %0y"},
   {FPU_VFP_EXT_V1, 0x0eb50b40, 0x0fff0f70, "fcmp%7'ezd%c\t%1z"},

             reply	other threads:[~2005-07-06 23:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-06 23:16 Khem Raj [this message]
2005-07-06 23:30 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42CC6663.5000908@mvista.com \
    --to=kraj@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox