projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f82418a
)
gpu-compute: init valid field of GpuTlbEntry in default ctor
author
Tony Gutierrez
<anthony.gutierrez@amd.com>
Mon, 21 Nov 2016 20:38:30 +0000
(15:38 -0500)
committer
Tony Gutierrez
<anthony.gutierrez@amd.com>
Mon, 21 Nov 2016 20:38:30 +0000
(15:38 -0500)
valid field for GpuTlbEntry is not set in the default ctor, which can
lead to strange behavior, and is also flagged by UBSAN.
src/gpu-compute/gpu_tlb.hh
patch
|
blob
|
history
diff --git
a/src/gpu-compute/gpu_tlb.hh
b/src/gpu-compute/gpu_tlb.hh
index 9c1a7b32614a7094b55d2b6cf89ba6e4dc13b7a4..7a7485c48d9f84fa8abf19244be7edb83ef7ba9f 100644
(file)
--- 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;
};