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:
parent
f82418acef
commit
a0d4019abd
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ namespace X86ISA
|
||||||
GpuTlbEntry(Addr asn, Addr _vaddr, Addr _paddr, bool _valid)
|
GpuTlbEntry(Addr asn, Addr _vaddr, Addr _paddr, bool _valid)
|
||||||
: TlbEntry(asn, _vaddr, _paddr, false, false), valid(_valid) { }
|
: TlbEntry(asn, _vaddr, _paddr, false, false), valid(_valid) { }
|
||||||
|
|
||||||
GpuTlbEntry() : TlbEntry() { }
|
GpuTlbEntry() : TlbEntry(), valid(false) { }
|
||||||
|
|
||||||
bool valid;
|
bool valid;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue