opcodes porting prolem
Wed Jun 2 04:32:00 GMT 2010
On Mon, May 31, 2010 at 6:33 AM, zhangle <firstname.lastname@example.org> 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
> arca-opc.c:100: error: `ARCA_OPERAND_F_SIMM10' undeclared here (not in a
> arca-opc.c:130: error: `ARCA_OPERAND_F_UIMM21' undeclared here (not in a
By convention, operands don't have a prefix like the "f-" prefix that
instruction fields have.
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).
More information about the Binutils