summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2016-11-21 15:38:30 -0500
committerTony Gutierrez <anthony.gutierrez@amd.com>2016-11-21 15:38:30 -0500
commita0d4019abda8b39285deaf2f8f262b7682ece4de (patch)
tree5ca7d3f700d280c936109dab005a5a93f0f3d89f /src
parentf82418acef066939bf61a0e76702d92c5bb9164b (diff)
downloadgem5-a0d4019abda8b39285deaf2f8f262b7682ece4de.tar.xz
gpu-compute: init valid field of GpuTlbEntry in default ctor
valid field for GpuTlbEntry is not set in the default ctor, which can lead to strange behavior, and is also flagged by UBSAN.
Diffstat (limited to 'src')
-rw-r--r--src/gpu-compute/gpu_tlb.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu-compute/gpu_tlb.hh b/src/gpu-compute/gpu_tlb.hh
index 9c1a7b326..7a7485c48 100644
--- a/src/gpu-compute/gpu_tlb.hh
+++ b/src/gpu-compute/gpu_tlb.hh
@@ -68,7 +68,7 @@ namespace X86ISA
GpuTlbEntry(Addr asn, Addr _vaddr, Addr _paddr, bool _valid)
: TlbEntry(asn, _vaddr, _paddr, false, false), valid(_valid) { }
- GpuTlbEntry() : TlbEntry() { }
+ GpuTlbEntry() : TlbEntry(), valid(false) { }
bool valid;
};