diff options
author | Bob Wilson <bob.wilson@acm.org> | 2003-10-01 00:40:22 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2003-10-01 00:40:22 +0000 |
commit | ecb8abfabc173fee3b9a4e1dfc2e0a427662fd46 (patch) | |
tree | 406f38f6864e4b3ad76f0c9abb906b1e26d2d2dd /opcodes/xtensa-dis.c | |
parent | 986f378e41a599327aefa9216144054c1d0aeebb (diff) | |
download | binutils-redhat-ecb8abfabc173fee3b9a4e1dfc2e0a427662fd46.tar.gz |
* xtensa-dis.c (fetch_data): Remove numBytes parameter.
(print_insn_xtensa): Fix call to fetch_data.
Diffstat (limited to 'opcodes/xtensa-dis.c')
-rw-r--r-- | opcodes/xtensa-dis.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/opcodes/xtensa-dis.c b/opcodes/xtensa-dis.c index bf5f5bfa19..8c310854a8 100644 --- a/opcodes/xtensa-dis.c +++ b/opcodes/xtensa-dis.c @@ -337,7 +337,7 @@ static char* state_names[256] = int show_raw_fields; static int fetch_data - PARAMS ((struct disassemble_info *info, bfd_vma memaddr, int numBytes)); + PARAMS ((struct disassemble_info *info, bfd_vma memaddr)); static void print_xtensa_operand PARAMS ((bfd_vma, struct disassemble_info *, xtensa_operand, unsigned operand_val, int print_sr_name)); @@ -348,15 +348,13 @@ struct dis_private { }; static int -fetch_data (info, memaddr, numBytes) +fetch_data (info, memaddr) struct disassemble_info *info; bfd_vma memaddr; - int numBytes; { int length, status = 0; struct dis_private *priv = (struct dis_private *) info->private_data; - int insn_size = (numBytes != 0 ? numBytes : - xtensa_insn_maxlength (xtensa_default_isa)); + int insn_size = xtensa_insn_maxlength (xtensa_default_isa); /* Read the maximum instruction size, padding with zeros if we go past the end of the text section. This code will automatically adjust @@ -475,7 +473,7 @@ print_insn_xtensa (memaddr, info) isa = xtensa_default_isa; /* Fetch the maximum size instruction. */ - bytes_fetched = fetch_data (info, memaddr, 0); + bytes_fetched = fetch_data (info, memaddr); /* Copy the bytes into the decode buffer. */ memset (insn_buffer, 0, (xtensa_insnbuf_size (isa) * |