aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2011-10-26 12:46:04 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2011-10-26 12:46:04 +0000
commitfd936b4c69a28e454236c31ec488a1cb8d406d8c (patch)
treea7116eef4d483185ba840ab0c677240b4ae0439f /opcodes
parent56b1318518d87bf96803f9842f4111d466a6cfe1 (diff)
downloadfsf-binutils-gdb-fd936b4c69a28e454236c31ec488a1cb8d406d8c.zip
fsf-binutils-gdb-fd936b4c69a28e454236c31ec488a1cb8d406d8c.tar.gz
fsf-binutils-gdb-fd936b4c69a28e454236c31ec488a1cb8d406d8c.tar.bz2
cpu:
* epiphany.opc (parse_branch_addr): Fix type of valuep. Cast value before printing it as a long. (parse_postindex): Fix type of valuep. opcodes: * epiphany-asm.c, epiphany-opc.h: Regenerate.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog2
-rw-r--r--opcodes/epiphany-asm.c6
-rw-r--r--opcodes/epiphany-opc.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index cac099e..68239dd 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -2,6 +2,8 @@
* disassemble.c (ARCH_epiphany): Move into alphasorted spot.
+ * epiphany-asm.c, epiphany-opc.h: Regenerate.
+
2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
diff --git a/opcodes/epiphany-asm.c b/opcodes/epiphany-asm.c
index 31ceb3e..4eb7e54 100644
--- a/opcodes/epiphany-asm.c
+++ b/opcodes/epiphany-asm.c
@@ -133,7 +133,7 @@ static const char *
parse_postindex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
const char ** strp,
int opindex ATTRIBUTE_UNUSED,
- bfd_vma * valuep)
+ unsigned long *valuep)
{
if (**strp == '#')
++*strp; /* Skip leading hashes. */
@@ -249,7 +249,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
int opindex,
int opinfo ATTRIBUTE_UNUSED,
enum cgen_parse_operand_result * resultp ATTRIBUTE_UNUSED,
- unsigned long * valuep ATTRIBUTE_UNUSED)
+ bfd_vma *valuep ATTRIBUTE_UNUSED)
{
const char * errmsg;
enum cgen_parse_operand_result result_type;
@@ -281,7 +281,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
char buf[20];
const char * bufp = (const char *) buf;
- sprintf (buf, ".+%ld", value);
+ sprintf (buf, ".+%ld", (long) value);
errmsg = cgen_parse_address (cd, &bufp, opindex, code, &result_type,
&value);
}
diff --git a/opcodes/epiphany-opc.h b/opcodes/epiphany-opc.h
index d3f9348..d5d76d8 100644
--- a/opcodes/epiphany-opc.h
+++ b/opcodes/epiphany-opc.h
@@ -73,7 +73,7 @@ extern const char * parse_branch_addr (CGEN_CPU_DESC cd,
int opindex,
int opinfo,
enum cgen_parse_operand_result * resultp,
- unsigned long * valuep);
+ bfd_vma *valuep);
/* Allows reason codes to be output when assembler errors occur. */
#define CGEN_VERBOSE_ASSEMBLER_ERRORS