You need to be using gem5-dev. And search the mailing archives for this same conversation by myself and Pritha Ghoshal.
You need to edit the correct function in cpu.cc rather then copy over the file now. On Wed, May 2, 2012 at 10:26 AM, Yuval H. Nacson <[email protected] > wrote: > Hello,**** > > ** ** > > I'm a new gem5 user. I'm using the stable version of the simulator I'm > trying to build a 9 stage inorder alpha processor.**** > > For that matter I subtitued pipeline_traits.hh with > pipeline_traits.9stage.smt2.hh and also changed the name of > pipeline_traits.9stage.smt2.cc to pipeline_traits.cc**** > > ** ** > > the result was unpleasent. While building the machine I recieved the > following:**** > > ** ** > > ** ** > > scons: done reading SConscript files.**** > > scons: Building targets ...**** > > [ CXX] ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc -> .do**** > > In file included from build/ALPHA_SE/cpu/inorder/pipeline_traits.hh:41:0,* > *** > > from build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:51,** > ** > > from build/ALPHA_SE/cpu/inorder/cpu.hh:48,**** > > from build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:41:** > ** > > build/ALPHA_SE/cpu/inorder/params.hh:49:1: error: invalid use of > incomplete type 'struct BaseCPU::Params'**** > > build/ALPHA_SE/cpu/base.hh:52:7: error: forward declaration of 'struct > BaseCPU::Params'**** > > In file included from build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:51:0, > **** > > from build/ALPHA_SE/cpu/inorder/cpu.hh:48,**** > > from build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:41:** > ** > > build/ALPHA_SE/cpu/inorder/pipeline_traits.hh:90:13: error: > 'InOrderCPUParams'**** > > does not name a type**** > > In file included from build/ALPHA_SE/cpu/inorder/cpu.hh:48:0,**** > > from build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:41:** > ** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:383:13: error: 'RSkedPtr' > in namespace 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:386:5: error: 'RSkedPtr' > does not name a type**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:389:5: error: 'RSkedPtr' > does not name a type**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:394:23: error: 'RSkedPtr' > has not been declared**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:409:22: error: 'RSkedPtr' > has not been declared**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh: In member function 'void** > ** > > InOrderDynInst::setFrontSked(int)':**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:396:9: error: 'frontSked' > was not declared in this scope**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh: In member function 'void** > ** > > InOrderDynInst::setBackSked(int)':**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:411:9: error: 'backSked' > was not declared in this scope**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh: In member function 'void** > ** > > InOrderDynInst::printSked()':**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:422:13: error: 'frontSked' > was not declared in this scope**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:426:13: error: 'backSked' > was not declared in this scope**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh: In member function 'bool** > ** > > InOrderDynInst::finishSkedEntry()':**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.hh:458:11: error: 'backSked' > was not declared in this scope In file included from > build/ALPHA_SE/cpu/inorder/cpu.hh:49:0,**** > > from build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:41:** > ** > > build/ALPHA_SE/cpu/inorder/pipeline_stage.hh: At global scope:**** > > build/ALPHA_SE/cpu/inorder/pipeline_stage.hh:50:13: error: 'Params' in > namespace 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/pipeline_stage.hh:92:26: error: expected ')' > before '*' token**** > > build/ALPHA_SE/cpu/inorder/pipeline_stage.hh:97:15: error: 'Params' has > not been declared In file included from > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:41:0:**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:75:13: error: 'Params' in namespace > 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:303:29: error: 'RSkedPtr' is not a > member of 'ThePipeline'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:303:29: error: 'RSkedPtr' is not a > member of 'ThePipeline'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:303:50: error: template argument 2 is > invalid**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:303:50: error: template argument 4 is > invalid**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:305:30: error: 'RSkedPtr' is not a > member of 'ThePipeline'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:305:30: error: 'RSkedPtr' is not a > member of 'ThePipeline'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:305:51: error: template argument 2 is > invalid**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:305:51: error: template argument 4 is > invalid**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:305:63: error: expected ';' before > 'SkedCacheIt'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:310:5: error: 'SkedCacheIt' does not > name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:312:5: error: 'RSkedPtr' in namespace > 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:315:55: error: 'ThePipeline::RSkedPtr' > has not been declared**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:324:5: error: 'RSkedPtr' in namespace > 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:357:5: error: 'RSkedPtr' in namespace > 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:358:5: error: 'RSkedPtr' in namespace > 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:362:9: error: 'RSkedPtr' in namespace > 'ThePipeline' does not name a type**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:367:46: error: expected ')' before > '_rsked'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh: In member function 'void > InOrderCPU::addToSkedCache(InOrderCPU::DynInstPtr, int)':**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:318:9: error: request for member 'find' > in 'InOrderCPU::skedCache', which is of non-class type 'int'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:318:9: error: request for member 'end' > in 'InOrderCPU::skedCache', which is of non-class type 'int'**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:319:26: error: invalid types > 'int[InOrderCPU::SkedID]' for array subscript**** > > build/ALPHA_SE/cpu/inorder/cpu.hh: In member function 'void > InOrderCPU::StageScheduler::needs(int, int)':**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:373:13: error: 'rsked' was not declared > in this scope**** > > build/ALPHA_SE/cpu/inorder/cpu.hh: In member function 'void > InOrderCPU::StageScheduler::needs(int, int, int)':**** > > build/ALPHA_SE/cpu/inorder/cpu.hh:379:13: error: 'rsked' was not declared > in this scope**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc: In constructor > 'InOrderDynInst::InOrderDynInst(InOrderCPU*, InOrderThreadState*, > InstSeqNum, ThreadID, unsigned int)':**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:65:23: error: class > 'InOrderDynInst' does not have any field named 'frontSked'**** > > build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.cc:65:40: error: class > 'InOrderDynInst' does not have any field named 'backSked'**** > > scons: *** [build/ALPHA_SE/cpu/inorder/inorder_dyn_inst.do] Error 1**** > > scons: building terminated because of errors.**** > > ** ** > > ** ** > > ** ** > > Obviously, I didn't do something that I should have. Can someone offer me > some guidance?**** > > ** ** > > Thanks,**** > > Yuval**** > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- - Korey
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
