Hi Ong,

These look like errors in your code. Without seeing it I can only guess. The 
first one is a standard c++ error, the second one is probably because you're 
not including the parameters include file (e.g. #include "params/TDFXGPU.hh"), 
not adding the SimObject() call to the SConscript in the dev directory or not 
defining the parameters structure in a py file. Look at the extending section 
of the tutorial    http://www.m5sim.org/dist/tutorials/asplos_hand.pdf for more 
information.

Thanks,
Ali

On Dec 3, 2010, at 8:44 AM, Ong Wen Jian wrote:

> Hi there,,
> 
> I'm trying to plugin a GPU model into M5 simulator , and I include .cc file , 
> and .hh file of my GPU model and modify the Sconscript and FSConfig.py file 
> on the existing M5 simulator. Could any of the M5 developer guide me the step 
> by step on how to plugin a new model into the M5 simulator ?? It's a PCI 
> based GPU model.
> 
> I can contribute my code to M5 once it is working ... 
> 
> I face a problem here and once i build the M5 simulator together with the GPU 
> model, i got this error , what file that I need to modify again ?
> 
> build/ALPHA_FS/dev/TDFXGPU.hh:58: error: expected class-name before '{' token
> build/ALPHA_FS/dev/TDFXGPU.hh:67: error: 'TDFXParams' does not name a type
> build/ALPHA_FS/dev/TDFXGPU.hh:68: error: ISO C++ forbids declaration of 
> 'Params' with no type
> build/ALPHA_FS/dev/TDFXGPU.hh:68: error: expected ';' before '*' token
> build/ALPHA_FS/dev/TDFXGPU.hh:69: error: expected ';' before 'TDFX'
> build/ALPHA_FS/dev/TDFXGPU.hh:69: error: 'Params' has not been declared
> build/ALPHA_FS/dev/TDFXGPU.hh:69: error: ISO C++ forbids declaration of 
> 'TDFX' with no type
> build/ALPHA_FS/dev/TDFXGPU.hh:70: error: expected class-name before '(' token
> build/ALPHA_FS/dev/TDFXGPU.cc:61: error: expected ')' before '*' token
> build/ALPHA_FS/dev/TDFXGPU.cc:65: error: definition of implicitly-declared 
> 'TDFXGPU::~TDFXGPU()'
> build/ALPHA_FS/dev/TDFXGPU.cc: In member function 'virtual Tick 
> TDFXGPU::writeConfig(Packet*)':
> build/ALPHA_FS/dev/TDFXGPU.cc:76: error: cannot call member function 'virtual 
> Tick PciDev::writeConfig(Packet*)' without object
> build/ALPHA_FS/dev/TDFXGPU.cc:85: error: 'config' was not declared in this 
> scope
> build/ALPHA_FS/dev/TDFXGPU.cc:86: error: 'ioEnable' was not declared in this 
> scope
> build/ALPHA_FS/dev/TDFXGPU.cc:88: error: 'ioEnable' was not declared in this 
> scope
> build/ALPHA_FS/dev/TDFXGPU.cc:92: error: 'configDelay' was not declared in 
> this scope
> build/ALPHA_FS/dev/TDFXGPU.cc: In member function 'virtual Tick 
> TDFXGPU::read(Packet*)':
> build/ALPHA_FS/dev/TDFXGPU.cc:102: error: 'ioEnable' was not declared in this 
> scope
> build/ALPHA_FS/dev/TDFXGPU.cc:106: error: 'pioDelay' was not declared in this 
> scope
> build/ALPHA_FS/dev/TDFXGPU.cc: In member function 'virtual Tick 
> TDFXGPU::write(Packet*)':
> build/ALPHA_FS/dev/TDFXGPU.cc:112: error: 'ioEnable' was not declared in this 
> scope
> build/ALPHA_FS/dev/TDFXGPU.cc:116: error: 'pioDelay' was not declared in this 
> scope
> 
> 
> regards
> 
> 
> -- 
> ONG WEN JIAN 
> Student
> Department of Computer and Communication Systems Engineering, 
> Faculty of Engineering, Universiti Putra Malaysia
> 43400 UPM Serdang, Selangor Darul Ehsan
> Tel : 014 - 930 2150 / 017 - 613 6231
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to