This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
remove unnecessary parameter in opcodes/xtensa-dis.c
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 30 Sep 2003 17:40:31 -0700
- Subject: remove unnecessary parameter in opcodes/xtensa-dis.c
- Organization: Tensilica, Inc.
This patch just removes an unused parameter to the fetch_data function in
opcodes/xtensa-dis.c. Tested with the xtensa-linux-gnu target and committed
on the mainline.
2003-09-30 Bob Wilson <bob.wilson@acm.org>
* xtensa-dis.c (fetch_data): Remove numBytes parameter.
(print_insn_xtensa): Fix call to fetch_data.
Index: xtensa-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/xtensa-dis.c,v
retrieving revision 1.1
diff -u -r1.1 xtensa-dis.c
--- xtensa-dis.c 1 Apr 2003 15:50:30 -0000 1.1
+++ xtensa-dis.c 1 Oct 2003 00:22:33 -0000
@@ -337,7 +337,7 @@
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 @@
};
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 @@
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) *