Patchwork [v2,01/27] disas: Disassemble all ppc insns for the host

login
register
mail settings
Submitter Richard Henderson
Date March 5, 2013, 12:32 a.m.
Message ID <1362443590-28191-2-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/224861/
State New
Headers show

Comments

Richard Henderson - March 5, 2013, 12:32 a.m.
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 disas.c | 1 +
 1 file changed, 1 insertion(+)
Aurelien Jarno - April 1, 2013, 2:51 p.m.
On Mon, Mar 04, 2013 at 04:32:44PM -0800, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  disas.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/disas.c b/disas.c
> index a46faee..c0ac7ec 100644
> --- a/disas.c
> +++ b/disas.c
> @@ -322,6 +322,7 @@ void disas(FILE *out, void *code, unsigned long size)
>      s.info.mach = bfd_mach_x86_64;
>      print_insn = print_insn_i386;
>  #elif defined(_ARCH_PPC)
> +    s.info.disassembler_options = (char *)"any";
>      print_insn = print_insn_ppc;
>  #elif defined(__alpha__)
>      print_insn = print_insn_alpha;

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>

Patch

diff --git a/disas.c b/disas.c
index a46faee..c0ac7ec 100644
--- a/disas.c
+++ b/disas.c
@@ -322,6 +322,7 @@  void disas(FILE *out, void *code, unsigned long size)
     s.info.mach = bfd_mach_x86_64;
     print_insn = print_insn_i386;
 #elif defined(_ARCH_PPC)
+    s.info.disassembler_options = (char *)"any";
     print_insn = print_insn_ppc;
 #elif defined(__alpha__)
     print_insn = print_insn_alpha;