* 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.
+2011-10-26 Joern Rennecke <joern.rennecke@embecosm.com>
+
+ * epiphany.opc (parse_branch_addr): Fix type of valuep.
+ Cast value before printing it as a long.
+ (parse_postindex): Fix type of valuep.
+
2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
* cpu/epiphany.cpu: New file.
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
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. */
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;
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);
}
* 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 .
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. */
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;
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);
}
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