This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: opcodes porting prolem


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]