You probably need to set up matching inheritance on the python side. I'm pretty sure That makes the param structs inherit from each other which would allow passing a TDFXGPUParams as a GraphicDeviceParams.

Gabe

Quoting Ong Wen Jian <[email protected]>:

Hi there

here is the another error that I got ,,, I create another device plugin
based on NS DP3820 device on the existing M5 simulator
build/ALPHA_FS/dev/TDFXGPU.cc: In constructor
'TDFXGPU::TDFXGPU(TDFXGPUParams*)':
build/ALPHA_FS/dev/TDFXGPU.cc:62: error: no matching function for call to
'GraphicDevice::GraphicDevice(TDFXGPUParams*&)'
build/ALPHA_FS/dev/graphicdevice.hh:51: note: candidates are:
GraphicDevice::GraphicDevice(const GraphicDeviceParams*)
build/ALPHA_FS/dev/graphicdevice.hh:46: note:
GraphicDevice::GraphicDevice(GraphicDevice&)

I believe the error comes from this portion of the code below

on .hh file of the GPU device model that I emulate

class TDFXGPU : public GraphicDevice
{

  public:

    typedef TDFXGPUParams Params;
    const Params *params() const { return (const Params *)_params; }
    TDFXGPU(Params *params);
    ~TDFXGPU();

 ..............

}

and on the GraphicDevice file that I wrote

class GraphicDevice : public PciDev
{
  public:


    typedef GraphicDeviceParams Params;
    GraphicDevice(const Params *params)
        : PciDev(params)
    { }


    const Params *
    params() const
    {
        return dynamic_cast<const Params *>(_params);
    }

};

Is there anyway to fix this error ??
--
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

Reply via email to