gpu-compute: fix uninitialized member bug in GPUDynInst
the n_reg field in the GPUDynInst is not currently set in the constructor. if it is not set externally, there are assertion failures that may occur if the random value it gets is just right. here we set it to 0 by default.
This commit is contained in:
parent
84cfa10b15
commit
4f3139e696
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@
|
||||||
GPUDynInst::GPUDynInst(ComputeUnit *_cu, Wavefront *_wf,
|
GPUDynInst::GPUDynInst(ComputeUnit *_cu, Wavefront *_wf,
|
||||||
GPUStaticInst *_staticInst, uint64_t instSeqNum)
|
GPUStaticInst *_staticInst, uint64_t instSeqNum)
|
||||||
: GPUExecContext(_cu, _wf), m_op(Enums::MO_UNDEF),
|
: GPUExecContext(_cu, _wf), m_op(Enums::MO_UNDEF),
|
||||||
memoryOrder(Enums::MEMORY_ORDER_NONE), useContinuation(false),
|
memoryOrder(Enums::MEMORY_ORDER_NONE), n_reg(0) ,useContinuation(false),
|
||||||
statusBitVector(0), staticInst(_staticInst), _seqNum(instSeqNum)
|
statusBitVector(0), staticInst(_staticInst), _seqNum(instSeqNum)
|
||||||
{
|
{
|
||||||
tlbHitLevel.assign(VSZ, -1);
|
tlbHitLevel.assign(VSZ, -1);
|
||||||
|
|
Loading…
Reference in a new issue