This is the mail archive of the cgen@sourceware.org mailing list for the CGEN 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: how can one achieve pipelined operation?


> I get two errors which say "error: invalid initialization of
> reference of type '%ISA1%::write_stacks&' from expression of type
> '%CPU%::write_stacks'" and "error: invalid initialization of
> reference of type '%ISA2%::write_stacks&' from expression of type
> '%CPU%::write_stacks'".

Problem solved.  These two errors were caused by an incorrect makefile as
well as incorrect code.  In my %CPU%.h file I had declared write_stacks as
%CPU%::write_stacks write_stacks.  Instead I needed to declare two separate
stacks, %ISA1%::write_stacks write_stacks1 and %ISA2%::write_stacks
write_stacks2.  I also discovered that I had not told CGEN to generate the
files %CPU%-%ISAX%-defs.h.  This caused me to get an incomplete definition
error when I tried to make the altered code.  I fixed this by going into the
makefile in src/sid/component/cgen-cpu/%CPU% and altering it such that it
would cause CGEN to generate the defs files, using the sh and mt ports as
examples.
-- 
View this message in context: http://www.nabble.com/how-can-one-achieve-pipelined-operation--tp24210860p24746519.html
Sent from the Sourceware - cgen list mailing list archive at Nabble.com.


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