gpu-compute: fix uninitialized member bug in GPUDynInst
authorTony Gutierrez <anthony.gutierrez@amd.com>
Fri, 6 May 2016 20:44:38 +0000 (16:44 -0400)
committerTony Gutierrez <anthony.gutierrez@amd.com>
Fri, 6 May 2016 20:44:38 +0000 (16:44 -0400)
commit4f3139e69647fdd67dd5604ff350e63d38f9306f
tree61d1d00e642549c46684d869475415aaf14e9b7b
parent84cfa10b15cd472d55b5f51e656da0473199cf60
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.
src/gpu-compute/gpu_dyn_inst.cc