diff options
author | David Turner <digit@android.com> | 2010-09-09 22:56:10 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-09-13 00:30:34 -0700 |
commit | 75fb4a08de4abce11ee7cf81bcddd5193eb0438d (patch) | |
tree | 47261e30e1472132e72f041d7dc1d6cae95d2a07 /arm-dis.c | |
parent | 6a9ef1773bf874dea493ff3861782a1e577b67dd (diff) | |
download | external_qemu-75fb4a08de4abce11ee7cf81bcddd5193eb0438d.zip external_qemu-75fb4a08de4abce11ee7cf81bcddd5193eb0438d.tar.gz external_qemu-75fb4a08de4abce11ee7cf81bcddd5193eb0438d.tar.bz2 |
upstream: disas update.
Diffstat (limited to 'arm-dis.c')
-rw-r--r-- | arm-dis.c | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -60,10 +60,8 @@ #define FPU_VFP_EXT_V3 0 #define FPU_NEON_EXT_V1 0 -int floatformat_ieee_single_little; /* Assume host uses ieee float. */ -static void floatformat_to_double (int *ignored, unsigned char *data, - double *dest) +static void floatformat_to_double (unsigned char *data, double *dest) { union { uint32_t i; @@ -2517,7 +2515,6 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb) { func (stream, "<illegal constant %.8x:%x:%x>", bits, cmode, op); - size = 32; break; } switch (size) @@ -2543,9 +2540,7 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb) valbytes[2] = (value >> 16) & 0xff; valbytes[3] = (value >> 24) & 0xff; - floatformat_to_double - (&floatformat_ieee_single_little, valbytes, - &fvalue); + floatformat_to_double (valbytes, &fvalue); func (stream, "#%.7g\t; 0x%.8lx", fvalue, value); @@ -3153,14 +3148,14 @@ print_insn_thumb16 (bfd_vma pc, struct disassemble_info *info, long given) if (started) func (stream, ", "); started = 1; - func (stream, arm_regnames[14] /* "lr" */); + func (stream, "%s", arm_regnames[14] /* "lr" */); } if (domaskpc) { if (started) func (stream, ", "); - func (stream, arm_regnames[15] /* "pc" */); + func (stream, "%s", arm_regnames[15] /* "pc" */); } func (stream, "}"); @@ -3703,7 +3698,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given) } else { - func (stream, psr_name (given & 0xff)); + func (stream, "%s", psr_name (given & 0xff)); } break; @@ -3711,7 +3706,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given) if ((given & 0xff) == 0) func (stream, "%cPSR", (given & 0x100000) ? 'S' : 'C'); else - func (stream, psr_name (given & 0xff)); + func (stream, "%s", psr_name (given & 0xff)); break; case '0': case '1': case '2': case '3': case '4': |