This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: opcodes porting prolem
- From: Doug Evans <dje at google dot com>
- To: zhangle <dash dot z at 163 dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 1 Jun 2010 21:32:03 -0700
- Subject: Re: opcodes porting prolem
- References: <28731034.post@talk.nabble.com>
On Mon, May 31, 2010 at 6:33 AM, zhangle <dash.z@163.com> wrote:
>
> I am doing opcodes porting to a new target and when I compile the source
> directory it comes out this error.
> I am sure I have added all dependencies to the relating files
> The following is my error log.
> Can any of you tell me where I am doing wrong?
>
> arca-opc.c:94: error: `ARCA_OPERAND_F_SIMM21' undeclared here (not in a
> function)
> [...]
> arca-opc.c:100: error: `ARCA_OPERAND_F_SIMM10' undeclared here (not in a
> function)
> [...]
> arca-opc.c:130: error: `ARCA_OPERAND_F_UIMM21' undeclared here (not in a
> function)
By convention, operands don't have a prefix like the "f-" prefix that
instruction fields have.
Guessing,
have you accidentally written "f-simm21" for an operand in your .cpu
file where you should have written "simm21" ?
[and similarly for simm10 and uimm21]
IOW, I would expect to see ARCA_OPERAND_SIMM21, not ARCA_OPERAND_F_SIMM21.
Also, which version of cgen are you using?
The cgen in cvs head will flag operand spelling errors (or at least
try to - I can get it to flag an error in a simple experiment).