[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 4/5] disas/ppc.c: Fix little endian d
From: |
Anthony Liguori |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 4/5] disas/ppc.c: Fix little endian disassembly |
Date: |
Tue, 6 Aug 2013 20:10:28 -0500 |
On Tue, Aug 6, 2013 at 7:47 PM, Anton Blanchard <address@hidden> wrote:
> Use info->endian to select the endian of the instruction to
> be disassembled.
>
> Signed-off-by: Anton Blanchard <address@hidden>
Reviewed-by: Anthony Liguori <address@hidden>
Regards,
Anthony Liguori
> ---
> 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
>
>
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/5] target-ppc: POWER7 supports the MSR_LE bit, (continued)
- [Qemu-ppc] [PATCH 2/5] target-ppc: USE LPCR_ILE to control exception endian on POWER7, Anton Blanchard, 2013/08/06
- [Qemu-ppc] [PATCH 3/5] pseries: Add H_SET_MODE hcall to change guest exception endianness, Anton Blanchard, 2013/08/06
- [Qemu-ppc] [PATCH 4/5] disas/ppc.c: Fix little endian disassembly, Anton Blanchard, 2013/08/06
- [Qemu-ppc] [PATCH 5/5] pseries: Fix loading of little endian kernels, Anton Blanchard, 2013/08/06
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/5] 64bit PowerPC little endian support, Anthony Liguori, 2013/08/06