Hi All,

There seems to be a build issue due to the 7bab1d0
<https://gem5.googlesource.com/public/gem5/+/7bab1d0aff897bc23b5677a51ae67b8cc32953dc>
patch
which adds AtomicOpFunctor to classic memory system. The* pure virtual
function* *clone()* in *src/base/types.hh* is *never overriden* and is
causing builds to fail.

Sample Error Begin:

In file included from build/HSAIL_X86/gpu-compute/gpu_static_inst.hh:53:0,
                 from
build/HSAIL_X86/arch/hsail/insts/gpu_static_inst.hh:46,
                 from build/HSAIL_X86/arch/hsail/insts/branch.hh:39,
                 from build/HSAIL_X86/arch/hsail/gpu_decoder.cc:2:
build/HSAIL_X86/gpu-compute/gpu_dyn_inst.hh: In instantiation of
'AtomicOpFunctor* GPUDynInst::makeAtomicOpFunctor(c0*, c0*) [with c0 = long
unsigned int]':
build/HSAIL_X86/arch/hsail/insts/mem.hh:1625:54:   required from 'void
HsailISA::AtomicInst<MemDataType, AddrOperandType, NumSrcOperands,
HasDst>::execAtomic(GPUDynInstPtr) [with MemDataType =
HsailISA::HsailDataType<HsailISA::HsailOperandType<DRegOperand,
RegOrImmOperand<DRegOperand, long unsigned int> >, long unsigned int,
(Enums::MemType)3u, (vgpr_type)1u, 1>; AddrOperandType =
RegAddrOperand<DRegOperand>; int NumSrcOperands = 1; bool HasDst = true;
GPUDynInstPtr = std::shared_ptr<GPUDynInst>]'
build/HSAIL_X86/arch/hsail/gpu_decoder.cc:887:1:   required from here
build/HSAIL_X86/gpu-compute/gpu_dyn_inst.hh:358:45: error: invalid
new-expression of abstract class type 'AtomicOpAnd<long unsigned int>'
             return new AtomicOpAnd<c0>(*reg0);
                                             ^
build/HSAIL_X86/gpu-compute/gpu_dyn_inst.hh:50:7: note:  * because the
following virtual functions are pure within 'AtomicOpAnd<long unsigned
int>':*
* class AtomicOpAnd : public TypedAtomicOpFunctor<T>*

Sample Error End:

Please advice.

Thanks and Regards,
Sampad Mohapatra

-- 
Thanks and Regards,
Sampad Mohapatra
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to