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.
This commit is contained in:
Tony Gutierrez 2016-11-21 15:38:30 -05:00
parent f82418acef
commit a0d4019abd

View file

@ -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;
};