[SIM, ARM] Fix build failure
authorYao Qi <yao.qi@linaro.org>
Thu, 21 Sep 2017 08:02:25 +0000 (09:02 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 21 Sep 2017 08:02:25 +0000 (09:02 +0100)
commit88240b186d224d634633d9996832f1235364b6d4
treee070bfa5fcaa2a1f25dc9599d9511cc5cec50c31
parentd1b0a7bfd3df05fd2009b62b19b7535bbc6555c0
[SIM, ARM] Fix build failure

This patch fixes the build failure by using disassembler to get
disassemble function pointer, and do the disassembly, because
print_insn_little_arm is no longer visible outside opcodes/

binutils-gdb/sim/arm/wrapper.c:98:10: error: implicit declaration of function 'print_insn_little_arm' [-Werror=implicit-function-declaration]
   size = print_insn_little_arm (0, & info);
          ^

sim/arm:

2017-09-21  Yao Qi  <yao.qi@linaro.org>

* wrapper.c (print_insn): Use disassembler instead of
print_insn_little_arm.
sim/arm/ChangeLog
sim/arm/wrapper.c