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.
This commit is contained in:
parent
56b1318518
commit
fd936b4c69
5 changed files with 16 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||||
|
|
||||||
* cpu/epiphany.cpu: New file.
|
* cpu/epiphany.cpu: New file.
|
||||||
|
|
|
@ -78,7 +78,7 @@ extern const char * parse_branch_addr (CGEN_CPU_DESC cd,
|
||||||
int opindex,
|
int opindex,
|
||||||
int opinfo,
|
int opinfo,
|
||||||
enum cgen_parse_operand_result * resultp,
|
enum cgen_parse_operand_result * resultp,
|
||||||
unsigned long * valuep);
|
bfd_vma *valuep);
|
||||||
|
|
||||||
/* Allows reason codes to be output when assembler errors occur. */
|
/* Allows reason codes to be output when assembler errors occur. */
|
||||||
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
||||||
|
@ -172,7 +172,7 @@ static const char *
|
||||||
parse_postindex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
parse_postindex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||||
const char ** strp,
|
const char ** strp,
|
||||||
int opindex ATTRIBUTE_UNUSED,
|
int opindex ATTRIBUTE_UNUSED,
|
||||||
bfd_vma * valuep)
|
unsigned long *valuep)
|
||||||
{
|
{
|
||||||
if (**strp == '#')
|
if (**strp == '#')
|
||||||
++*strp; /* Skip leading hashes. */
|
++*strp; /* Skip leading hashes. */
|
||||||
|
@ -288,7 +288,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
|
||||||
int opindex,
|
int opindex,
|
||||||
int opinfo ATTRIBUTE_UNUSED,
|
int opinfo ATTRIBUTE_UNUSED,
|
||||||
enum cgen_parse_operand_result * resultp ATTRIBUTE_UNUSED,
|
enum cgen_parse_operand_result * resultp ATTRIBUTE_UNUSED,
|
||||||
unsigned long * valuep ATTRIBUTE_UNUSED)
|
bfd_vma *valuep ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
const char * errmsg;
|
const char * errmsg;
|
||||||
enum cgen_parse_operand_result result_type;
|
enum cgen_parse_operand_result result_type;
|
||||||
|
@ -320,7 +320,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
|
||||||
char buf[20];
|
char buf[20];
|
||||||
const char * bufp = (const char *) buf;
|
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,
|
errmsg = cgen_parse_address (cd, &bufp, opindex, code, &result_type,
|
||||||
&value);
|
&value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* disassemble.c (ARCH_epiphany): Move into alphasorted spot.
|
* disassemble.c (ARCH_epiphany): Move into alphasorted spot.
|
||||||
|
|
||||||
|
* epiphany-asm.c, epiphany-opc.h: Regenerate.
|
||||||
|
|
||||||
2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
|
2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||||
|
|
||||||
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
|
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
|
||||||
|
|
|
@ -133,7 +133,7 @@ static const char *
|
||||||
parse_postindex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
parse_postindex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||||
const char ** strp,
|
const char ** strp,
|
||||||
int opindex ATTRIBUTE_UNUSED,
|
int opindex ATTRIBUTE_UNUSED,
|
||||||
bfd_vma * valuep)
|
unsigned long *valuep)
|
||||||
{
|
{
|
||||||
if (**strp == '#')
|
if (**strp == '#')
|
||||||
++*strp; /* Skip leading hashes. */
|
++*strp; /* Skip leading hashes. */
|
||||||
|
@ -249,7 +249,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
|
||||||
int opindex,
|
int opindex,
|
||||||
int opinfo ATTRIBUTE_UNUSED,
|
int opinfo ATTRIBUTE_UNUSED,
|
||||||
enum cgen_parse_operand_result * resultp ATTRIBUTE_UNUSED,
|
enum cgen_parse_operand_result * resultp ATTRIBUTE_UNUSED,
|
||||||
unsigned long * valuep ATTRIBUTE_UNUSED)
|
bfd_vma *valuep ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
const char * errmsg;
|
const char * errmsg;
|
||||||
enum cgen_parse_operand_result result_type;
|
enum cgen_parse_operand_result result_type;
|
||||||
|
@ -281,7 +281,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
|
||||||
char buf[20];
|
char buf[20];
|
||||||
const char * bufp = (const char *) buf;
|
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,
|
errmsg = cgen_parse_address (cd, &bufp, opindex, code, &result_type,
|
||||||
&value);
|
&value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ extern const char * parse_branch_addr (CGEN_CPU_DESC cd,
|
||||||
int opindex,
|
int opindex,
|
||||||
int opinfo,
|
int opinfo,
|
||||||
enum cgen_parse_operand_result * resultp,
|
enum cgen_parse_operand_result * resultp,
|
||||||
unsigned long * valuep);
|
bfd_vma *valuep);
|
||||||
|
|
||||||
/* Allows reason codes to be output when assembler errors occur. */
|
/* Allows reason codes to be output when assembler errors occur. */
|
||||||
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue