You have to add your new .cc file to src/mem/SConscript to get it to
be compiled and linked into the binary.
That said, you shouldn't have to create a new C++ class at all... if
you just want to change the latency and the address range you can do
this by overriding the default parameters in python.
Steve
On Thu, Jun 26, 2008 at 12:45 AM, 邓宁 <[EMAIL PROTECTED]> wrote:
> hi all,
> i add my sram based on the dram.hh/.cc files and modified the latency
> calculation and address space to my requirement.
> i modified the function of dram.cc into follows:
> Spm*
> SpmParams::create()
> {
> return new Spm(this);
> }
>
> but some problem arised when i compile it...
>
>
> build/ALPHA_FS/params/params_wrap.do: In function `_wrap_SpmParams_create':
> /home/dengning/m5_arm/m5-2.0b5/build/ALPHA_FS/params/params_wrap.cc:33003:
> undefined reference to `SpmParams::create()'
> collect2: ld returned 1 exit status
> scons: *** [build/ALPHA_FS/m5.debug.bin] Error 1
> scons: building terminated because of errors.
>
> i wrote the function just as the same as it is in dram.cc and
> PhysicalMemory.cc...
>
> thank you
> --
> Regards
> Dengning
>
> School Of Computer Science and Technology
> Beijng Institute of Technology, China, 100081
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> _______________________________________________
> 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