From: Anton Blanchard <anton@samba.org>
To: Alexander Graf <agraf@suse.de>, Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 4/5] disas/ppc.c: Fix little endian disassembly
Date: Wed, 7 Aug 2013 10:47:03 +1000 [thread overview]
Message-ID: <1375836424-773-5-git-send-email-anton@samba.org> (raw)
In-Reply-To: <1375836424-773-1-git-send-email-anton@samba.org>
Use info->endian to select the endian of the instruction to
be disassembled.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
disas/ppc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/disas/ppc.c b/disas/ppc.c
index c149506..99c4cbc 100644
--- a/disas/ppc.c
+++ b/disas/ppc.c
@@ -5157,7 +5157,8 @@ int
print_insn_ppc (bfd_vma memaddr, struct disassemble_info *info)
{
int dialect = (char *) info->private_data - (char *) 0;
- return print_insn_powerpc (memaddr, info, 1, dialect);
+ return print_insn_powerpc (memaddr, info, info->endian == BFD_ENDIAN_BIG,
+ dialect);
}
/* Print a big endian PowerPC instruction. */
--
1.8.1.2
next prev parent reply other threads:[~2013-08-07 0:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 0:46 [Qemu-devel] [PATCH 0/5] 64bit PowerPC little endian support Anton Blanchard
2013-08-07 0:47 ` [Qemu-devel] [PATCH 1/5] target-ppc: POWER7 supports the MSR_LE bit Anton Blanchard
2013-08-07 1:05 ` Anthony Liguori
2013-08-14 13:27 ` Alexander Graf
2013-08-07 0:47 ` [Qemu-devel] [PATCH 2/5] target-ppc: USE LPCR_ILE to control exception endian on POWER7 Anton Blanchard
2013-08-07 1:06 ` Anthony Liguori
2013-08-14 11:49 ` Alexander Graf
2013-08-07 5:35 ` Andreas Färber
2013-08-07 12:47 ` Anthony Liguori
2013-08-07 0:47 ` [Qemu-devel] [PATCH 3/5] pseries: Add H_SET_MODE hcall to change guest exception endianness Anton Blanchard
2013-08-07 1:10 ` Anthony Liguori
2013-08-19 11:04 ` [Qemu-devel] [PATCH] " Anton Blanchard
2013-08-28 14:00 ` Alexander Graf
2013-08-07 0:47 ` Anton Blanchard [this message]
2013-08-07 1:10 ` [Qemu-devel] [PATCH 4/5] disas/ppc.c: Fix little endian disassembly Anthony Liguori
2013-08-14 13:31 ` Alexander Graf
2013-08-07 0:47 ` [Qemu-devel] [PATCH 5/5] pseries: Fix loading of little endian kernels Anton Blanchard
2013-08-07 1:11 ` Anthony Liguori
2013-08-07 1:13 ` [Qemu-devel] [PATCH 0/5] 64bit PowerPC little endian support Anthony Liguori
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=1375836424-773-5-git-send-email-anton@samba.org \
--to=anton@samba.org \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).